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

Default translations not loaded from the qt.conf file #524

Closed
EndrII opened this issue Feb 8, 2021 · 1 comment · Fixed by #529
Closed

Default translations not loaded from the qt.conf file #524

EndrII opened this issue Feb 8, 2021 · 1 comment · Fixed by #529
Assignees
Labels
Bug Something isn't working Linux Linux version Windows Windows version
Projects
Milestone

Comments

@EndrII
Copy link
Member

EndrII commented Feb 8, 2021

Description
After deploy cqtdeployer copy qm files into translations dir but all default widgets of qt not translated.

@EndrII EndrII added Bug Something isn't working Windows Windows version Linux Linux version labels Feb 8, 2021
@EndrII EndrII added this to the v1.5 milestone Feb 8, 2021
@EndrII EndrII self-assigned this Feb 8, 2021
@EndrII EndrII added this to To do in qtDeployer via automation Feb 8, 2021
@EndrII
Copy link
Member Author

EndrII commented Feb 12, 2021

The qt framework do not load automatically default translations .
You should be load translations manually.
Example from the qt documentations

    QTranslator qtTranslator;
    qtTranslator.load(QLocale::system(), QStringLiteral("qtbase_"));
    app.installTranslator(&qtTranslator);

But if you have a multiple qm files then you should be load all qm files.
We have a one solution in the QuasarApplib library.

Example:

  QuasarAppUtils::Locales::init()

See the translations documentation

This command load all default translations and your translations that are in the translations folder.
The CQtDeployer by default copy all qm files into qt translations folder.

EndrII added a commit that referenced this issue Feb 12, 2021
@EndrII EndrII closed this as completed in 3cb7ee8 Feb 12, 2021
qtDeployer automation moved this from To do to Done Feb 12, 2021
@EndrII EndrII linked a pull request Feb 12, 2021 that will close this issue
3 tasks
@EndrII EndrII pinned this issue Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Linux Linux version Windows Windows version
Projects
No open projects
qtDeployer
  
Done
Development

Successfully merging a pull request may close this issue.

1 participant