]> sourceware.org Git - systemtap.git/commitdiff
PR3823: How to add basic gettext to systemtap in po/README
authorLukas Berk <lberk@redhat.com>
Fri, 18 Mar 2011 13:58:59 +0000 (09:58 -0400)
committerLukas Berk <lberk@redhat.com>
Fri, 18 Mar 2011 13:58:59 +0000 (09:58 -0400)
po/README

index 7b83eee9258d83918cd69f5c4c7e2245992806db..8691fb1a871d295ab684b44e883a448e81d6aa12 100644 (file)
--- a/po/README
+++ b/po/README
@@ -34,3 +34,10 @@ comment code '//TRANSLATORS: ' one line above a gettext string will be passed
 through to the systemtap.pot file for translators to view.  Feel free to ask 
 for any further clarifications either on the systemtap mailing list or on
 the freenode #systemtap channel.
+
+In the most general case, adding a translatable string can be done by simply
+wrapping the string with the _() macro, ie. _("string to translate here").
+The macro _F() has been used for autosprintf, and _N() for ngettext, and _NF()
+for a combination of autosprintf and ngettext.  For more information on how to
+use gnu gettext please consult the online manual at 
+http://www.gnu.org/software/gettext/
This page took 0.027054 seconds and 5 git commands to generate.