Simple Usage:
0. run program
0. copy and rename "translate/dir/base" to "translate/dir/lang.lt", where <lang> is language to translate
0. in each line in "translate/dir/lang.lt" write translation of line, for example hello : привет
0. profit
load localizations from directory
singleton class for localization
localization handler
convert key to word
main function for localization when debug(printlocalizationkeys) output keys from pragma
1 setTranslatePath( "<translate/dir>" ); 2 writeln( _!"hello" ); 3 Translator.setLocalization( "ru" ); 4 writeln( _!"hello" ); 5 writeln( _!"world" );
See Source File
Simple Usage:
0. run program
0. copy and rename "translate/dir/base" to "translate/dir/lang.lt", where <lang> is language to translate
0. in each line in "translate/dir/lang.lt" write translation of line, for example hello : привет
0. profit