From: Bruno Haible Date: Tue, 8 Mar 2005 13:20:07 +0000 (+0000) Subject: Fix an answer. X-Git-Tag: v0.14.3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=875bc5c1479c9dcf90c6d2262aabb39a0dccdefb;p=thirdparty%2Fgettext.git Fix an answer. --- diff --git a/gettext-tools/doc/ChangeLog b/gettext-tools/doc/ChangeLog index e4f2a4d94..a52576ae6 100644 --- a/gettext-tools/doc/ChangeLog +++ b/gettext-tools/doc/ChangeLog @@ -1,3 +1,9 @@ +2005-03-07 Bruno Haible + + * FAQ.html (How do I make use of gettext() in my package?): Add more + info. + Reported by Alexandre Duret-Lutz . + 2005-03-06 Bruno Haible * gettext.texi (src/Makefile): Document the steps that need to be done diff --git a/gettext-tools/doc/FAQ.html b/gettext-tools/doc/FAQ.html index 1a8e272bb..594e75d90 100644 --- a/gettext-tools/doc/FAQ.html +++ b/gettext-tools/doc/FAQ.html @@ -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. +
  • In every source file containing translatable strings, add these lines +to the header:
    +
    #include "gettext.h"
    + #define _(string) gettext (string)

    +
    +
  • In the freshly created po/ directory, set up the POTFILES.in file, and do a “make update-po”.