Skip to main content
ferro
Lead
March 13, 2023
Solved

TextArea - how to ignore translating its text upon language change ?

  • March 13, 2023
  • 2 replies
  • 1166 views

Hi,

Is there a possibility for TextArea to ignore translating its text upon language change ?

I thought I could achieve that by using a wild card and setting raw string (ie TextArea::setWildcard1 (UnicodeChar* value)) but it did not work as I hoped.

As I understand it, after calling Texts::setLanguage (), GFX translates all texts/strings assigned to TextArea(s) to font assigned to new language.

I miss something like TextArea::setIgnoreLanguageChange ( bool ignore ).

Thanks

This topic has been closed for replies.
Best answer by Osman SOYKURT

Hello ferro,

Indeed, changing the language of you application will affect all your text areas, as described in the tutorial 6.

0693W00000aIvsyQAC.pngBut thanks for the suggestion, I can discuss it with the team.

/Osman

2 replies

Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
March 14, 2023

Hello ferro,

Indeed, changing the language of you application will affect all your text areas, as described in the tutorial 6.

0693W00000aIvsyQAC.pngBut thanks for the suggestion, I can discuss it with the team.

/Osman

ST Software Developer | TouchGFX
ferro
ferroAuthor
Lead
March 14, 2023

Hi @Osman SOYKURT​ ,

I did the tutorial few weeks ago but missed/forgot about the Note. Thanks for confirmation and link.

"But thanks for the suggestion, I can discuss it with the team."

Great. Thanks.

Ferro