After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 720936 - Allow translators to add arbitrary search engines to search engine selection combo
Allow translators to add arbitrary search engines to search engine selection ...
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: Preferences
3.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-22 16:07 UTC by Michael Catanzaro
Modified: 2017-02-24 22:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Allow translators to add search engine options (2.62 KB, patch)
2013-12-22 16:47 UTC, Michael Catanzaro
reviewed Details | Review

Description Michael Catanzaro 2013-12-22 16:07:11 UTC
It would be good if translators had full control over the search engine options presented to users.
Comment 1 Michael Catanzaro 2013-12-22 16:47:55 UTC
Created attachment 264760 [details] [review]
Allow translators to add search engine options

Translators now have three placeholder search engines that they may
choose to add to the search engine combo in the preferences dialog.

A quick, inelegant implementation that's probably sufficient. I figure if translators want more engines (unlikely?), then we can always add another.
Comment 2 Bastien Nocera 2014-01-07 14:07:14 UTC
Review of attachment 264760 [details] [review]:

I'd like to see a hook added to make sure that translations aren't broken for those items as well. That might require a bit more work...

::: src/prefs-dialog.c
@@ +1027,3 @@
+					     /* Search engine option in the preferences dialog. Can be used
+					      * to add an extra search engine option for your region. This
+					      * engine will be ignored if its name includes Placeholder. */

Mention to leave the comment empty to not be shown instead.

@@ +1040,3 @@
 	for (i = 0; i < G_N_ELEMENTS (default_engines); ++i)
 	{
+		if (strstr (_(default_engines[i][0]), "Placeholder"))

That's not really enough if the name got translated, and not the website URL.
Comment 3 Michael Catanzaro 2014-01-11 22:14:04 UTC
(In reply to comment #2)
> Review of attachment 264760 [details] [review]:
> 
> I'd like to see a hook added to make sure that translations aren't broken for
> those items as well. That might require a bit more work...

Do you mean a test in 'make check', or something else?
Comment 4 Michael Catanzaro 2017-02-24 22:29:54 UTC
Remember this?

Translators can translate the default search engines or add as many as they want now, bug #776738.