]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
New section "Names".
authorBruno Haible <bruno@clisp.org>
Thu, 1 May 2003 10:27:47 +0000 (10:27 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:25 +0000 (12:10 +0200)
NEWS
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi

diff --git a/NEWS b/NEWS
index 8a518f1d24a1fd318d9014e9b2d741c84d84af16..e4ec37b6c9da113f141268395274bfdd9eef8158 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -46,8 +46,9 @@ Version 0.12-pre1 - February 2003
   New documentation section:
   - Writing your own programs that process PO files.
 
-* New documentation section:
+* New documentation sections:
   - Prioritizing messages: How to determine which messages to translate first.
+  - Names: Marking Proper Names for Translation.
 
 * xgettext now supports msgid strings in other encodings than ASCII.
   xgettext has a new option --from-code that specifies the encoding of the
index 34d00b1524f27290acf526a4237df9ccb2b938b0..83bf0a7a02b66f10806c1b63097fcbd34f05dbe7 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.texi (Names): New section.
+
 2003-04-22  Bruno Haible  <bruno@clisp.org>
 
        * gettext.texi (Java): Document how to use .properties files.
index dbcfde499df1d5c8ee1bf18b6bc103528d8624bd..cc33f67fe5a1dc731e53c7fa18f3cf912aaa58f7 100644 (file)
@@ -171,6 +171,7 @@ Preparing Program Sources
 * Marking::                     Marking Translatable Strings
 * c-format Flag::               Telling something about the following string
 * Special cases::               Special Cases of Translatable Strings
+* Names::                       Marking Proper Names for Translation
 
 Making the PO Template File
 
@@ -1716,6 +1717,7 @@ sections of this chapter.
 * Marking::                     Marking Translatable Strings
 * c-format Flag::               Telling something about the following string
 * Special cases::               Special Cases of Translatable Strings
+* Names::                       Marking Proper Names for Translation
 @end menu
 
 @node Triggering, Preparing Strings, Sources, Sources
@@ -2344,7 +2346,7 @@ user can find out who is responsible for the decision.  See
 @ref{xgettext Invocation} to see how the @code{--debug} option can be
 used for solving this problem.
 
-@node Special cases,  , c-format Flag, Sources
+@node Special cases, Names, c-format Flag, Sources
 @section Special Cases of Translatable Strings
 
 @cindex marking string initializers
@@ -2438,6 +2440,77 @@ sure the output is really translated in any case.  But this analysis is
 generally not very difficult.  If it should be in any situation you can
 use this second method in this situation.
 
+@node Names,  , Special cases, Sources
+@section Marking Proper Names for Translation
+
+Should names of persons, cities, locations etc. be marked for translation
+or not?  People who only know languages that can be written with Latin
+letters (English, Spanish, French, German, etc.) are tempted to say ``no'',
+because names usually do not change when transported between these languages.
+However, in general when translating from one script to another, names
+are translated too, usually phonetically or by transliteration.  For
+example, Russian or Greek names are converted to the Latin alphabet when
+being translated to English, and English or French names are converted
+to the Katakana script when being translated to Japanese.  This is
+necessary because the speakers of the target language in general cannot
+read the script the name is originally written in.
+
+As a programmer, you should therefore make sure that names are marked
+for translation, with a special comment telling the translators that it
+is a proper name and how to pronounce it.  Like this:
+
+@example
+@group
+printf (_("Written by %s.\n"),
+        /* TRANSLATORS: This is a proper name.  See the gettext
+           manual, section Names.  Note this is actually a non-ASCII
+           name: The first name is (with Unicode escapes)
+           "Fran\u00e7ois" or (with HTML entities) "Fran&ccedil;ois".
+           Pronounciation is like "fraa-swa pee-nar".  */
+        _("Francois Pinard"));
+@end group
+@end example
+
+As a translator, you should use some care when translating names, because
+it is frustrating if people see their names mutilated or distorted.  If
+your language uses the Latin script, all you need to do is to reproduce
+the name as perfectly as you can within the usual character set of your
+language.  In this particular case, this means to provide a translation
+containing the c-cedilla character.  If your language uses a different
+script and the people speaking it don't usually read Latin words, it means
+transliteration; but you should still give, in parentheses, the original
+writing of the name -- for the sake of the people that do read the Latin
+script.  Here is an example, using Greek as the target script:
+
+@example
+@group
+#. This is a proper name.  See the gettext
+#. manual, section Names.  Note this is actually a non-ASCII
+#. name: The first name is (with Unicode escapes)
+#. "Fran\u00e7ois" or (with HTML entities) "Fran&ccedil;ois".
+#. Pronounciation is like "fraa-swa pee-nar".
+msgid "Francois Pinard"
+msgstr "\phi\rho\alpha\sigma\omicron\alpha \pi\iota\nu\alpha\rho"
+       " (Francois Pinard)"
+@end group
+@end example
+
+Because translation of names is such a sensitive domain, it is a good
+idea to test your translation before submitting it.
+
+The translation project @url{http://sourceforge.net/projects/translation}
+has set up a POT file and translation domain consisting of program author
+names, with better facilities for the translator than those presented here.
+Namely, there the original name is written directly in Unicode (rather
+than with Unicode escapes or HTML entities), and the pronounciation is
+denoted using the International Phonetic Alphabet (see
+@url{http://www.wikipedia.org/wiki/International_Phonetic_Alphabet}).
+
+However, we don't recommend this approach for all POT files in all packages,
+because this would force translators to use PO files in UTF-8 encoding,
+which is - in the current state of software (as of 2003) - a major hassle
+for translators using GNU Emacs or XEmacs with po-mode.
+
 @node Template, Creating, Sources, Top
 @chapter Making the PO Template File
 @cindex PO template file