Language files default repertory of chessx-1.2.0
Chess Database and PGN viewer
Brought to you by:
hognose
I'm Geiger David and I'm part of the Mageia packager Team. I'm also the maintener of chessx package.
I have a problem with the default repertory of language files because this one is into /home/user/.local/share/data/chessx/chessx/data/lang/chessx_.qm
On building a package we can't use a simple-user repertory but only root-user. So we use, for example, /usr/share/games/chessx/lang/chessx_.qm for all languages. But for now with this repertory I can't change the language.
How can we fix this issue?
Is it possible and easy to create a patch to use an other default repertory?
Thanks in advance :) David
Existing language files are not distributed, they are compiled into the resources of chessx. The existing cheesx sources expects them to be compiled in. There is a concept to load new translations from our homepage at runtime, but I don't expect new translations in the near future.
I'm sorry but I do not understand your answer. It does not answer my request.
I would like to know how I can change the '/home/user/.local/share/data/chessx/chessx/data/lang/ ' default repertory by '/usr/share/chessx/lang/ ' for the language files ?
Otherwise how that potential users of ChessX software can change the language by that of their choice ?
Under Preferences, select one of the available languages. All available languages are compiled in.
Last edit: Jens Nissen 2015-03-30
By default, during the build of the rpm package, that does not work. I can not change language (only the Italian language works ??? and is compiled by default).
So after some research I found that this is not going :
I have to force the generation of the 'chessx _ . qm' files with the following command : %{qt4bin}/lrelease i18n/.ts and before the 'make', so they are all compiled .
(spec file for rpm package)
%build
%qmake_qt4 %{name}.pro
%{qt4bin}/lrelease i18n/*.ts
%make
Now I can change the language under Preferences for French, German, Italian and Danish.
Hi,
only Italian working is a bit wierd, so that was something worth investigating.
There actually is a target defined in the chessx.pro file that should aready call lrelease on the translation files. However the latest release tarball (1.2.0) contains a few stale/empty qm-files with newer timestamps than their corresponding ts-files.
Only chessx_it.ts is newer than chessx_it.qm, which explains why the Italian translation was built by default.
Probably all the qm-files should be removed from SVN (and future source tarballs).
Best regards
Niklas