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 129889 - Gettextize displayed default profile name
Gettextize displayed default profile name
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
2.11.x
Other All
: High normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-23 09:26 UTC by Christian Neumair
Modified: 2006-01-15 20:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Proposed patch. We could use a UTF-8 cmp function,too, but since the ID is ASCII-only, it shouldn't matter. (5.79 KB, patch)
2003-12-23 09:27 UTC, Christian Neumair
none Details | Review
Proposed patch #2. #1 contained totally unrelated tweaks/fixes. (1.23 KB, patch)
2003-12-23 09:28 UTC, Christian Neumair
needs-work Details | Review
Proposed patch (2.23 KB, patch)
2005-08-23 11:31 UTC, Christian Neumair
rejected Details | Review

Description Christian Neumair 2003-12-23 09:26:23 UTC
It would be nice to have "Default" i18n'ized in the GUI.

regs,
 Chris
Comment 1 Christian Neumair 2003-12-23 09:27:12 UTC
Created attachment 22663 [details] [review]
Proposed patch. We could use a UTF-8 cmp function,too, but since the ID is ASCII-only, it shouldn't matter.
Comment 2 Christian Neumair 2003-12-23 09:28:12 UTC
Created attachment 22664 [details] [review]
Proposed patch #2. #1 contained totally unrelated tweaks/fixes.
Comment 3 Mariano Suárez-Alvarez 2004-06-11 01:10:12 UTC
This patch won't allow people to use the name `Default' for a profile name...
Comment 4 Kjartan Maraas 2005-08-19 20:44:01 UTC
Christian? Is Mariano right about that? Even for en_XX locales?
Comment 5 Christian Neumair 2005-08-19 21:46:09 UTC
No, it will just ensure that we use the gettextized version of "Default" as
user-visible name of a profile, if "Default" is the actual profile ID.
For locales which don't translate "Default", this doesn't make a difference. For
others, it will indeed convert the name "Default" to the translation of
"Default" in the UI. This doesn't do any harm IMHO.
I'll check back whether we write this key somewhere back to gconf, which would
be no good.

Note that the patch is not very clean, though. The strcmp should take place when
assigning the visible_name variable, not in the getter.
Comment 6 Christian Neumair 2005-08-23 11:31:48 UTC
Created attachment 51181 [details] [review]
Proposed patch

This one is even untested. If the visible name is set to _("Default")
("Default" in en_*, "Vorgabe" in de, etc.), "Default" is written back to gconf.
In the gconf change callback, we then set the user-visible name of the profile
to _("Default") if the GConf key for the visible is is "Default", thus ensuring
that on locale changes, the name is still translated correctly.
Comment 7 Guilherme de Siqueira Pastore 2006-01-15 19:49:59 UTC
The patch is a bit crazy and messy. I think the best we can do now is make the visible name translatable in the schema, and leave those already configured the way they are. Fixed in HEAD. Thanks!