Expand description
§rtr
rtr is a crate that return strings from translation files
Thoses files need to be manually created with the rtrTranslator software
source code at :
Macros§
- rtr
- Same as rtr but will format the text.
Will translate the first argument and then format with the others.
Functions§
- disable
- Disable the translation
rtr will returns the argument - enable
- Enable the translation
rtr will now try to read strings from the translation file
The translation then need to be loaded with init!
Only useful after using disable - init
- Set the language for the program
- is_
enabled - Return the state of the translation
If false rtr will return the argument
If true rtr will act normaly
True by default - rtr
- Use with every str that you need to translate