desktoptojson and list properties / i18n of JSON files

Kevin Funk kfunk at kde.org
Wed Nov 19 00:28:51 GMT 2014


On Wednesday 19 November 2014 00:09:25 Albert Astals Cid wrote:
> El Dimarts, 18 de novembre de 2014, a les 23:01:14, Alex Merry va escriure:
> > On Tuesday 18 November 2014 23:45:56 Albert Astals Cid wrote:
> > > I didn't even know we were using json now. Why did we change from
> > > .desktop
> > > file to .json ones? What's the benefit? Seems like .desktop files did
> > > their
> > > job good enough and we have all the tooling available already.
> > 
> > Because that's what Qt uses - Qt5 plugins have JSON metadata as standard,
> > meaning it's all in one file (the JSON is embedded in the plugin, although
> > it can be read without loading the plugin).
> 
> And Qt introduced a technology without making it translatable? What fields
> do we need to make translatable? Can somebody point me to such a .json file
> we'd like to translate?

Here's one: http://pastebin.kde.org/p4p38fqr1

That's kdevpatchreview.json, generated from kdevpatchreview.desktop via  
kcoreaddons_desktop_to_json(...) during the CMake run.

Cheers

-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org




More information about the kde-core-devel mailing list