Lines Matching full:gettext
2811 GNU has a library called GNU gettext that makes it easy to translate the
2814 in the program, and let gettext provide the way to translate them into
2817 Using GNU gettext involves putting a call to the `gettext' macro
2820 printf (gettext ("Processing file `%s'..."));
2822 This permits GNU gettext to replace the string `"Processing file
2825 Once a program uses gettext, please make a point of writing calls to
2826 `gettext' when you add new strings that call for translation.
2828 Using GNU gettext in a package involves specifying a "text domain
2834 To enable gettext to work well, avoid writing code that makes
2845 If you apply gettext to all strings, like this,
2847 printf (gettext ("%s is full"),
2848 capacity > 5000000 ? gettext ("disk") : gettext ("floppy disk"));
2858 printf (capacity > 5000000 ? gettext ("disk is full")
2859 : gettext ("floppy disk is full"));
2867 Adding `gettext' calls to this code cannot give correct results for all
2869 more than one place in the sentence. By contrast, adding `gettext'
2882 by adding `s'. If you apply gettext to the format string, like this,
2884 printf (gettext ("%d file%s processed"), nfiles,
2888 `s' for the plural. Here is a better way, with gettext being applied to
2891 printf ((nfiles != 1 ? gettext ("%d files processed")
2892 : gettext ("%d file processed")),
5406 * gettext: Internationalization.