Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Which method to change language (ITA-FRA-ENG) in Gdl

Mario Sacco
Expert
Is there a quick method to change language inside an object. I mean change text of parameters and text of variable, without creating two different objects.

I have a huge amount of parameters and variable to change.
I developed Railing Tool (3DMD)

Thank you
MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/
6 REPLIES 6
Erich
Booster
That depends on what you mean by quick and you won't be able to change the parameter descriptions in the parameter table. However for your UI I have seen samples that reference the parameter names to an array that is keyed to a single parameter for the selection of a language. That way all your UI text can change with the selection of a language parameter.

Is that the type of thing you are looking for? I would have to dig around to see the sample with that functionality as I don't typically use it writing GDL for myself. But the concept is fairly simple.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Laszlo Nagy
Community Admin
Community Admin
Maybe the LP_XMLConverter Tool is your best bet.
This doc is for AC16 but should be working pretty similarly in the latest version:

http://www.graphisoft.com/ftp/techsupport/documentation/developer_docs/AC_16/APIDevKit/LPXML%20Docum...
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Mario Sacco
Expert
Thank you Erich

Changing the UI is simple using an array.
I'm referring to parameters dialog. How can I change the txt inside the code?
Screen Shot 2015-06-15 at 16.18.03.png
MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/
Laszlo Nagy
Community Admin
Community Admin
You can't change those as those are defined in the Library Part Editor.
You will have to create separate objects in that case and the LPXMLConverter can make that easier.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
The only way is either not to use old type parameters but rather the UI where depending on the language You can set the different strings showing up in the description, or double, triple or make more (as the no of languages) parameters variants with the proper names in different languages, than make them visible or not via hideperameter command but the parameters must be linked via glob_modpar_name>parameters commands.

Best Regards,
Piotr
Mario Sacco
Expert
thank you
I think I'll translate only in the UI. And hide parameters in parameters dialog.
MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/