Tollium Language Mismatch: Site and tollium user

9 views
Skip to first unread message

Anferney Grotestam

unread,
Jan 23, 2025, 10:18:43 AMJan 23
to General WebHare developers discussion
We have an application in which we have support for three languages (Dutch, English and German).
The language can be set in the properties of the site.

In the frontend this all seems te working fine, however in tollium we are running into some issues.

Inside MACRO NEW() function of the WebDesign we have the following code which sets the language:

```
this->languagecode := this->sitesettings.languagecode ?? this->languagecode;
SetTIDLanguage(this->languagecode);
```

This piece of code looks at the languagecode property that we can set in the properties of the site.
The problem that we are running into is that in, for example the formeditor, the editor show some parts in the language of the tolliumuser, and other parts are set in English. The language of the shown text is inconsistend in various components in tollium.

In the image below the language of the app is set to Dutch, but the language of the tollium user is set to English.

Is there any other way that i can go about this?Screenshot 2025-01-23 at 16.01.21.png

Arnold Hendriks

unread,
Jan 23, 2025, 10:51:10 AMJan 23
to General WebHare developers discussion, anfe...@nubium.nl
Where is your webdesign invoked during rendering of the form editor? When unsure, try setting an ABORT() or REFLECT() in the webdesign and trigger a stacktrace

Anferney Grotestam

unread,
Jan 24, 2025, 3:01:52 AMJan 24
to General WebHare developers discussion, Arnold Hendriks, anfe...@nubium.nl
I was able to resolve the issue by looking at the stacktrace of the ABORT().
We made some custom question types, extending TextEditFieldBase, and we were invoking the GetWebDesign function in the MACRO NEW() function when we only needed it in the RenderFieldLines() function.
Thank you

Op donderdag 23 januari 2025 om 16:51:10 UTC+1 schreef Arnold Hendriks:
Reply all
Reply to author
Forward
0 new messages