Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Many Conflicts after Merging TS Files

Many Conflicts after Merging TS Files

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 3 Posters 2.0k Views 3 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.
  • StefanoDS Offline
    StefanoDS Offline
    StefanoD
    wrote on last edited by StefanoD
    #1

    Hi everyone,

    we are using ts files for internationalization. We support 17 languages.
    It happens quite often, when we work on different branches, that we have conflicts in ts files when we merge different branches and it gets even more complicated, because we have to fix the merge conflicts for 17 ts files which is quite troublesome.

    So my question is, if there is a good solution to overcome this problem.
    How are you dealing with this problem?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean you are working on new feature in several different branches and do the translations in these branches before merging them back into master ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • StefanoDS Offline
        StefanoDS Offline
        StefanoD
        wrote on last edited by
        #3

        Yes, that's right, because a branch can live for several weeks.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Since you have so many languages, one nontechnical solution might be to follow a specific strategy when dealing with strings. Something like:

          • Have the developers work on translatable code without doing the translations at the same time
          • Merge branches as usual
          • Have a string freeze (meaning the code can still change but not the texts)
          • Do the translations in a branch while the works continue on the other
          • Merge branches as usual
          • Merge the translation branch

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          JKSHJ 1 Reply Last reply
          1
          • SGaistS SGaist

            Since you have so many languages, one nontechnical solution might be to follow a specific strategy when dealing with strings. Something like:

            • Have the developers work on translatable code without doing the translations at the same time
            • Merge branches as usual
            • Have a string freeze (meaning the code can still change but not the texts)
            • Do the translations in a branch while the works continue on the other
            • Merge branches as usual
            • Merge the translation branch
            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @SGaist said in Many Conflicts after Merging TS Files:

            • Have the developers work on translatable code without doing the translations at the same time
            • Merge branches as usual
            • Have a string freeze (meaning the code can still change but not the texts)
            • Do the translations in a branch while the works continue on the other
            • Merge branches as usual
            • Merge the translation branch

            This is exactly how the Qt Project manages translations :)

            The "string freeze" is the most important part: This makes sure that the text is not allowed to change after translations begin, so conflicts will not happen in the *.ts files.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • StefanoDS Offline
              StefanoDS Offline
              StefanoD
              wrote on last edited by
              #6

              Ok, thx for the advice, guys! :-)

              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