GNOME Bugzilla – Bug 430445
default title for a new 'GtkFileChooserButton' shouldn't be localized
Last modified: 2016-01-29 16:56:40 UTC
Create a project, and add a GtkFileChooserButton to it. The default title for it will be localized. If we take i18n in consideration, it shouldn't. For example, in my Spanish localized environment, a new GtkFileChooserButton has a default title of "Seleccione un archivo".
IMHO all lines concerning /plugins/gtk+/gtk+.xml.in should be removed from /po/* Localizing widget classes and their properties may make sense for pure UI designers. On the other hand it makes Glade hard to use for programmers, who have to reverse engineer the translation every time they're looking for something they know will end up as e.g. GtkLayout.
In fact, the title of a GtkFileChooserButton is not set by gtk+.xml.in but introspected from the file chooser button itself, that's the value it sets by itself and fetches from the locale. Fixing this by just defaulting it to an empty string. commit fcae2de874d06d797302f6a09f4c24ffbd592107 Author: Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> Date: Fri Jan 29 17:53:01 2016 +0100 Bug 430445 - null string default title for GtkFileChooserButton Actually, the title displayed is introspected from the filechooser button and takes whatever happens to be set by GTK+ in the given locale. Just null it out and let the user set a title.