Hi Ahsan,

you could see by example Japan translation GIT log:
https://git.tuxfamily.org/qet/qet.git/l … mp;q=japan


Regards,
Laurent

Strange, I think you use a very old QET version?

https://github.com/qelectrotech/qelectr … /qet_zh.ts

simplified Chinese code is zh-cn

Mandarin (Simplified Chinese) isn't the same than zh-cn?
I say this because a translation work was already in progress...

Dear Stephan,

yes it's a big job that will take you a lot of time, you can get help.
Do not hesitate to send your progress on the translation, even if it is not
finished, I could add the necessary code in the program so that you can see
what it looks like in real life.

Have a nice day and best regards too,
Laurent



https://download.qelectrotech.org/qet/forum_img_2/qet_zh-cn2.png

scorpio810 wrote:
ahsn.uet09 wrote:

I have already installed Qt 5.15.2, and I can build QET from the source code.

I have another query, whenever I build QET using Qt then it always launches in French.
However, I can launch the (pre-compiled) installed version in desired display language using  "Lancer QET.bat"

set LANG=en_US

Oh you compile QET on Windows, you use mingw or vscode?

It's normal, Chinese switch not yet added in QET source code, you need to set LANG on .bat.

ahsn.uet09 wrote:

I have already installed Qt 5.15.2, and I can build QET from the source code.

I have another query, whenever I build QET using Qt then it always launches in French.
However, I can launch the (pre-compiled) installed version in desired display language using  "Lancer QET.bat"

set LANG=en_US

Oh you compile QET on Windows, you use mingw or vscode?

I openned qet_zh-cn.ts and after open qet_en.ts to see English translation, that can help you if you don't know French language.
https://download.qelectrotech.org/qet/forum_img_2/qet_zh-cn.png

You need to get qtcreator program here:
https://www.qt.io/offline-installers

Qt Creator
Qt Creator 10.0.2 is released and it is available via Qt online installer. If you need a standalone installer, please select the file according to your operating system from the list below to get the latest Qt Creator for your computer.

Qt Creator 10.0.2 for Windows 64-bit (273 MB)    (info)
Qt Creator 10.0.2 for Linux 64-bit (192 MB)    (info)
Qt Creator 10.0.2 for macOS (250 MB)    (info)


After just click on qet_zh.ts to open qtlinguist program for translation.
https://doc.qt.io/qt-5/linguist-translators.html

Date :    12/01/2022 13:18


> > Good morning Stephan,
> >
> > you are welcome.
> >
> > get
> > https://github.com/qelectrotech/qelectr … rce-mirror
> > or
> > git clone https://github.com/qelectrotech/qelectr … mirror.git
> >
> > Chinese country iso is CN or CHN?
> > Then I could create the qet_ts_cnh translation skeleton in the sources.
> >
> > On lang folder open qet_tr.ts with qtcreator on Windows/Linux/macOS,
> > translate, save and publish to upgrade qet_CHN.qm binary files. Send
> > me these 2 file or make a PR on Github.
> >
> > As the strings to translate are in French in the code, you can use the
> > English translation in the same windows to translate into Chinese.
> >
> > https://qelectrotech.org/wiki_new/doc/t … raductions
> >
> > https://download.qt.io/official_release … 14/4.14.1/
> > https://doc.qt.io/qt-5/linguist-translators.html
> > https://doc.qt.io/archives/qt-4.8/lingu … ators.html
> >
> > Some informations here for sync your Github mirror
> > https://qelectrotech.org/forum/viewtopi … 739#p13739
> >
> > If you have any questions do not hesitate to ask us.
> >
> >
> > Best regards,
> > Laurent
>
> Dear Stephan,
>
> I add new cn ts file to master git
> https://git.tuxfamily.org/qet/qet.git/c … dd472e3a7d
>
> Wait one clock to have this update on Github mirror.
>
> Greetings,
> Laurent

is zh-cn iso code, if yes I added file qet_zh-cn.ts in sources file, ready to translate it?

https://qelectrotech.org/forum/viewtopi … 701#p15701

