Hi I tried to add a translator comment as documented in https://wiki.gnome.org/TranslationProject/DevGuidelines/Use%20comments
but the comment does not show up in the po file after using intltool-update. Patch attached. Any thoughts? #: ../src/org.gnome.Terminal.gschema.xml.h:1 msgctxt "visible-name" msgid "'Unnamed'" msgstr "'Unbenannt'" Am Dienstag, den 23.09.2014, 20:31 +0200 schrieb Christian Persch: > Hi; > > gnome-terminal contains a gsettings schema with a value that allows > localising the default: > > #: ../src/org.gnome.Terminal.gschema.xml.h:1 > msgctxt "visible-name" > msgid "'Unnamed'" > msgstr "" > > Here, the single-quotes around the string are essential, and *must* be > reproduced in the translated string, since this value will be parsed > as a GVariant of type "s" (string). > > However, I've found out that many translations of this (msgctxt, msgid) > are using locale-specific quotes here, e.g.: > > ca.po:msgctxt "visible-name" > ca.po-msgid "'Unnamed'" > ca.po-msgstr "«Sense nom»" > > This will *not* work as intended, since parsing will fail and thus the > untranslated default value will be used (and a warning printed on > console). > > At least the following translations are affected (but everyone else is > invited to double-check theirs too): > > bg, ca, ca@valencia, de, es, fr, gl, hu, ko, lt, lv, nb, ne, nl, sk, > sr, sr@latin, te, zh_CN, zh_HK, zh_TW > > Note that the same problem may also exist in other modules that use > translatable default values, but I didn't check for that. > > Regards, > Christian > _______________________________________________ > gnome-i18n mailing list > gnome-i18n@gnome.org > https://mail.gnome.org/mailman/listinfo/gnome-i18n -- Christian Kirbach <christian.kirb...@gmail.com>
From 1ed58a819f0540831de98787d9cc585e1308d163 Mon Sep 17 00:00:00 2001 From: Christian Kirbach <christian.kirb...@gmail.com> Date: Sat, 27 Sep 2014 16:06:59 +0200 Subject: [PATCH] Add translator comment --- src/org.gnome.Terminal.gschema.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org.gnome.Terminal.gschema.xml b/src/org.gnome.Terminal.gschema.xml index c7d0edb..c1f8d93 100644 --- a/src/org.gnome.Terminal.gschema.xml +++ b/src/org.gnome.Terminal.gschema.xml @@ -92,7 +92,7 @@ <schema id="org.gnome.Terminal.Legacy.Profile"> <key name="visible-name" type="s"> - <default l10n="messages" context="visible-name">'Unnamed'</default> + <default l10n="messages" context="visible-name"><!-- Translators: the single-quotes around the string are essential, and *must* be kept in the translated string -->'Unnamed'</default> <summary>Human-readable name of the profile</summary> <description>Human-readable name of the profile.</description> </key> -- 1.9.1
_______________________________________________ gnome-i18n mailing list gnome-i18n@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-i18n