Menu

#209 Language files default repertory of chessx-1.2.0

1.2.0
closed
nobody
None
5
2015-03-30
2014-08-05
No

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

Discussion

  • Jens Nissen

    Jens Nissen - 2014-08-06

    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.

     
  • Geiger David

    Geiger David - 2014-08-10

    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 ?

     
  • Jens Nissen

    Jens Nissen - 2014-08-11

    Under Preferences, select one of the available languages. All available languages are compiled in.

     

    Last edit: Jens Nissen 2015-03-30
    • Geiger David

      Geiger David - 2014-08-11

      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.

       
  • Niklas Fiekas

    Niklas Fiekas - 2014-09-26

    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.

    -rw-r--r-- 1 niklas niklas      0 Jul 20 18:39 chessx_da.qm
    -rw-r--r-- 1 niklas niklas 149152 Jul  6 14:27 chessx_da.ts
    -rw-r--r-- 1 niklas niklas      0 Jul 20 18:39 chessx_de.qm
    -rw-r--r-- 1 niklas niklas 150273 Jul  6 14:27 chessx_de.ts
    -rw-r--r-- 1 niklas niklas      0 Jul 20 18:39 chessx_fr.qm
    -rw-r--r-- 1 niklas niklas 151968 Jul  6 14:27 chessx_fr.ts
    -rw-r--r-- 1 niklas niklas      0 Jul 20 18:39 chessx_it.qm
    -rw-r--r-- 1 niklas niklas 154003 Jul 20 22:28 chessx_it.ts
    -rw-r--r-- 1 niklas niklas  83958 Dez  8  2010 chessx_nl.ts
    -rw-r--r-- 1 niklas niklas  72933 Dez  5  2010 chessx_pl.ts
    -rw-r--r-- 1 niklas niklas  60041 Dez  8  2010 chessx_pt_BR.ts
    -rw-r--r-- 1 niklas niklas  66674 Dez  5  2010 chessx_zh.ts
    

    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).

    rm i18n/*.qm
    

    Best regards
    Niklas

     
  • Jens Nissen

    Jens Nissen - 2015-03-30
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB