Templates: consistent naming, fix translation catalog names & more
ClosedPublic

Authored by kossebau on Feb 26 2018, 6:12 AM.

Details

Summary
  • remove unneeded cmake includes
  • consistently use org.kde.plasma.* prefix for names
  • fix catalog names to match applet identifier
  • bump min cmake version to 3.0
  • remove duplicated X-KDE-PluginInfo-Name entries
  • remove no longer (Plasma >=5.8) needed i18nd in wallpaper code
  • prepare qml extension for ki18n usage

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.
kossebau created this revision.Feb 26 2018, 6:12 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 26 2018, 6:12 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
kossebau requested review of this revision.Feb 26 2018, 6:12 AM
apol added a subscriber: apol.Feb 26 2018, 11:35 AM
apol added inline comments.
templates/cpp-plasmoid/src/package/metadata.desktop
88

I'm not sure, if a 3rd party makes a plasmoid they would call it otherwise. Are we assuming these templates are only for KDE?

templates/qml-plasmoid-with-qml-extension/plugin/%{APPNAMELC}plugin.cpp
33

Isn't his a rather clunky dependency there? I like templates as easy and plain as possible...

kossebau added inline comments.Feb 26 2018, 12:09 PM
templates/cpp-plasmoid/src/package/metadata.desktop
88

Ideally the kapptemplate system would have support for an organization domain parameter which then could be used here (on my notes for some kapptemplatev2).

For now this brush-over is proposed with KDE community contributors in mind, to help them getting applets properly prepared e.g. with integration into KDE translations right from the begin.

Any 3rd-party which wants to keep their plasmoid 3rd-party would need to adapt the org namespace as desired, which I would expect them to do anyway if they are proud of their org.

templates/qml-plasmoid-with-qml-extension/plugin/%{APPNAMELC}plugin.cpp
33

Yes, not completly sure about this one.
But having seen people not getting translation setup correctly, it felt better to add the include and ki18n linking from the start, as removing those lines is easier then adding them correctly.
So I would make an exception here for ki18n. But maintainers call, just proposing.

mart accepted this revision.May 21 2018, 11:34 AM

good to go, modulo that possible little code comment more

templates/cpp-plasmoid/src/package/metadata.desktop
88

maybe add a # comment on top of that line staing this?

templates/qml-plasmoid-with-qml-extension/plugin/%{APPNAMELC}plugin.cpp
33

yeah, i agree that i18n is kinda "special" and can make sense to be kept

This revision is now accepted and ready to land.May 21 2018, 11:34 AM
Restricted Application edited subscribers, added: kde-frameworks-devel; removed: Frameworks. · View Herald TranscriptMay 21 2018, 11:34 AM
kossebau updated this revision to Diff 34574.May 21 2018, 12:03 PM

add comment about the need to adapt org.kde.plasma namespace

This revision was automatically updated to reflect the committed changes.