Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALL OF missing translations of values German to French #439

Closed
sjib opened this issue Dec 2, 2021 · 4 comments
Closed

ALL OF missing translations of values German to French #439

sjib opened this issue Dec 2, 2021 · 4 comments
Milestone

Comments

@sjib
Copy link

sjib commented Dec 2, 2021

I tried to translate VSA-DSS 2015 German to French with the following Script:

`rem translation d-> in 3 Schritten:
rem translation schema d->f erzeugen d
java -jar ili2pg-4.6.1/ili2pg-4.6.1.jar --modeldir %ilimodelpath% --createEnumTxtCol --schemaimport --importTid --sqlEnableNull --createEnumTabs --createFk --noSmartMapping --defaultSrsAuth EPSG --defaultSrsCode 2056 --dbhost %host% --dbport %port% --dbdatabase %db% --dbschema vsa_dss_2015_d_f_460 --dbusr %user% --dbpwd %pwd% --log createschema_vsa_dss_2015_d_f_460.log --trace --models DSS_2015_LV95; SDEE_2015_LV95;

pause
rem xtf deutsch importieren
rem --importTid rausgenommen
rem --disableValidation eingefügt

java -jar ili2pg-4.6.1/ili2pg-4.6.1.jar --disableValidation --createEnumTxtCol --import --deleteData --modeldir ili --trace --sqlEnableNull --createEnumTabs --createFk --defaultSrsCode 2056 --noSmartMapping --dbhost %host% --dbport %port% --dbdatabase %db% --dbschema vsa_dss_2015_d_f_460 --dbusr %user% --dbpwd %pwd% --log datenimportvsa_dss_2015_d_f_460.log %xtffile%

rem ili2pg-4.6.1/ili2pg-4.6.1.jar
rem xtf französisch exportieren
pause
java -jar ili2pg-4.6.1/ili2pg-4.6.1.jar --modeldir %ilimodelpath% --export --models SDEE_2015_LV95 --exportModels SDEE_2015_LV95 --skipReferenceErrors --sqlEnableNull --createEnumTabs --createFk --noSmartMapping --defaultSrsAuth EPSG --defaultSrsCode 2056 --dbhost %host% --dbport %port% --dbdatabase %db% --dbschema vsa_dss_2015_d_f_460 --dbusr %user% --dbpwd %pwd% --log exportvsasdee_lv95_qgep_berg_vor_ara.log --trace exportvsasdee_lv95_qgep_berg_vor_ara.xtf
pause`

The values of the attribut Status / ETAT are not translated from German to French:

missing_ETAT_translation

The datatype Etat is an EXTENDS of the definition in the SIA405_Base model:

`EtatValeurs EXTENDS SIA405_Base_f.Etat = ( !! Etat de fonctionnement et de planification de l’ouvrage.

!! 1.2.2013 Adaptation à la nouvelle version de SIA405_Base_f.Etat – Extension des valeurs de base du fluide, modélisation hiérarchique et adaption compiler 4.5.13
!! 17.7.2015 hors_service, !! comporte hors_service et les valeurs suivantes
!! reserve !! n'existe pas en eaux_usées
en_service ( !! comporte en_service et les valeurs suivantes
!! 17.7.2015 en_service,
provisoire,
sera_supprime
),
abandonne ( !! comporte abandonne et les valeurs suivantes
!! abandonne, !! n'existe pas en eaux usées
supprime_non_demoli,
supprime_inconnu,
demoli
),
!! 17.7.2015 inconnu,
autre ( !! comporte les valeurs suivantes
variante_de_calcul,
planifie,
projet
)
);
!! nouveau 17.7.2015
Etat = ALL OF EtatValeurs; !! extension valeurs SIA405 Etat
!! OUVRAGE_RESEAU_AS.ETAT`

It looks like this case is not supported yet.

Testdata with logs using ili2pg-4.6.1
data_missing_translation_fr_values_etat.zip

@edigonzales
Copy link
Contributor

Sehe ich das richtig: Bei einigen Aufzähltyoen funktionierts? Oder bei allen und nur bei diesem nicht?

Sind es die ALL OF, die nicht gehen?

@sjib
Copy link
Author

sjib commented Dec 3, 2021

Ja, nur Etat mit ALL OF wird nicht übersetzt.

@edigonzales
Copy link
Contributor

Vielleicht fehlt was in https://github.com/claeis/ili2c/blob/master/ili2c-core/src/main/java/ch/interlis/ili2c/metamodel/EnumTreeValueType.java

Mach am besten ein neues Ticket, damit klar ist, dass es nur bei ALL OF klemmt. Und ein triviales Beispiel (Modelle und Daten) wäre toll.

Es gibt zwischenzeitlich mehrere Firmen, die in Frage kommen Bugs zu fixen. Frage am besten bei @claeis nach, weil vielleicht irgendwo in den tiefen des Compilers... VSA hat sicher eine Kasse für Bugfixing.

@sjib sjib changed the title Data not completly translated to other language (German -> French) - missing translation of values fr Etat ALL OF missing translations of values German to French Dec 3, 2021
claeis added a commit to claeis/iox-ili that referenced this issue Apr 27, 2022
@claeis claeis added this to the 4.8.0 milestone Apr 27, 2022
@claeis claeis closed this as completed Jul 6, 2022
@sjib
Copy link
Author

sjib commented Jul 13, 2022

Thanks to Service de l'environnement / Amt für Umwelt, Canton de Fribourg for financing the solving of this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants