Details
Description
Add a method to mark strings for translation, allowing the compiler to output file containing all marked strings. Use translated strings if available in the user's locale.
Possibly similar to gettext's "_" function:
print( "Don't translate me." )
print( _"Translate me." )
See [ http://www.gnome.org/~malcolm/i18n/marking-strings.html ] for C/C++ examples.
Issue Links
| This issue relates to: | ||||
| BOO-1 | Generalize units in the syntax, allow pipeline to define new units |
|
|
|
I also thought of it, and think we may support either GetText and ResourceManager.GetString() mechanisms, which the user chooses using command line options at compile time.
I think the best approach is to create some macro-magic in two similar pipeline stages that some command-line option inserts in the compiling pipeline...
Personal preference: I would prefer to have "internationalized string literals" denoted by a # prefix.