GNOME Bugzilla – Bug 783078
Password strings are untranslated
Last modified: 2017-12-04 18:16:01 UTC
There are problems with the translations in some strings. It seems that the .po file is right. I noticed that the string in password.c 73 gchar *title_text = N_("Type your password"); 74 75 if(password_data->username) 76 title_text = N_("Type your username and password"); with the prefix N_ doesn't translate, but if I change it to: 73 gchar *title_text = _("Type your password"); 74 75 if(password_data->username) 76 title_text = _("Type your username and password"); the translation is properly done. I don't know if there is any other string like this. I checked it with ca@valencia and es_ES and it works if I change the N_.
This is weird, I'm not a specialist in I18n so I would like to hear what Piotr Drag have to say about it.
I’m not sure what happens here. Other strings marked with N_, in about.c and option.c, are showing up translated. Maybe these two shouldn’t use N_? Here is some info on it: https://developer.gnome.org/glib/stable/glib-I18N.html#N-:CAPS
I’ve found that this code was added in bug #712616.
Created attachment 362501 [details] [review] password: Replace N_() with regular _() Alfredo’s solution in a patch form.
I compiled Zenity with this patch. The strings show up translated, and the dialog works as intended.
Comment on attachment 362501 [details] [review] password: Replace N_() with regular _() Pushed: https://git.gnome.org/browse/zenity/commit/?id=ab9f2e70e4914a2ca943c2584696ea06da397f11