cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX v4.22.1 Language Exclusion

ThomasTurnerENC
Associate

Hello All,

I am using touchGFX v4.22.1, is it possible to exclude languages when generating a build?
I have 6-7 different languages but i am close to my flash limit when building in STM32CubeIDE.
I'd like to create multiple builds with different languages by excluding certain languages in touchGFX.
The only way i can see to do this currently is to remove the language entirely which would mean losing the translations.

I would like to just not include the language but retain the translations if possible.

3 REPLIES 3
LouisB
ST Employee

Hello @ThomasTurnerENC ,

It's not possible to do that in the designer directly, a simple workaround is to use git.
Create a branch for each languages and when you need it you can merge one or multiple branches.

BR,

Louis BOUDO
ST Software Developer | TouchGFX
GGODA
Associate III

Hello @ThomasTurnerENC ,

 

To ad to Louis' answer, what exactly is taking flash space?

Perhaps what you could do is to generate code in TouchGFX Designer, that will call the generator and generate the texts.xml file as well as the different fonts required.
I assume what takes the most space is the fonts if you have for instance languages such as English (first font), French (first font aswell), Chinese (second font and a big one), arabic (third font), etc.
Then you can remove manually the font you wont need and only then build in STM32CubeIDE.

Regards,

the space is mainly being taken by graphics which i have optimized as much as i can, and like you said the fonts and translations for other languages.

your suggestion of generating code in touchgfx and then manually removing generated files is something i have tried but have not been able to get the build in stm32cubeide to work afterwards. 

the best solution at this point seems to be to use version control and manually merge texts.xml with different languages whenever i create a build.