How to translate QElectroTech to another language?

What must be translated?

Here is the (supposed to be exhaustive) list of components to translate in a given language for QElectroTech:

  • the strings in the program itself: .ts and .qm files in the lang/ directory;
  • in qetproject.cpp, function QETProject::namesListForIntegrationCategory() : hardcoded translation of “Imported elements” to provide to the developer;
  • the strings from the Qt toolkit: generally: .ts and .qm files already translated to look for in the last version of Qt's official .tar.gz;
  • the names in the elements collection : .elmt and qet_directory files in the elements/ directory;
  • the shortcut towards QElectroTech in the menus: qelectrotech.desktop file in misc/;
  • the files associations: x-qet-* files in misc/;
  • the Unix manual in man/;
  • the CREDIT, README, ELEMENTS.LICENSE and INSTALL files ;
  • The packaging/linux/fedora/README.elements file.

Now what?

  • Maintenance of translations by regularly following the modifications in the Subversion repository;
  • translation of the documentation on the Wiki.

How to test a translation

Windows

The easiest way is to change the system language.

Alternatively, the launcher Lancer Qet.bat is added to the (set command=) an set LANG=en_US by example

Which gives:

...........
set LANG=en_US
rem lance QElectroTech
set command=bin\qelectrotech.exe --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ -style plastique %*
................

linux

On linux platform Qet by default detect locale system, but you can run Qet in other language by : just run in a terminal

for example :

german

LANG=de_DE qelectrotech

italian

LANG=it_IT qelectrotech

english

 LANG=en_EN qelectrotech

It run Qet in the language that you want

laurent@debian:~$ export LANG="en_US";    qelectrotech

Or

laurent@debian:~$ LANG="en_US" qelectrotech

What tools?

  • To contribute to the project: some usage notions of Subversion;
  • To test the application being developed and the recent translations: a compiled version of QET;
  • For the .ts / .qm: Qt Linguist (with the tools lupdate et lrelease);
  • For the other files: any text editor worthy of this name

It is of course possible to learn how to use these tools on the fly by coming on our IRC channel. If you wish to translate QElectroTech, contact the development team by email or join our IRC channel. The accepted languages to communicate with the development team are the French, the English and the Spanish.

How to update the .ts files from the sources files?

Note: the .ts files are generally updated by the developer when he considers the new strings perennial.

  • Edit qelectrotech.pro: comment the lines beginning by TRANSLATIONS += :
    sed -i 's/^TRANSLATIONS/#TRANSLATIONS/g' qelectrotech.pro
  • Execute the following command:
    lupdate-qt4 -noobsolete qelectrotech.pro -ts lang/qet_en.ts lang/qet_es.ts lang/qet_ru.ts lang/qet_pt.ts lang/qet_cs.ts
  • Optional : update the translation file for french plurals:
    lupdate-qt4 -noobsolete -pluralonly qelectrotech.pro -ts lang/qet_fr.ts
  • Restore the qelectrotech.pro file:
    sed -i 's/^#TRANSLATIONS/TRANSLATIONS/g' qelectrotech.pro

Translations status

:!: Translators: since 07/05/2012, the work is back to the trunk, forget the 0.3 branch.

Statistics for 0.3 branch

