Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 512 Bytes

localization.md

File metadata and controls

23 lines (19 loc) · 512 Bytes

Provides tool for localization program.

Example:

import des.util.localization;

void main()
{
    setTranslatePath( "translate/dir" );
    Translator.setLocalization( "ru" );
    writeln( _!"hello" );
}
  1. run program
  2. copy and rename file translate/dir/base to translate/dir/lang.lt, where is language to translate
  3. translate each line in translate/dir/lang.lt example: hello : привет
  4. run program
  5. when program call _!"hello"it returns "привет"w