27
Views
4
Comments
Multilingual issue – Table headers not changing language without screen refresh in OD

I’m working on an application in OutSystems Developer Cloud (ODC) where we are using multilingual support. Currently, we have English and Norwegian configured.

The issue I’m facing:
    •    When I change the language from a dropdown, all labels and texts on the screen are updated correctly.
    •    But the table headers are not changing to the selected language immediately.
    •    They only change after I refresh the screen.

Expected behavior:
    •    The table headers should switch language as soon as the user selects the new language, without needing a screen refresh.

Has anyone faced a similar issue or can suggest how to fix this? 

2025-09-01 03-21-07
Vibhor Agarwal

Hello @vinita verma ,

Try to use the below 2 method and let me know if it helps you: -

Wrap Headers in a Block

  1. Encapsulate your table headers in a custom block:
  2. When the language changes, refresh the block using Ajax Refresh.
  3. This ensures the header expressions are re-evaluated.


Use OnChange Logic

  1. In the dropdown’s OnChange event:
  2. Set the new locale.
  3. Call a client action that refreshes the relevant UI parts (including the table).

Warm Regards,

Vibhor

2025-01-24 02-53-49
Mustafa Emad Shaker

@vinita verma it may not be the best solution, but I faced a similar issue in a project before, English-Arabic in my case, and what I did is use an expression that check on the current locale and display text accordingly.

Again, not the best solution, but may provide a simple fix for your issue.

2021-09-06 15-09-53
Dorine Boudry
 
MVP

@vinita verma ,

I can't reproduce it, when I change language, the table headers change immediately.  So you must be constructing them differently than just the vanilla text widget.  Can you share an oml demonstrating this ?

If you are constructing the headers dynamically, then it is normal that you will have to redo that when locale gets changed (similar to having to refetch statics that you want to see translated)

Dorine

2024-10-12 12-11-20
Kerollos Adel
Champion

Hallo @vinita verma  , 

I tried to reproduce what you did, but it worked correctly for me. 

check the following

1. Make sure the behavior is set to "Translate", 

2. you’ve typed the language name correctly when changing the language. (Example :  'ar-EG' not the same of 'ar-eg' )

 

https://personal-gnx6vddt-dev.outsystems.app/TableHeader/Bulkactionswithfilters?_ts=638982820615207127




TableHeader.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.