Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
doc:translation [25/01/2023 16:12] – [Que faut-il traduire ?] scorpio810doc:translation [21/08/2024 09:14] (Version actuelle) – [How to update .ts files from source files?] scorpio810
Ligne 7: Ligne 7:
   * the strings in the program itself: ''.ts'' and ''.qm'' files in the ''lang/'' folder;   * the strings in the program itself: ''.ts'' and ''.qm'' files in the ''lang/'' folder;
   * In ''qetproject.cpp'', méthod QETProject::namesListForIntegrationCategory() : hard-coded translation of "Imported Items" to be provided to the developer;   * In ''qetproject.cpp'', méthod QETProject::namesListForIntegrationCategory() : hard-coded translation of "Imported Items" to be provided to the developer;
-  * The strings in the Qt toolkit: generally: ''.ts'' and ''.qm'' files already translated to look for in the official .tar.gz of the[[http://trolltech.com/downloads/opensource/appdev|latest version of Qt]] ; 
   * The names in the elements collection: .elmt and qet_directory files in the ''elements/'' folder ;   * The names in the elements collection: .elmt and qet_directory files in the ''elements/'' folder ;
   * The shortcut to QElectroTech in the menus: file ''qelectrotech.desktop'' in ''misc/'' ;   * The shortcut to QElectroTech in the menus: file ''qelectrotech.desktop'' in ''misc/'' ;
Ligne 17: Ligne 16:
   * [[http://l10n-files.qt.io/l10n-files/|Qt daily updated translation files]]   * [[http://l10n-files.qt.io/l10n-files/|Qt daily updated translation files]]
   * [[https://wiki.qt.io/Qt_Localization|wiki Qt_Localization ]]   * [[https://wiki.qt.io/Qt_Localization|wiki Qt_Localization ]]
-  * [[https://qelectrotech.org/forum/viewtopic.php?pid=16027#p16027|Qet_translate : Element translation tool]] [[https://download.tuxfamily.org/qet/builds/qet_translate/ |Download ]]+  * [[https://qelectrotech.org/forum/viewtopic.php?pid=16027#p16027|Qet_translate : Element translation tool]] [[https://download.qelectrotech.org/qet/builds/qet_translate/ |Download ]]
 ===== And after ? =====  ===== And after ? ===== 
   * Maintenance of translations by regular monitoring of changes in the Git or Github repository;   * Maintenance of translations by regular monitoring of changes in the Git or Github repository;
Ligne 63: Ligne 62:
  
 Download this script to put in your git copy Download this script to put in your git copy
-<code>wget http://download.tuxfamily.org/qet/scripts/detect_non_translated_elements.sh</code>+<code>wget https://download.qelectrotech.org/qet/scripts/detect_non_translated_elements.sh</code>
  
 Make it executable Make it executable
Ligne 96: Ligne 95:
 Note: *.ts are generally updated by the developer when he considers that the character strings to be translated are viable or by translators. 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 += '' : <code bash>sed -i 's/^TRANSLATIONS/#TRANSLATIONS/g' qelectrotech.pro</code>   * Édit qelectrotech.pro file: Comment out the lines starting with ''TRANSLATIONS += '' : <code bash>sed -i 's/^TRANSLATIONS/#TRANSLATIONS/g' qelectrotech.pro</code>
-  * Run the following command: <code>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}.ts</code>+  * Run the following command: <code>lupdate -noobsolete qelectrotech.pro -ts lang/qet_{ar,be,ca,cs,da,de,el,en,es,fr_FR,hr,hu,it,ja,mn,nb,nl,pl,pt,pt_BR,ro,ru,sk,sl,sr,tr,uk,zh}.ts</code>
   * Restore missing references to source files : <code>/usr/lib/x86_64-linux-gnu/qt5/bin/lupdate -locations absolute  qelectrotech.pro -ts lang/qet_br.ts</code>   * Restore missing references to source files : <code>/usr/lib/x86_64-linux-gnu/qt5/bin/lupdate -locations absolute  qelectrotech.pro -ts lang/qet_br.ts</code>
   * Restore file qelectrotech.pro: <code bash>sed -i 's/^#TRANSLATIONS/TRANSLATIONS/g' qelectrotech.pro</code>   * Restore file qelectrotech.pro: <code bash>sed -i 's/^#TRANSLATIONS/TRANSLATIONS/g' qelectrotech.pro</code>
Imprimer/exporter