You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system: Windows, Mac OS, Linux qt-ts-tools version: 0.5.0 Problem's description:
Messages that are not within a context have issues where location are not sorted correctly.
Expected behavior / output:
Location should be sorted correctly: by filename first then by lines.
Sample problematic translation file
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPETS>
<TSversion="2.1"language="de">
<message>
<source>contextLessMessage</source>
<locationline="456"filename="ui_main.cpp" />
<locationline="312"filename="ai_main.cpp" />
<locationline="300"filename="ai_main.cpp" />
<locationline="10"filename="ui_potato_viewer.cpp" />
<comment>An example entry for contextLessMessage</comment>
<translationtype="unfinished"></translation>
</message>
<context>
<name>UiContext</name>
<message>
<source>Name</source>
<locationline="456"filename="ui_main.cpp" />
<locationline="10"filename="ui_potato_viewer.cpp" />
<locationline="321"filename="ui_main.cpp" />
<locationline="11"filename="ui_potato_viewer.cpp" />
<comment>An example entry for Name</comment>
<translationtype="unfinished"></translation>
</message>
<message>
<locationline="10"filename="ui_potato_viewer.cpp" />
<locationline="144"filename="ui_main.cpp" />
<source>This is just a Sample</source>
<translation>Dies ist nur ein Beispiel</translation>
</message>
<message>
<source>Practice more</source>
<translationtype="unfinished"></translation>
</message>
</context>
<context>
<name>CodeContext</name>
<message>
<source>I am a message in which was written in Code</source>
<translationtype="unfinished"></translation>
</message>
</context>
</TS>
Sample expected / correct output file
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPETS>
<TSversion="2.1"language="de">
<context>
<name>CodeContext</name>
<message>
<source>I am a message in which was written in Code</source>
<translationtype="unfinished"></translation>
</message>
</context>
<context>
<name>UiContext</name>
<message>
<source>This is just a Sample</source>
<translation>
Dies ist nur ein Beispiel
</translation>
<locationfilename="ui_main.cpp"line="144"></location>
<locationfilename="ui_potato_viewer.cpp"line="10"></location>
</message>
<message>
<source>Name</source>
<translationtype="unfinished"></translation>
<locationfilename="ui_main.cpp"line="321"></location>
<locationfilename="ui_main.cpp"line="456"></location>
<locationfilename="ui_potato_viewer.cpp"line="10"></location>
<locationfilename="ui_potato_viewer.cpp"line="11"></location>
<comment>An example entry for Name</comment>
</message>
<message>
<source>Practice more</source>
<translationtype="unfinished"></translation>
</message>
</context>
<message>
<source>contextLessMessage</source>
<translationtype="unfinished"></translation>
<locationfilename="ai_main.cpp"line="300"></location>
<locationfilename="ai_main.cpp"line="312"></location>
<locationfilename="ui_main.cpp"line="456"></location>
<locationfilename="ui_potato_viewer.cpp"line="10"></location>
<comment>An example entry for contextLessMessage</comment>
</message>
</TS>
The text was updated successfully, but these errors were encountered:
Operating system: Windows, Mac OS, Linux
qt-ts-tools version: 0.5.0
Problem's description:
Messages that are not within a context have issues where location are not sorted correctly.
Expected behavior / output:
Location should be sorted correctly: by filename first then by lines.
Sample problematic translation file
Sample expected / correct output file
The text was updated successfully, but these errors were encountered: