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 695573 - Untranslatable strings in glib-compile-schemas
Untranslatable strings in glib-compile-schemas
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gsettings
unspecified
Other All
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-03-10 16:02 UTC by Jiro Matsuzawa
Modified: 2017-08-03 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for the bug (12.10 KB, patch)
2013-03-10 16:02 UTC, Jiro Matsuzawa
none Details | Review
glib-compile-schemas: Mark missing strings for translation (12.52 KB, patch)
2017-08-02 15:21 UTC, Piotr Drąg
committed Details | Review
glib-compile-schemas: Improve some translatable strings (13.34 KB, patch)
2017-08-03 10:42 UTC, Philip Withnall
committed Details | Review
tests: Fix gschema-compile test for translatable string changes (9.46 KB, patch)
2017-08-03 15:39 UTC, Philip Withnall
committed Details | Review
glib-compile-schemas: Use double quotes rather than single quotes (8.75 KB, patch)
2017-08-03 15:39 UTC, Philip Withnall
committed Details | Review

Description Jiro Matsuzawa 2013-03-10 16:02:42 UTC
Created attachment 238530 [details] [review]
Patch for the bug

glib-compile-schemas has many untranslatable strings.
For example:
gio/glib-compile-schemas.c:
 314               g_set_error (error, G_MARKUP_ERROR,
 315                            G_MARKUP_ERROR_INVALID_CONTENT,
 316                            "<%s> is not contained in "
 317                            "the specified range", tag);

I've attached a patch. Please review it.
Comment 1 Piotr Drąg 2017-08-02 15:21:08 UTC
Created attachment 356789 [details] [review]
glib-compile-schemas: Mark missing strings for translation

Jiro’s patch, rebased to master, git-formatted, and with proper attribution.
Comment 2 Philip Withnall 2017-08-03 10:18:58 UTC
Review of attachment 356789 [details] [review]:

++
Comment 3 Philip Withnall 2017-08-03 10:20:01 UTC
Comment on attachment 356789 [details] [review]
glib-compile-schemas: Mark missing strings for translation

I’m going to push some follow-ups to improve the wording and drop trailing \n characters.

Attachment 356789 [details] pushed as a7aa8ac - glib-compile-schemas: Mark missing strings for translation
Comment 4 Philip Withnall 2017-08-03 10:42:16 UTC
The following fix has been pushed:
c257757 glib-compile-schemas: Improve some translatable strings
Comment 5 Philip Withnall 2017-08-03 10:42:24 UTC
Created attachment 356838 [details] [review]
glib-compile-schemas: Improve some translatable strings

 • Fix capitalisation to be consistent
 • Use Unicode quotation marks where appropriate
 • Move trailing \n characters out of the translable strings and append
   them unconditionally

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 6 Piotr Drąg 2017-08-03 12:16:27 UTC
This file doesn’t use Unicode yet for a reason, see bug #772221#c4 and <https://git.gnome.org/browse/glib/commit/?id=2d56c49b1085ae3ad769e6b59329cf493eb0f8a1>.


(BTW, GLib consistently uses double quotation marks.)
Comment 7 Philip Withnall 2017-08-03 15:39:35 UTC
Pushed some follow-ups to convert to double quotation marks, and to fix the failing gschema-compile unit test.

The following fixes have been pushed:
ad9d5a1 tests: Fix gschema-compile test for translatable string changes
25c01e1 glib-compile-schemas: Use double quotes rather than single quotes
Comment 8 Philip Withnall 2017-08-03 15:39:40 UTC
Created attachment 356871 [details] [review]
tests: Fix gschema-compile test for translatable string changes

Little did I know when making commit
c257757cf6774974cf15370ccf09fad7ee855668 that a lot of the output of
glib-compile-schemas is string matched in some of the unit tests. Fix
them to match the updated strings.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 9 Philip Withnall 2017-08-03 15:39:47 UTC
Created attachment 356872 [details] [review]
glib-compile-schemas: Use double quotes rather than single quotes

It’s what GLib is standardising on. See bug #772221.

Signed-off-by: Philip Withnall <withnall@endlessm.com>