|
|
|
I love this!
Marking string for internationalization is such a pain in most languages and also very dependent of the implementation behind. We should think of an extensible API to handle this cleanly. When a string _"test" is marked the compiler would replace the literal by a call to an ITranslatableStringHandler.GetString("test") method. Boo.Lang.I18N.Globalization.SourceCulture as CultureInfo : culture of the marked strings (can be null for undefined). Boo.Lang.I18N.ITranslatableStringHandler Marked string interpolations would be handled by FormatString() with the string split between the arguments. Just my 2 cents, Seems there is none.
Are you willing to contribute? |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.