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

Qt applications cannot find qt translations #86054

Closed
sikmir opened this issue Apr 26, 2020 · 10 comments · Fixed by #246022
Closed

Qt applications cannot find qt translations #86054

sikmir opened this issue Apr 26, 2020 · 10 comments · Fixed by #246022
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: qt/kde

Comments

@sikmir
Copy link
Member

sikmir commented Apr 26, 2020

Describe the bug
If qt application uses QLibraryInfo::location(QLibraryInfo::TranslationsPath) (see docs) to get location of qt translations, it will get /nix/store/n2zczzqp7dwc2kmf3s82wymw08asdhi6-qtbase-5.12.7/translations, while qt translations actually live in separate derivation /nix/store/725gncv0pvf9izasn55w5mcv8f6bcx3n-qttranslations-5.12.7/translations.

Notify maintainers

@ttuegel

@sikmir sikmir added the 0.kind: bug Something is broken label Apr 26, 2020
@worldofpeace
Copy link
Contributor

This might be an issue triggered by wrapping.

@ttuegel
Copy link
Member

ttuegel commented May 11, 2020

This is caused by our multi-derivation Qt build, that is by building each module as a separate package. However, I suspect it's even worse: that applications may not find their own translations, which won't be at the (read-only) QLibraryInfo::TranslationPath.

@sikmir
Copy link
Member Author

sikmir commented May 11, 2020

However, I suspect it's even worse: that applications may not find their own translations, which won't be at the (read-only) QLibraryInfo::TranslationPath.

Applications find their own translations by:

QStandardPaths::locate(QStandardPaths::AppDataLocation, "translations", QStandardPaths::LocateDirectory)

And that's OK.

@stale
Copy link

stale bot commented Nov 7, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 7, 2020
@sikmir
Copy link
Member Author

sikmir commented Nov 7, 2020

Problem still exists.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 7, 2020
@sikmir sikmir mentioned this issue May 22, 2021
9 tasks
@stale
Copy link

stale bot commented Jun 4, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2021
@sikmir
Copy link
Member Author

sikmir commented Jun 30, 2021

Up

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 30, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 9, 2022
@sikmir
Copy link
Member Author

sikmir commented Jan 9, 2022

Up.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 9, 2022
@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 10, 2022
@K900
Copy link
Contributor

K900 commented Aug 28, 2023

Fixed.

@K900 K900 closed this as completed Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: qt/kde
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants