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

BUG: Linux: Get correct path to translation files #718

Closed
Letterus opened this issue Nov 7, 2022 · 1 comment · Fixed by #742
Closed

BUG: Linux: Get correct path to translation files #718

Letterus opened this issue Nov 7, 2022 · 1 comment · Fixed by #742
Labels

Comments

@Letterus
Copy link
Collaborator

Letterus commented Nov 7, 2022

This line is not correct probably, f.e. within an AppImage:

return QCoreApplication::applicationDirPath() + QStringLiteral("/../share") + trPath;

Thus the AppImage fails to find the translation files. This was worked around by copying the files a second time at a different location, but the root of the problem lies in the line above.

Thanks to @csett86 for the hint.

@Letterus Letterus added the bug label Nov 7, 2022
@slspencer
Copy link
Collaborator

The /src and /share directories are at the same level.
applicationDirPath() should be src, but maybe it isn't.
trPath should be /translations, but maybe it isn't.
I'll find out exactly these variables contain in vabstractapplication.cpp and make the corrections.

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

Successfully merging a pull request may close this issue.

2 participants