2025-05-14 12:14 PM - edited 2025-05-14 12:15 PM
Language export fails. I followed this guide: https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/texts-and-fonts#translations
I installed ruby for windows using rubyinstaller-3.4.3-1-x64.exe.
I updated TouchGFXf Designer and the middleware folder to 4.25.0.
I ruby from command prompt like this:
myproject_path\Middlewares\ST\touchgfx\framework\tools\textconvert
ruby translations.rb export myproject_path\TouchGFX\assets\texts\assets\texts\texts.xml translations.xlsx
Then I get the following error:
in 'Kernel#require': cannot load such file -- nokogiri (LoadError)
I have no experience with ruby and no instructions are listed.
Solved! Go to Solution.
2025-05-15 2:32 AM
You can search in your windows search bar for "TouchGFX X.XX.X Environment",
Open It should open a terminal, then run your commands inside.
2025-05-15 12:29 AM
Hello @unsigned_char_array,
Can you try to run the command from the TouchGfx environment ?
BR,
2025-05-15 12:47 AM
@LouisB wrote:Hello @unsigned_char_array,
Can you try to run the command from the TouchGfx environment ?
How do I do that?
2025-05-15 2:32 AM
You can search in your windows search bar for "TouchGFX X.XX.X Environment",
Open It should open a terminal, then run your commands inside.
2025-05-16 1:27 AM
Thanks. It works.
open "TouchGFX 4.25.0 Environment"
cd "path_to_project\TouchGFX\assets\texts"
"C:\TouchGFX\4.25.0\touchgfx\framework\tools\textconvert\translations.rb" export texts.xml translations.xlsx