translation of the GUI stuck for Arch workbench

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
david69
Veteran
Posts: 1773
Joined: Wed Jan 01, 2014 7:48 pm

Re: translation of the GUI stuck for Arch workbench

Post by david69 »

observed today and fixed. Thank you Roy.
david69
Veteran
Posts: 1773
Joined: Wed Jan 01, 2014 7:48 pm

Re: translation of the GUI stuck for Arch workbench

Post by david69 »

I double-checked today and there are still few stuck. I was a bit too fast in my previous post. I have also verified in Crowdin we well have the translation.

&Arch/Cut with a line

&Draft/Creation/Bézier tools
&Draft/Creation/Bézier tools/Cubic Bézier curve
&Draft/Creation/Bézier tools/Bézier curve

&Draft/Modification/Array

&Draft/Utilities/Move to group
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: translation of the GUI stuck for Arch workbench

Post by Roy_043 »

#5444 is still open.
#5445 was merged 3 days ago.

So it will still take some time before the results of the PRs are visible on Crowdin.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: translation of the GUI stuck for Arch workbench

Post by Roy_043 »

Roy_043 wrote: Mon Jan 31, 2022 9:08 pm #5444 is still open.
Merged today.
david69
Veteran
Posts: 1773
Joined: Wed Jan 01, 2014 7:48 pm

Re: translation of the GUI stuck for Arch workbench

Post by david69 »

FYI, the last translations are still stuck on:

OS: Ubuntu 18.04.6 LTS (LXDE/Lubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 9b7572e9a9dd4b30b506bf3b38f27f536ed47ee2
Python 3.6.9, Qt 5.9.5, Coin 4.0.0a, OCC 7.5.2
Locale: French/France (fr_FR)
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: translation of the GUI stuck for Arch workbench

Post by Roy_043 »

Something is wrong with the Bézier texts. Some UTF8 encoding issue. I do not know if this is caused by the source files, or by how they are processed. Bézier becomes Bézier in the .ts files.
yorik wrote: pinged by pinger macro
Do you know why this happens?

For the rest:
Array is already available in the German translation of FreeCAD. The other translations may yet have to be merged?
david69
Veteran
Posts: 1773
Joined: Wed Jan 01, 2014 7:48 pm

Re: translation of the GUI stuck for Arch workbench

Post by david69 »

to precise, under Arch:
Arch/Cut with line
Draft/Utilities/Move to group...
Draft/Béziers tools/Cubic Bézier curve
Draft/Béziers tools/Bézier curve

Note that the sub-menu "Béziers tools" is well translate.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: translation of the GUI stuck for Arch workbench

Post by Roy_043 »

Cut with line
This available in the .ts file.
Cut with a line (the old text) is also still available. I do not know why that was not cleaned up.

Move to group
This available in the .ts file.

Béziers tools
It may have been translated, but the original text does not appear in the .ts file. Instead I find Bézier tools. Again the obsolete text, Bezier tools, is still available. See below.

Code: Select all

<context>
    <name>Draft_BezierTools</name>
    <message>
        <location filename="gui_beziers.py" line="475"/>
        <source>Bézier tools</source>
        <translation type="unfinished"></translation>
    </message>
    <message>
        <location filename="gui_beziers.py" line="475"/>
        <source>Bezier tools</source>
        <translation type="unfinished"></translation>
    </message>
    <message>
        <location filename="gui_beziers.py" line="478"/>
        <source>Create various types of Bézier curves.</source>
        <translation type="unfinished"></translation>
    </message>
    <message>
        <location filename="gui_beziers.py" line="478"/>
        <source>Create various types of Bezier curves.</source>
        <translation type="unfinished"></translation>
    </message>
</context>
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: translation of the GUI stuck for Arch workbench

Post by yorik »

Hmm there is an encoding problem there indeed... Strange! Never seen that before. gui_beziers.py is indeed encoded in UTF-8, but somehow the lupdate script seems to have misunderstood. Maybe because encoding is not explicitly set at the beginning of the py file? I'll have a try...
Post Reply