Installed battery monitor locally with kpackagetool5 -i
moved x-test .po file from being installed systemwide to only being inside the bundle
still get xx everywhere
Details
Details
- Reviewers
mart - Group Reviewers
Plasma - Commits
- R242:3a0f61b5591d: Load translations from KPackage files if bundled
Diff Detail
Diff Detail
- Repository
- R242 Plasma Framework (Library)
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Oh awesome. Just found out about this. So this would be added in Frameworks 5.37 then?
Does this mean:
- digitalclock.plasmoid/translations/plasma_applet_org.kde.plasma.digitalclock.po
- digitalclock.plasmoid/contents/translations/plasma_applet_org.kde.plasma.digitalclock.po
- digitalclock.plasmoid/translations/fr/LC_MESSAGES/plasma_applet_org.kde.plasma.digitalclock.po
- digitalclock.plasmoid/contents/translations/fr/LC_MESSAGES/plasma_applet_org.kde.plasma.digitalclock.po
So adding the domain will load .po files too? Or do they need to be .mo files?
Comment Actions
This worked
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
These didn't work
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/LC_MESSAGES/org.kde.plasma.eventcalendar.mo
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/LC_MESSAGES/org.kde.plasma.eventcalendar.po
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.po
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/org.kde.plasma.eventcalendar.mo
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/org.kde.plasma.eventcalendar.po
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/plasma_applet_org.kde.plasma.eventcalendar.po
- ~/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/locale/fr_CA/plasma_applet_org.kde.plasma.eventcalendar.mo
More importantly, contents/locale/fr/* didn't work, which means I need to either copy or symlink to fr_BE, fr_CA, fr_CH, fr_FR, and fr_LU.
Not sure why contents/locale/fr/* didn't work yesterday, but it works today.
Comment Actions
Another note: plasmoidviewer is unaffected by this patch. Meaning
- devpath/contents/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
will not show translations in plasmoidviewer, but if you install to
- ~/.local/share/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
- ~/.local/share/locale/fr/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
- /usr/share/locale/fr_CA/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
- /usr/share/locale/fr/LC_MESSAGES/plasma_applet_org.kde.plasma.eventcalendar.mo
it will work in plasmoidviewer.