GNU gettext utilities: gettext grok
From Get docs
Gettext/docs/latest/gettext-grok
Next: Temp Programmers, Previous: Using libintl.a, Up: Programmers [Contents][Index]
11.5 Being a gettext grok
NOTE: This documentation section is outdated and needs to be revised.
To fully exploit the functionality of the GNU gettext
library it is surely helpful to read the source code. But for those who don’t want to spend that much time in reading the (sometimes complicated) code here is a list comments:
- Changing the language at runtime For interactive programs it might be useful to offer a selection of the used language at runtime. To understand how to do this one need to know how the used language is determined while executing the gettext function. The method which is presented here only works correctly with the GNU implementation of the gettext functions. In the function dcgettext at every call the current setting of the highest priority environment variable is determined and used. Highest priority means here the following list with decreasing priority:
Next: Temp Programmers, Previous: Using libintl.a, Up: Programmers [Contents][Index]