regards,
Laurent

Get GIT sources

git clone git://git.tuxfamily.org/gitroot/qet/qet.git qet_git

https://qelectrotech.org/wiki_new/doc/t … urce_files

How to update .ts files from source files?
Note: *.ts are generally updated by the developer when he considers that the character strings to be translated are viable or by translators.

Édit qelectrotech.pro file: Comment out the lines starting with TRANSLATIONS += :

sed -i 's/^TRANSLATIONS/#TRANSLATIONS/g' qelectrotech.pro

Run the following command:

lupdate -noobsolete qelectrotech.pro -ts lang/qet_{en,es,ru,pt,cs,pl,ca,de,ro,it,ar,sl,hr,el,nl,be,sl,zh,hu,pt_br,da,sr,fr,tr,sk,nb,mn,ja,cn,uk,zh-cn}.ts

Restore file qelectrotech.pro:

sed -i 's/^#TRANSLATIONS/TRANSLATIONS/g' qelectrotech.pro

http://doc.qt.io/qt-5/linguist-translators.html

Hello Ahsan,

you are welcome, what country you want to add?

Best regards,
Laurent

https://qelectrotech.org/forum/viewtopi … 126#p16126
https://qelectrotech.org/wiki_new/doc/translation


Code change after new country added and translation started or finished (see *.ts and *.qm file)
https://git.tuxfamily.org/qet/qet.git/c … 9806e62ba8
https://git.tuxfamily.org/qet/qet.git/c … 7097598363

https://qelectrotech.org/forum/viewtopi … 294#p18294

https://qelectrotech.org/forum/viewtopi … 338#p18338

BTW, sometimes element is so complex for drawning, you could use DXF to elmt converter:

Hello Hamish,

https://qelectrotech.org/wiki_new/roadmap
But Joshua work when he have free time on new terminal block generator:
https://qelectrotech.org/forum/viewtopic.php?id=1486
instead off qet_tb_terminal python plugin:
https://qelectrotech.org/forum/viewtopi … 070#p17070

https://git.tuxfamily.org/qet/qet.git/l … 1_en_60617
Le dossier EN 60617 contient 912 éléments, réparties dans 129 dossiers.

Chemin de la collection :  common://10_electric/91_en_60617

For mirrored or resize elements see this topic:
https://qelectrotech.org/forum/viewtopic.php?id=1946

https://qelectrotech.org/forum/viewtopi … 925#p12925
https://qelectrotech.org/forum/viewtopi … 817#p14817

Hi Hamish,
thanks and welcome.

For the moment the name of terminal added in an element with the element editor is not yet linked to the QET engine, but we can find the uuid and the name of the terminal in the XML of the project by opening your project .qet, it must be possible with a Python script to create a table that lists the wires and the elements connected to this wire as well as the name of the terminal by uuid.

Best,
Laurent

Regarde sur cet exemple:
https://download.qelectrotech.org/qet/s … pdf#page=3
https://download.qelectrotech.org/qet/s … df#page=21

Update Qt to 5.15.10 and kf5 to 106.0:

