Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation to French #303

Closed
mariuszgromada opened this issue Jul 5, 2023 · 1 comment
Closed

Translation to French #303

mariuszgromada opened this issue Jul 5, 2023 · 1 comment

Comments

@mariuszgromada
Copy link
Owner

mariuszgromada commented Jul 5, 2023

USER_LANGUAGE = "Français";

@mariuszgromada
Copy link
Owner Author

If the operating system language is "fr", this language will be automatically set when the library starts. These options can be changed by using one of the following methods:

mXparser.disableSelectBestMatchingLanguage();
mXparser.enableSelectBestMatchingLanguage();
mXparser.checkIfSelectBestMatchingLanguage();

If you want to load the "fr" language regardless of your system settings, you can use one of the following syntax:

mXparser.changeLanguageTo("fr");
mXparser.changeLanguageTo(JAVAL: new Locale("...") / C#: new CultureInfo("..."));
StringModel.setStringResources(StringResources.bestMatchingLanguage("fr"));
StringModel.setStringResources(StringResources.bestMatchingLanguage(JAVAL: new Locale("...") / C#: new CultureInfo("...")));

If you have set a different language than the one used in the operating system and you would like to return to it from the OS, use:

mXparser.changeLanguageToBestMatching();
mXparser.enableSelectBestMatchingLanguage();
StringModel.setStringResources(StringResources.bestMatchingLanguage();

I recommend that you also pay attention to the following elements:

StringResources
StringResources.languageFrench()
StringModel
StringModel.setStringResources();
StringModel.setDefaultStringResources();
StringModel.setDefaultEnglishStringResources();
StringModel.getStringResources().print();
StringModel.print();

I hope you enjoy using it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant