Menu

#1104 Align does not properly handle segmented paragraphs

6.1
open
nobody
align (2)
4
2023-08-27
2022-07-22
No

As a sample, I tried to align a project containing OmegaT's Bundle.properties against Bundle_fr.properties

Let's consider the entry MW_REOPEN_QUESTION

MW_REOPEN_QUESTION=OmegaT needs to reload the project to take the modifications into account.\n\
Reload the project now?    

and

MW_REOPEN_QUESTION=OmegaT doit recharger le projet pour prendre les modifications en compte.\nSouhaitez-vous recharger le projet maintenant ?

In the file align.tmx file I see this:

    <tu>
      <tuv lang="en-US">
        <seg>In order for the changes to take effect OmegaT needs to close and then open the project. 
Reopen the project now?</seg>
      </tuv>
      <tuv lang="fr">
        <seg>Souhaitez-vous recharger le projet ?</seg>
      </tuv>
    </tu>

The source contains two phrases, but from the target, only the last phrase was kept.

I see two potential expected results.

Solution 1: align by paragraphs

    <tu>
      <tuv lang="en-US">
        <seg>In order for the changes to take effect OmegaT needs to close and then open the project. 
Reopen the project now?</seg>
      </tuv>
      <tuv lang="fr">
        <seg>Pour mettre en application vos modifications, vous devez fermer puis recharger le projet. Souhaitez-vous recharger le projet ?</seg>
      </tuv>
    </tu>

Solution 2: align by segments

     <tu>
      <tuv lang="en-US">
        <seg>In order for the changes to take effect OmegaT needs to close and then open the project.</seg>
      </tuv>
      <tuv lang="fr">
        <seg>Pour mettre en application vos modifications, vous devez fermer puis recharger le projet</seg>
      </tuv>
    </tu>
        <tu>
      <tuv lang="en-US">
        <seg>Reopen the project now?</seg>
      </tuv>
      <tuv lang="fr">
        <seg>Souhaitez-vous recharger le projet ?</seg>
      </tuv>
    </tu>

I let you decide which solution you prefer, whenever it should be an option, etc. But actual behavior is clearly not correct.

Discussion

  • Hiroshi Miura

    Hiroshi Miura - 2022-10-02
    • Group: 5.8 --> 6.1
     
  • Hiroshi Miura

    Hiroshi Miura - 2023-08-27
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,17 @@
     As a sample, I tried to align a project containing OmegaT&#39;s Bundle.properties against Bundle_fr.properties
    
     Let&#39;s consider the entry MW_REOPEN_QUESTION
    +~~~
    +MW_REOPEN_QUESTION=OmegaT needs to reload the project to take the modifications into account.\n\
    +Reload the project now?    
    +~~~
    +and
    +~~~
    +MW_REOPEN_QUESTION=OmegaT doit recharger le projet pour prendre les modifications en compte.\nSouhaitez-vous recharger le projet maintenant ?
    +~~~
    +
     In the file align.tmx file I see this:
    +~~~
         &lt;tu&gt;
           &lt;tuv lang=&#34;en-US&#34;&gt;
             &lt;seg&gt;In order for the changes to take effect OmegaT needs to close and then open the project. 
    @@ -11,11 +21,14 @@
             &lt;seg&gt;Souhaitez-vous recharger le projet ?&lt;/seg&gt;
           &lt;/tuv&gt;
         &lt;/tu&gt;
    
    -    The source contains two phrases, but from the target, only the last phrase was kept.
    +~~~
    +    
    +The source contains two phrases, but from the target, only the last phrase was kept.
    
      I see two potential expected results.
    
      Solution 1: align by paragraphs
    +~~~
         &lt;tu&gt;
           &lt;tuv lang=&#34;en-US&#34;&gt;
             &lt;seg&gt;In order for the changes to take effect OmegaT needs to close and then open the project. 
    @@ -25,8 +38,10 @@
             &lt;seg&gt;Pour mettre en application vos modifications, vous devez fermer puis recharger le projet. Souhaitez-vous recharger le projet ?&lt;/seg&gt;
           &lt;/tuv&gt;
         &lt;/tu&gt;
    +~~~
    
      Solution 2: align by segments
    +~~~
          &lt;tu&gt;
           &lt;tuv lang=&#34;en-US&#34;&gt;
             &lt;seg&gt;In order for the changes to take effect OmegaT needs to close and then open the project.&lt;/seg&gt;
    @@ -43,6 +58,7 @@
             &lt;seg&gt;Souhaitez-vous recharger le projet ?&lt;/seg&gt;
           &lt;/tuv&gt;
         &lt;/tu&gt;
    +~~~
    
    
    
    -    I let you decide which solution you prefer, whenever it should be an option, etc. But actual behavior is clearly not correct.
    +I let you decide which solution you prefer, whenever it should be an option, etc. But actual behavior is clearly not correct.
    
     

Log in to post a comment.

MongoDB Logo MongoDB