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

More than one locale? #10

Closed
Arbars opened this issue Jan 25, 2023 · 1 comment
Closed

More than one locale? #10

Arbars opened this issue Jan 25, 2023 · 1 comment

Comments

@Arbars
Copy link
Contributor

Arbars commented Jan 25, 2023

Hi!
First of all, thank you for your work!
I'm making russian localization for this emulator, and, when I'm trying to test it, locale stay the same.
After research I found the point of plugging the locale files:


	if(locale.language() != QLocale::Japanese){
   	qDebug() << "LANG = " << locale;
   	if (myappTranslator.load(":/translation/PC6001VX_en")) {
   		app.installTranslator(&myappTranslator);
   	}

It is possible to change it for more than one locale support?

@eighttails
Copy link
Owner

Thanks for translation.
I changed loading order of language file.
765567d

  1. If system language is Japanese load no translation. (display hardcoded japanese)
  2. System language if translation found.
  3. Display English.(fallback)

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

No branches or pull requests

2 participants