Translation files (.qm) has no effect

Discussion in 'Development General' started by WindBellKL, Jul 25, 2014.

  1. WindBellKL

    WindBellKL New Member

    Joined:
    Nov 23, 2012
    Messages:
    23
    Likes Received:
    1
    I am trying to update some translations in the .ts file. I have downloaded Qt Creator/Linguist and modified something in the .ts file.
    However, if I use the lupdate/lrelease to publish a .qm file and copy it to /trans folder to replace the older one, there will be no translation in PO at all; it just looks like this .qm does not exist. This issue occurs for any language tried.
    Could anyone help to solve this problem?
     
  2. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Have you added your language to languages.txt? (Follow the format)
     
  3. WindBellKL

    WindBellKL New Member

    Joined:
    Nov 23, 2012
    Messages:
    23
    Likes Received:
    1
    I replaced the existed translation_zh-cn.qm, which is in the language.txt.
     
  4. WindBellKL

    WindBellKL New Member

    Joined:
    Nov 23, 2012
    Messages:
    23
    Likes Received:
    1
    More informations: all .qm files of all languages, even without any modification to the .ts files, created in my computer makes the translation invalid and only English texts displayed. I am not sure what is going wrong here.
    The sizes of .qm are also much smaller:
    .qm files in PO 2.4.2:
    translation_de.qm 105KB
    translation_es.qm 97KB
    ....

    .qm files I created:
    translation_de.qm 38KB
    translation_es.qm 35KB
    ...