BaRatin-tools / BaRatinAGE

BaRatin Advanced Graphical Environment
GNU General Public License v3.0
4 stars 0 forks source link

Updating translations #3

Open JeromeLeCoz opened 1 year ago

JeromeLeCoz commented 1 year ago

voici la version xls à jour

Version coréenne à faire apparaître (pb d'encodage?)

dico_BaRatin_V8.xlsx

IvanHeriver commented 1 year ago

The dictionnary (dico.txt) was updated using the XLSX file.

To create dico.txt from the xlsx file I used Notepad++:

  1. I opened the files in LibreOffice calc
  2. I Copied/pasted all the rows/columns into Notepad++
  3. I made a replace all of \t to ;
  4. I replaced the spaces with _ in "key_DO_NOT_MODIFY" header item
  5. I saved the files as dico.txt

Korean and chinese language now work properly. This was an issue with Tahoma font which does not support chinese and korean characters. To fix this, I:

  1. Downloaded variable TTF fonts OpenSans (supports chinese) and Hahmlet (for korean) from Google Font
  2. Placed them in the lang folder of BaRatinAGE to be loaded when the app starts
  3. Forced all elements of the app to use these fonts (I must have missed components though)

I leave the issue open for now in case there are additional modifications required to fully support all the languages in dico.txt.

JeromeLeCoz commented 1 year ago

Voici une version du dico mise à jour : chinois simplifié corrigé par Junjian Deng (INRAE Lyon) et japonais ajouté (Google trad, correction demandée). J'ai normalement pushé dico.txt sur la forge.

L'ajout d'une langue (japonais) fonctionne nickel.

En coréen, il y a quelques textes "fenêtre" qui sont remplacés par des carrés vides : oui/non, attention redémarrage (ça se produit notamment quand on change de langue depuis la version coréenne).

Dans dico.txt, Ivan doit être ajouté dans les développeurs! Enlever les anciens devs qui ne sont plus actifs? Je vous laisse juger Ben et Ivan.

Je joins également le fichier listant les contributeurs ayant vérifié les différentes langues. Je ne sais pas où mettre les fichiers de travail sur le GitHub (il y avait un dossier "unreleased" sur la forge svn).

dico_BaRatin_V9.xlsx dico.txt

JeromeLeCoz commented 1 year ago

Update of Japanese version (dico.txt pushed)

dico_BaRatin_V10.xlsx BaRatin_languages_contributors.txt

JeromeLeCoz commented 1 year ago

Update of developers + Czech version and contributor. dico_BaRatin_V11.xlsx BaRatin_languages_contributors.txt

benRenard commented 1 year ago

I removed the 'bug' label, but added the 'v2.2' milestone as a reminder to use the latest dico.txt file before final compilation and diffusion

JeromeLeCoz commented 1 year ago

New version with automatic translations in Romanian, Dutch, Serbian, Hungarian, Slovenian, Slovak, Polish, Finnish, Estonian, Russian, Ukrainian, Swedish, Armenian, Persian.

Potential correctors for all these languages have been contacted, not sure if and when they will reply though. The validated languages are highlighted in green (first row).

dico_BaRatin_V12.xlsx

JeromeLeCoz commented 1 year ago

Polish corrected

BaRatin_languages_contributors.txt dico_BaRatin_V12.xlsx

JeromeLeCoz commented 1 year ago

Finnish corrected dico_BaRatin_V12.xlsx BaRatin_languages_contributors.txt

JeromeLeCoz commented 1 year ago

Romanian and Farsi (Persian) corrected

dico_BaRatin_V13.xlsx BaRatin_languages_contributors.txt

JeromeLeCoz commented 1 year ago

Bulgarian and Russian corrected, languages re-ordered (WMO languages first then alphabetic order of language IDs)

BaRatin_languages_contributors.txt dico_BaRatin_V14.xlsx

benRenard commented 1 year ago

Thanks Jerome, but note that release v2.2.1 comes with the previous version of the dico (without Bulgarian and Russian corrected).

JeromeLeCoz commented 1 year ago

ok, that will be ready for next version (and for updates of dico.txt on the fly).

JeromeLeCoz commented 1 year ago

I forgot John Laronne (Hebrew)...

BaRatin_languages_contributors.txt

JeromeLeCoz commented 1 year ago

Slovenian contributor added

BaRatin_languages_contributors.txt

JeromeLeCoz commented 1 year ago

Slovak and Hungarian corrected

dico_BaRatin_V15.xlsx BaRatin_languages_contributors.txt

JeromeLeCoz commented 1 year ago

Help! J'ai un souci avec la mise à jour du dico.txt. L'appli ne démarre pas après changement du dico.txt avec la version mise à jour (sur la forge). Quand je suis en fr, ça semble fonctionner, mais si je passe en sk, ça ne marche plus. Je ne vois pas ce qui pose pb dans le fichier dico.txt que j'ai modifié depuis la release 2.2.1. J'ai changé l'ordre des colonnes, mais je viens de tester en remettant le même ordre que dans le dico 2.2.1, et ça bloque quand même.

J'ai le correcteur sk/mg qui est bloqué (il ne peut pas vérifier ses versions dans le logiciel). Merci pour vos lumières...

IvanHeriver commented 1 year ago

Hi Jérôme, looks like several quotation marks " were added in the file which breaks BaRatinAGE when importing the dictionnary... They are all in the "bg" column between lines. After removing them, BaRatinAGE starts fine. Not sure if this is bug or an expected behavior...

I tested both removing the quotation marks and escaping them by adding \ before (i.e. replacing " by \"), and both fix the issue.

Also note that there is an unwanted line break at line 140 which also breaks BaRatinAGE and must be removed.

JeromeLeCoz commented 1 year ago

Great, thanks for the fix. Can you push it on the github please?

IvanHeriver commented 1 year ago

done! I chose to escape the quotation marks and I removed the line break at line 140. (commit e042a16f03cf1a4672fc23da3d81569f5df5fd01)

JeromeLeCoz commented 1 year ago

Thanks. I've corrected the problems in this Excel version and updated dico.txt (many languages were missing after the break in line 140).

Merci pour ta rapiditude, Ivan! dico_BaRatin_V15.xlsx

IvanHeriver commented 5 months ago

Note that for BaRatinAGE v3, translations are now in file /resources/i18n/translations.csv which is a tab seperated file very similar to the old dico.txt file.

IvanHeriver commented 1 month ago

Note that translations are now stored in resources/i18n folder. Each language has its own translations_xx.properties file. Please refere to the documentation at https://baratin-tools.github.io/en/doc/baratinage/going-further/ for details on how to add a language (or modify an existing one).