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 747125 - gnome-screenshot keys description in dconf is in Chinese.
gnome-screenshot keys description in dconf is in Chinese.
Status: RESOLVED FIXED
Product: gnome-screenshot
Classification: Core
Component: general
3.16.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-screenshot-maint
gnome-screenshot-maint
: 747621 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-03-31 16:33 UTC by Egor Zaharov
Modified: 2015-04-10 14:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of problem (670.94 KB, image/png)
2015-03-31 16:33 UTC, Egor Zaharov
  Details
Fix schema translations (1.51 KB, patch)
2015-04-01 23:51 UTC, Matthias Clasen
committed Details | Review

Description Egor Zaharov 2015-03-31 16:33:05 UTC
Created attachment 300683 [details]
Screenshot of problem

But system language is Russian. This is strange.
See attached screenshot.
Comment 1 Cosimo Cecchi 2015-03-31 16:44:11 UTC
I can't think of anything in gnome-screenshot that might trigger that... Reassigning to dconf-editor.
Comment 2 André Klapper 2015-03-31 21:15:27 UTC
The translation is correct in https://l10n.gnome.org/POT/gnome-screenshot.master/gnome-screenshot.master.ru.po which is used for 3.16.

Was this system ever run / initialized in Chinese?
Does that only happen for that specific one key, or for any keys of gnome-screenshot, or for all keys across all modules?
Comment 3 Egor Zaharov 2015-03-31 21:24:30 UTC
(In reply to André Klapper from comment #2)
> Was this system ever run / initialized in Chinese?
Never. This is Fedora 22 Alpha.

> Does that only happen for that specific one key, or for any keys of
> gnome-screenshot, or for all keys across all modules?
Briefly looked in dconf-editor.
I see all keys of org.gnome.gnome-screenshot, org.gnome.maps, org.gnome.file-roller descriptions completely in Chinese.
My locale is:
[nexfwall@VPCYB1S1R-OS01 ~]$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
Comment 4 Arnaud B. 2015-04-01 07:21:55 UTC
The bug is confirmed also in other locales (french and norwegian), and exists on more than one distro (Fedora & OpenSUSE).
Comment 5 Matthias Clasen 2015-04-01 10:54:44 UTC
from org.gnome.gnome-screenshot.gschema.xml:

<schemalist gettext-domain="gnome-utils-2.0">
Comment 6 Cosimo Cecchi 2015-04-01 18:48:58 UTC
Matthias, in comment 3 Egor said that this is happening with other applications too, so I am not sure the problem is in gnome-screenshot (even though what you have found appears to be a bug).
Comment 7 Matthias Clasen 2015-04-01 20:26:46 UTC
Ah, of course: The problem is that you let intltool merge translations into the gschema.xml file. Thats not how schema translations work: you need to put the gettext domain in the xml, and have the translations in your .mo file.

Most likely, you're just ending up with the translation that happens to be last in the xml, for each string.
Comment 8 Allison Karlitskaya (desrt) 2015-04-01 22:38:34 UTC
Bug 747209 for a glib-compile-schmeas change that could have helped to avoid this situation.
Comment 9 Matthias Clasen 2015-04-01 23:51:34 UTC
Created attachment 300782 [details] [review]
Fix schema translations

There are two fixes here. First, we need to use the correct
gettext domain in the schema file and second, we must not
merge translations back into the xml file, since dconf-editor
can't deal with that.

http://bugzilla.gnome.org/show_bug.cgi?id=747125
Comment 10 Cosimo Cecchi 2015-04-01 23:52:58 UTC
Review of attachment 300782 [details] [review]:

Looks good, thanks!
Comment 11 Matthias Clasen 2015-04-01 23:53:39 UTC
Attachment 300782 [details] pushed as 65473b2 - Fix schema translations
Comment 12 André Klapper 2015-04-10 14:30:32 UTC
*** Bug 747621 has been marked as a duplicate of this bug. ***