Internationalization

See all posts Reply

Internationalization new!
by michael, 17 years, 3 months ago
Hello,

after reading the code, looking around here all docs, i still do not know how to show localized (not english) messages.
The class uses gettext (as far i can see), but could someone point in the right direction how to use several languages?

thx in advance - michaelReply
Re: Internationalization new!
by colin, 17 years, 3 months ago
The class simply uses the function _() to translate text. At the end of the class, the function _() is defined if it doesn't already exist, and simply returns the text that it receives in input.

So you can define your own function _() that will translate the messages, and for instance just wrap your own translation functions with it.Reply