]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix an answer.
authorBruno Haible <bruno@clisp.org>
Tue, 8 Mar 2005 13:20:07 +0000 (13:20 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:23 +0000 (12:12 +0200)
gettext-tools/doc/ChangeLog
gettext-tools/doc/FAQ.html

index e4f2a4d943507788e8ba3da570890ce6b79e12ca..a52576ae668e0b8f8a6ec983f44eb561ca7570eb 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-07  Bruno Haible  <bruno@clisp.org>
+
+       * FAQ.html (How do I make use of gettext() in my package?): Add more
+       info.
+       Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
+
 2005-03-06  Bruno Haible  <bruno@clisp.org>
 
        * gettext.texi (src/Makefile): Document the steps that need to be done
index 1a8e272bb1cb75e0360f2d2e12f9347a34f8b433..594e75d90fef5cb1a1ac0be34f2afdda3d5ea8c5 100644 (file)
@@ -226,6 +226,14 @@ doing this, try to turn the strings into good English, one entire
 sentence per string, not more than one paragraph per string, and use
 format strings instead of string concatenation. This is needed so that
 the translators can provide accurate translations.</li>
+  <li>In every source file containing translatable strings, add these lines
+to the header:<br>
+    <div style="margin-left: 40px;"><code><span
+ style="font-family: monospace;">#include "gettext.h"</span><br
+ style="font-family: monospace;">
+    <span style="font-family: monospace;">#define _(string) gettext (string)</span></code><br>
+    </div>
+  </li>
   <li>In the freshly created <span style="font-family: monospace;">po/</span>
 directory, set up the <span style="font-family: monospace;">POTFILES.in</span>
 file, and do a “<span style="font-family: monospace;">make update-po</span>”.