desktoptojson and list properties / i18n of JSON files

Burkhard Lück lueck at hube-lueck.de
Thu Nov 20 18:57:17 GMT 2014


Am Mittwoch, 19. November 2014, 18:46:28 schrieben Sie:
> On Wednesday 19 November 2014 17:30:28 Burkhard Lück wrote:
> > Am Mittwoch, 19. November 2014, 01:28:51 schrieb Kevin Funk:
> > > 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.
> > 
> > But the kdevpatchreview.desktop is installed nevertheless and is
> > apparently
> > used to get the translations for Name + Comment/Description.
> > Having german translations for Name + Comment/Description only in
> > kdevpatchreview.json at build time, but removed after installation in the
> > installed kdevpatchreview.desktop file makes them untranslated for me.
> 
This was from kde4, kf5 apparently is different.

> And if the .desktop is not installed at all (we do this in other places, and
> would/should do it here too). Are translations then gone alltogether? One
> more reason to get i18n support for .json files.
> 
In kde4 the plugin is gone without a desktop file.

> > Looks to me like translations are not supported via json files.
> 
That is only true for kde4

> Please check the above. Anyhow, imo it should be our goal to get this
> supported. In the ideal scenario, a plugin would be just a .so installed
> into the right directory. No .desktop, no sycoca cache.
> 
> So again, what is necessary to get this done?
> 
See my other mail in this thread.

-- 
Burkhard Lück





More information about the kde-core-devel mailing list