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

Attributes' aliases and layers' names not translated #459

Closed
romanoe opened this issue Dec 23, 2020 · 1 comment
Closed

Attributes' aliases and layers' names not translated #459

romanoe opened this issue Dec 23, 2020 · 1 comment
Assignees

Comments

@romanoe
Copy link

romanoe commented Dec 23, 2020

First of all, very useful plugin and thanks for your work !

Environment:

  • QGIS 3.16.2
  • Windows 10

Issue / New feature
I'm trying to import several Interlis schemas in my Postgresql database with the QGISModelBaker plugin. Using the --nameLang fr parameter in the script, tables' and attributes' names are translated in the database but they keep the german names (aliases) in QGIS:

Postgres database QGIS

The customized ili2db command (--nameLang added) in QGISModelBaker:
"C:/Program Files (x86)/Java/jre1.8.0_271/bin/java.exe" -jar C:\Users\SGCA0250\AppData\Roaming\QGIS\QGIS3\profiles\qgaz\python\plugins\QgisModelBaker\libili2db\bin\ili2pg-4.4.4\ili2pg-4.4.4.jar --schemaimport --nameLang fr --dbhost localhost --dbport 5432 --dbusr postgres --dbpwd ****** --dbdatabase postgres --dbschema normat --setupPgExt --coalesceCatalogueRef --createEnumTabs --createNumChecks --createUnique --createFk --createFkIdx --coalesceMultiSurface --coalesceMultiLine --coalesceMultiPoint --coalesceArray --beautifyEnumDispName --createGeomIdx --createMetaInfo --expandMultilingual --createTypeConstraint --createEnumTabsWithId --createTidCol --importTid --smart2Inheritance --strokeArcs --createBasketCol --defaultSrsCode 2056 --models PlansDAffectation_MN95_V1_1

Thanks in advance.

@signedav signedav self-assigned this Apr 7, 2022
@signedav
Copy link
Member

If no displayName meta-attribute is defined for a column (found in t_ili2db_column_prop), the field names are taken from the iliname (found in t_ili2db_attrname) and this is the one from the base model.

I close this. See further discussions about this here: #402

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

2 participants