[−][src]Function rtr::init
pub fn init(new_lang: &str) -> Result<(), Error>
Set the language for the program
Examples
To set the program in french
extern crate rtr; match rtr::init("fr"){ Ok(_) => (), Err(e) => panic!("couldn't load the fr translation file, error {}", e), };
Don't forget that it will need the ./lang/fr.txt file
Errors
Will return an std::io:Error in case of trouble loading the translation file