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 430445 - default title for a new 'GtkFileChooserButton' shouldn't be localized
default title for a new 'GtkFileChooserButton' shouldn't be localized
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-16 21:08 UTC by Claudio Saavedra
Modified: 2016-01-29 16:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Claudio Saavedra 2007-04-16 21:08: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".
Comment 1 towb 2012-02-03 16:26:57 UTC
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.
Comment 2 Tristan Van Berkom 2016-01-29 16:56:40 UTC
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.