Langue Traducteur Qt Application Collection Fichiers misc/*.desktop Fichiers misc/*.xml Manuel Unix CREDIT README INSTALL ELEMENTS.LICENSE build-aux/linux/fedora/README.elements
[fr] Français (Français) Laurent Trinques [ok] 2215/2495 (88.8%) 8124/9461 (85.9%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[en] English (Anglais) Laurent Trinques [ok] 2216/2495 (88.8%) 7607/9461 (80.4%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[es] Español (Espagnol) Alfredo Carreto [ok] 1645/2495 (65.9%) 3435/9461 (36.3%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[pt] Português (Portugais) Jose Carlos Martins [ok] 579/2495 (23.2%) 1167/9461 (12.3%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[cs] český (Tchèque) Pavel Fric [ok] 2448/2495 (98.1%) 7919/9461 (83.7%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[pl] Polski (Polonais) Pawel Smiech [ok] 2443/2495 (97.9%) 3415/9461 (36.1%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[ca] Català (Catalan) Youssef Ouamalkran & Eduard Amoros [ok] 1143/2495 (45.8%) 1228/9461 (13.0%) [ok] [ok] TODO TODO TODO [ok] [ok] TODO
[de] Deutsch (Allemand) Markus Budde & Jonas Stein & Noah Braden & Nuri [ok] 2453/2495 (98.3%) 5519/9461 (58.3%) [ok] [ok] TODO TODO [ok] [ok] [ok] [ok]
[it] Italiano (Italien) Alessandro Conti & Silvio Brera [ok] 1582/2495 (63.4%) 3452/9461 (36.5%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[ar] العربية (Arabe) Mohamed Souabni [ok] 1351/2495 (54.1%) 2419/9461 (25.6%) [ok] [ok] TODO TODO TODO TODO TODO TODO
[sl] Slovenski (Slovene) Uroš Platiše [ok] 0/2495 (0.0%) 473/9461 (5.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[hr] Hrvatski (Croate) Antun Marakovic [ok] 570/2495 (22.8%) 475/9461 (5.0%) [ok] 0/1 TODO TODO TODO TODO TODO TODO
[el] ελληνικά (Grec) Nikos Papadopoylos & Yannis Gyftomitros [ok] 2121/2495 (85.0%) 2272/9461 (24.0%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[nl] Nederlands (‎Néerlandais) Paul Van Deelen & Elbert [ok] 2491/2495 (99.8%) 3175/9461 (33.6%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[be] Belgium-Flemish (Belge-flamand) Ronny Desmedt [ok] 2201/2495 (88.2%) 388/9461 (4.1%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[ru] Русский (Russe) Yuriy Litkevich & Evgeny Kozlov [ok] 2418/2495 (96.9%) 1091/9461 (11.5%) [ok] [ok] [ok] [ok] [ok] [ok] [ok] [ok]
[ro] Română (Roumain) Gabi Mandoc & Titus [no] 831/2495 (33.3%) 499/9461 (5.3%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[da] Dansk (Danois) ossau2mation [ok] 2357/2495 (94.5%) 686/9461 (7.3%) [ok] [ok] TODO TODO [ok] [ok] [ok] [ok]
[pt_BR] Brasileiro (Brésilien) Hilario & Thiago Cruz [ok] 2448/2495 (98.1%) 214/9461 (2.3%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[hu] Magyar (Hongrois) Gábor Gubányi [ok] 2442/2495 (97.9%) 815/9461 (8.6%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[sr] српски (Serbe) [ok] 0/2495 (0.0%) 473/9461 (5.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[tr] Türk (Turc) Aziz & Emir [ok] 1658/2495 (66.5%) 475/9461 (5.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[nb] Norwegian (Norvege) JoelAs [ok] 2090/2495 (83.8%) 473/9461 (5.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[ja] 日本語 (Japonais) Yuki [ok] 1848/2495 (74.1%) 653/9461 (6.9%) [ok] [ok] TODO TODO [ok] [ok] [ok] [ok]
[mn] Монгол (Mongol) Nathalie [ok] 1705/2495 (68.3%) 469/9461 (5.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[uk] українська (Ukrainien) Yaroslav [ok] 2428/2495 (97.3%) 0/9461 (0.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO
[zh] 中国人 (Chinois) Eric Wang [ok] 2448/2495 (98.1%) 0/9461 (0.0%) 0/1 0/1 TODO TODO TODO TODO TODO TODO

Dernière date de mise à jour : 28/03/2024 15:50

Notes :

  • In order to be officially integrated (= in the setup and packages), the translation to a given language must be over 90.0% for the application.
  • Qt translations are always considered as being done since they are under the responsibility of Qt Software, except for the Czech translation, handled by Pavel Fric via Gitorious : see Qt translation to czech

Miscellaneous scripts

All scripts previously exposed in this section have been integrated into the misc/translations_stat.pl script.

Print/export