Description
From the version 1.2 of the freedesktop' desktop entry specification, a File naming section was added, to define a convention by using a reversed DNS form. This is also used by AppStream and implemented on some software. Until now I personally tested it only with AppImage, but still using it for my applications.
Unfortunately LXQtTranslateDesktop.cmake doesn't support this, but just gave for grant that the first part of the filename is the name of the translation to process.
Expected Behavior
The module should find a way to extract the correct part of the filename to build the final YAML filename to pass to LXQtTranslateDesktopYaml.pl
to be processed and so inserted in the resulting desktop file.
Current Behavior
Said above, it extract the first "token" of the name, e.g.:
lx-image.desktop
=> lx-image
Possible Solution
Possibly by just prepend the country code to .desktop.yaml
(appname_it.desktop.yaml
and tld.domain.appname_it.desktop.yaml
).
See here, though not much elegant changes.
Steps to Reproduce (for bugs)
# lx-image.desktop:
get_filename_component(_inFile ${_inFile} ABSOLUTE) # /path/to/lx-image.desktop.in
get_filename_component(_fileName ${_inFile} NAME_WE) # lx-image
get_filename_component(_fileExt ${_inFile} EXT) # .desktop after the next line
on line 74 the result is passed to the perl script with a ${_fileName}[_.]*${_fileExt}.yaml
,
e.g.: lx-image_it.desktop.yaml
The same process using org.mydomain.myappname.desktop.in
results in a org_it.mydomain.myappname.desktop.yaml
instead of org.mydomain.myappname_it.desktop.yaml
Context
See above.
System Information
Irrelevant.