|Pliant talk forum
Feature request: Locale
automatically lookup string translations
|Message posted by maybe Boris Reitman on 2008/02/28 22:50:38
|I have thought of a cool feature that will lookup for string translation for
every observed string. The feature should be enabled
by default, and disabled with declaration that works like private/public keywords.
set_locale "fr" "en" # run-time method to set order of language preference
console "hello" eol # will print "bonjour"
disable_locale # compile time meta
console "hello" eol # will print "hello" in all cases
enable_locale # compile time meta
console "hello" eol # will again print "bonjour"
The translation must occur at run-time, because locale is configurable at run-time.
The actual transations must be placed in external file similar to the way
"custom" files are layed out.
will have french strings for
/pliant/x/y/z.pli source file
In addition, a special pliant database that will be automatically looked up
can be use for string translations.
|Message posted by maybe Hubert Tonneau on 2008/02/29 00:40:28
|It's already available.
|Message posted by maybe Boris Reitman on 2008/06/29 13:48:27
|Could you please write a short article on how to use it ?