Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt5 .ts files and Transifex (Continuous Translation localization)
Forum Updated to NodeBB v4.3 + New Features

Qt5 .ts files and Transifex (Continuous Translation localization)

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _Kunda_
    wrote on last edited by
    #1

    Has anyone made a proper tutorial or guide on how to set up a Transifex qith Qt5 and .ts files?
    I read somewhere else on the forums that:

    bq. when generating your .ts files make sure there is one without any language codes on it (the one that will be loaded if you don’t have any translations for the user’s language). This would be named appname.ts.

    How does one generate a .ts file without any language codes in it? What does that mean ?

    1 Reply Last reply
    0
    • _ Offline
      _ Offline
      _Kunda_
      wrote on last edited by
      #2

      Not absolutely sure but this is what so far is working:

      What needs to happen is that the projectname.pro file needs to be edited in order to add a projectname.ts without the localization id string. (See first line in the code snippet below).

      @
      TRANSLATIONS += share/translations/projectname.ts
      share/translations/projectname_ru.ts
      share/translations/projectname_uk.ts
      share/translations/projectname_de.ts
      @
      Then run lupdate projectname.pro in directory share/translations (or whatever your path is).

      This will generate all the .ts files including the new projectname.ts file. This file contains both source and translation strings in the original language, i.e.
      <source></source> and <translation></translation> tags will contain the same string in the same language.

      Then you can point Transifex to a static URL of this projectname.ts on your repository which will autoupdate it on Transifex and regenerate any other translation you have set up for the project.

      Solution attributed to this "thread":https://bitbucket.org/dismine/valentina/issue/55/translations-uploaded-to-transifex#comment-7800950

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved