RESOLVED FIXED 169672
Make it possible to use WEB_UI_STRING macros to mark translatable strings in glib based ports
https://bugs.webkit.org/show_bug.cgi?id=169672
Summary Make it possible to use WEB_UI_STRING macros to mark translatable strings in ...
Carlos Garcia Campos
Reported 2017-03-15 07:12:26 PDT
WEB_UI_STRING macros are currently used by Cocoa based ports and Windows port. For other ports it simply returns the given string, but it's not translated. In the GTK+ port we have all translatable strings from LocalizedStrings.cpp copied in LocalizedStringsGtk.cpp to use the glib macros to mark them as translatable. In most of the cases the strings are exactly in the same, in some others (the context menu ones) the string only differs in the mnemonics used by GTK, and only in a few cases the strings are different. We could remove most of that duplication if strings used by WEB_UI_STRING were marked as translatable in glib based ports too.
Attachments
Patch (77.89 KB, patch)
2017-03-15 07:24 PDT, Carlos Garcia Campos
mcatanzaro: review+
Carlos Garcia Campos
Comment 1 2017-03-15 07:24:47 PDT
Michael Catanzaro
Comment 2 2017-03-15 10:02:47 PDT
Comment on attachment 304498 [details] Patch Nice! Let's try it.
Carlos Garcia Campos
Comment 3 2017-03-22 02:56:07 PDT
Piotr Drąg
Comment 4 2017-03-22 18:07:12 PDT
A lot of strings disappeared from the .pot file at https://l10n.gnome.org/module/webkit/ — I just want to make sure that’s intended.
Carlos Garcia Campos
Comment 5 2017-03-22 23:25:20 PDT
(In reply to Piotr Drąg from comment #4) > A lot of strings disappeared from the .pot file at > https://l10n.gnome.org/module/webkit/ — I just want to make sure that’s > intended. I would expect more, not less. How is that pot file generated? It's not from a webkit build for sure.
Piotr Drąg
Comment 6 2017-03-23 09:23:14 PDT
It’s probably using intltool, but I’m not sure. I’ve files a bug against damned-lies: https://bugzilla.gnome.org/show_bug.cgi?id=780458
Note You need to log in before you can comment on or make changes to this bug.