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 732585 - [PATCH] prevent hardcoded Latin punctuation marks
[PATCH] prevent hardcoded Latin punctuation marks
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Date and Time
git master
Other Linux
: Normal normal
: ---
Assigned To: Kalev Lember
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-01 20:52 UTC by Stanislav Brabec
Modified: 2014-07-15 13:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-control-center-datetime-punctuation-i18n.patch (2.07 KB, patch)
2014-07-02 17:20 UTC, Stanislav Brabec
needs-work Details | Review
gnome-control-center-datetime-punctuation-i18n.patch (2.66 KB, patch)
2014-07-11 18:45 UTC, Stanislav Brabec
rejected Details | Review
gnome-control-center-datetime-punctuation-i18n-nocontext.patch (2.62 KB, patch)
2014-07-11 18:51 UTC, Stanislav Brabec
rejected Details | Review
gnome-control-center-datetime-punctuation-i18n-force-context.patch (2.67 KB, patch)
2014-07-11 19:00 UTC, Stanislav Brabec
committed Details | Review

Description Stanislav Brabec 2014-07-01 20:52:21 UTC
Our Arabic tester reported mixing of Arabic text and Latin punctuation mark (comma).

The Latin comma is hardcoded and cannot be changed.

Attached patch makes possible to translate comma, and also parentheses to the native script.
Comment 1 Bastien Nocera 2014-07-01 22:08:56 UTC
Missing patch?
Comment 2 Stanislav Brabec 2014-07-02 17:20:07 UTC
Created attachment 279793 [details] [review]
gnome-control-center-datetime-punctuation-i18n.patch
Comment 3 Bastien Nocera 2014-07-03 11:47:06 UTC
Review of attachment 279793 [details] [review]:

::: panels/datetime/cc-datetime-panel.c
@@ +521,2 @@
   country = gnome_get_country_from_code (loc->country, NULL);
+  /* Translators: "city, country", use comma specific for your language */

You can remove the "use ... for your language" in all the comments.

@@ +550,2 @@
   /* Update the timezone on the listbow row */
+  /* Translators: "timezone (details)", use parentheses specific for your language */

Ditto.

@@ +573,2 @@
   /* Update the text bubble in the timezone map */
+  /* Translators: "timezone (detals)\ncity\ntime, use parentheses

Ditto and typo.

@@ +573,3 @@
   /* Update the text bubble in the timezone map */
+  /* Translators: "timezone (detals)\ncity\ntime, use parentheses
+   * specific for your language, do not translate html tags */

They're not HTML tags, and this should be fixed properly.
Comment 4 Stanislav Brabec 2014-07-11 18:45:29 UTC
Created attachment 280527 [details] [review]
gnome-control-center-datetime-punctuation-i18n.patch

New version of the patch.

This is a super-safe version of the patch, that allows different "translations" of parentheses of "timezone (details)" and "timezone (utc shift)".
Comment 5 Stanislav Brabec 2014-07-11 18:51:34 UTC
Created attachment 280529 [details] [review]
gnome-control-center-datetime-punctuation-i18n-nocontext.patch

Maybe, that the use of context is an overkill here. Here is a simplified version that allows just a single translation of "%s (%s)".
Comment 6 Stanislav Brabec 2014-07-11 19:00:50 UTC
Created attachment 280530 [details] [review]
gnome-control-center-datetime-punctuation-i18n-force-context.patch

But looking at other places of code, it uses context for similar strings.

Here is a third version of the patch, that forces context for all three strings.
Comment 7 Bastien Nocera 2014-07-15 13:03:06 UTC
Review of attachment 280527 [details] [review]:

That looks fine, apart from the commit subject.
Comment 8 Bastien Nocera 2014-07-15 13:03:50 UTC
Review of attachment 280529 [details] [review]:

It really needs both context and comments.
Comment 9 Bastien Nocera 2014-07-15 13:05:16 UTC
Review of attachment 280530 [details] [review]:

That's probably the one we want.
Comment 10 Bastien Nocera 2014-07-15 13:06:55 UTC
Review of attachment 280527 [details] [review]:

Rejected in favour of the third patch.
Comment 11 Bastien Nocera 2014-07-15 13:13:07 UTC
Fixed in master for GNOME 3.14. Thanks!