23:01:04.374 Info: Elements collection finished to be loaded 
23:03:59.072 Info: Start-up 
23:03:59.081 Info: debugging enabled: false 
23:03:59.081 Info: Qt library version: 5.15.10 
23:03:59.082 Info: Qt library location default prefix: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location documentation: "/Applications/qelectrotech.app/Contents/doc" 
23:03:59.082 Info: Qt library location headers: "/Applications/qelectrotech.app/Contents/include" 
23:03:59.082 Info: Qt library location libraries: "/Applications/qelectrotech.app/Contents/lib" 
23:03:59.082 Info: Qt library location executables: "/Applications/qelectrotech.app/Contents/libexec" 
23:03:59.082 Info: Qt library location Qt binaries: "/Applications/qelectrotech.app/Contents/bin" 
23:03:59.082 Info: Qt library location Qt plugins: "/Applications/qelectrotech.app/Contents/PlugIns" 
23:03:59.082 Info: Qt library location installed QML extensions: "/Applications/qelectrotech.app/Contents/Resources/qml" 
23:03:59.082 Info: Qt library location installed QML extensions: "/Applications/qelectrotech.app/Contents/Resources/qml" 
23:03:59.082 Info: Qt library location dependent Qt data: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location independent Qt data: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: Qt library location translation: "/Applications/qelectrotech.app/Contents/translations" 
23:03:59.082 Info: Qt library location examples: "/Applications/qelectrotech.app/Contents/examples" 
23:03:59.082 Info: Qt library location Qt testcases: "/Applications/qelectrotech.app/Contents/tests" 
23:03:59.082 Info: Qt library location Qt settings: "/Applications/qelectrotech.app/Contents" 
23:03:59.082 Info: "GitRevision 08e8409ce061684030657518c2d723f3e02d80c6" 
23:03:59.082 Info: "QElectroTech V 0.100.0-dev" 
23:03:59.082 Info: "Compilation : CLANG 14.0.3 (clang-1403.0.22.14.1)" 
23:03:59.082 Info: "Built with Qt 5.15.10 - arm64 - Date : Jun 12 2023 : 19:59:57" 
23:03:59.082 Info: "Run with Qt 5.15.10 using 8 thread(s)" 
23:03:59.082 Info: "CPU : Apple M2\n" 
23:03:59.082 Info: "RAM Total : 8 GB" 
23:03:59.082 Info: "" 
23:03:59.083 Info: "GPU : " 
23:03:59.083 Info: "GPU RAM : " 
23:03:59.083 Info: "OS : darwin  - arm64 - Version : macOS 13.4 - Kernel : 22.5.0" 
23:03:59.083 Info: *** Qt screens *** 
23:03:59.083 Info: "( 1 : 3840 x 2160 )" 
23:03:59.083 Debug: isReadOnly: true (sources/machine_info.cpp:161, void MachineInfo::send_info_to_debug())
23:03:59.083 Info: DISK : /   
23:03:59.083 Info: FileSystemType: "apfs" 
23:03:59.083 Info: SizeTotal: 245 GB 
23:03:59.083 Info: AvailableSize: 90 GB 
23:03:59.083 Debug: isReadOnly: true (sources/machine_info.cpp:172, void MachineInfo::send_info_to_debug())
23:03:59.083 Info: DISK USED: /   
23:03:59.083 Info: FileSystemType: "apfs" 
23:03:59.083 Info: SizeTotal: 245 GB 
23:03:59.083 Info: AvailableSize: 90 GB 
23:03:59.286 Info: Elements collection reload 
23:04:00.035 Info: Elements collection finished to be loaded in 0.748 seconds 
 bash ./count_elements.sh 
8288 elements dans     1092 categories (soit 9380 fichiers)

Elements collection finished to be loaded in 0.748 seconds (8288 elements dans 1092 categories (soit 9380 fichiers))


laurent@mini-de-laurent ~ % otool -L /Applications/qelectrotech.app/Contents/MacOS/qelectrotech    
/Applications/qelectrotech.app/Contents/MacOS/qelectrotech:
    @executable_path/../Frameworks/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0)
    @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/libKF5WidgetsAddons.5.dylib (compatibility version 5.0.0, current version 5.106.0)
    @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.15.0, current version 5.15.10)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 2299.50.120)
    /System/Library/Frameworks/Metal.framework/Versions/A/Metal (compatibility version 1.0.0, current version 306.5.16)
    @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtXml.framework/Versions/5/QtXml (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtSql.framework/Versions/5/QtSql (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/QtConcurrent.framework/Versions/5/QtConcurrent (compatibility version 5.15.0, current version 5.15.10)
    @executable_path/../Frameworks/libKF5CoreAddons.5.dylib (compatibility version 5.0.0, current version 5.106.0)
    @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.15.0, current version 5.15.10)
    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1500.65.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)

Hi Fabian,

without your project I don't know, maybe increase tittleblock?

Ahh, ok I see, thanks for your feedback.

Hallo Fabian,


yes!

Beste Grüße
Laurent