Hi,

Here is the example of the way, telling to the translator from the
developer to avoid mistranslation in the ambiguous strings. Well, the
following modification in the bitzi.c can't be said civilized method
even in the compliment :-) But, it's glad if developers keep this in
mind.

Index: po/Makevars
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/po/Makevars,v
retrieving revision 1.2
diff -u -r1.2 Makevars
--- po/Makevars 14 Aug 2003 20:24:37 -0000      1.2
+++ po/Makevars 9 Jan 2005 02:42:09 -0000
@@ -8,7 +8,8 @@
 top_builddir = ..
 
 # These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8
+XGETTEXT_OPTIONS = --add-comments=TRANS --keyword=_ --keyword=N_ \
+                       --from-code=UTF-8
 
 # This is the copyright holder that gets inserted into the header of the
 # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
Index: src/ui/gtk/bitzi.c
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/ui/gtk/bitzi.c,v
retrieving revision 1.7
diff -u -r1.7 bitzi.c
--- src/ui/gtk/bitzi.c  19 Dec 2004 00:12:10 -0000      1.7
+++ src/ui/gtk/bitzi.c  9 Jan 2005 02:42:14 -0000
@@ -50,23 +50,54 @@
 
 static const gchar * const bitzi_fj_table[] =
 {
+
        N_("Bitzi|Unknown"),                            /* UNKNOWN */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Dangerous/Misleading"),       /* DANGEROUS_MISLEADING */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Incomplete/Damaged"),         /* INCOMPLETE_DAMAGED */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Substandard"),                        /* SUBSTANDARD */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Overrated"),                          /* OVERRATED */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Normal"),                                     /* NORMAL */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Underrated"),                         /* UNDERRATED */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Complete"),                           /* COMPLETE */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Recommended"),                        /* RECOMMENDED */
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
        N_("Bitzi|Best Version"),                       /* BEST_VERSION*/
+       /* TRANS: In the translated string discard everything up to the
+        * first '|' and translate the rest only.
+        */
 };

The result becomes it like this:

#. TRANS: In the translated string discard everything up to the
#. * first '|' and translate the rest only.
#.
#: src/ui/gtk/bitzi.c:58
msgid "Bitzi|Dangerous/Misleading"
msgstr ""

(...)

Thank you.
-- 
Daichi


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to