Bug 374825

Summary: Feature request: make plasmoids be shippable with translations
Product: [Plasma] plasmashell Reporter: Christian (Fuchs) <kde>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: bshah, kde, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christian (Fuchs) 2017-01-09 17:12:56 UTC
Currently there is no way (I can see) to ship translations along with plasmoids. 

This is a bit tricky, because all plasmoids installed via Get Hot New Stuff (or similar) are therefore not translated. 

Popular plasmoids avoid that by providing distribution packages, but this has various caveats, such as not being available for all distributions, maybe not being up to date plus of course the user still seeing the get new plasmoids possibility in the browser and using that. 

It would be nice if there was some standard directory / file name which plasmoids would check for translations, so you can deliver them along with your plasmoid.
Comment 1 David Edmundson 2017-07-11 12:19:58 UTC
Git commit 3a0f61b5591de86c57ce889bbd9564e80b139f7f by David Edmundson.
Committed on 11/07/2017 at 12:19.
Pushed by davidedmundson into branch 'master'.

Load translations from KPackage files if bundled

Test Plan:
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

Reviewers: #plasma, mart

Reviewed By: mart

Subscribers: plasma-devel, #frameworks

Tags: #plasma, #frameworks

Differential Revision: https://phabricator.kde.org/D5209

M  +6    -2    src/plasma/pluginloader.cpp

https://commits.kde.org/plasma-framework/3a0f61b5591de86c57ce889bbd9564e80b139f7f