Skip to main content
manto.1
Associate III
Dec 9, 2022 6:47 AM UTC
Solved

Issue with importing translations into TouchGFX!!!

I sucessfuly exported texts.xml with translations.rb

but when I try to import .xlsx back to .xml. I get the error sheet Typography not found!?

> translations.rb import texts.xlsx texts.xml
 
sheet 'Typography' not found
 
An error occurred during translations import!

Bellow are the files used

This topic has been closed for replies.
ferro
ferroBest answer
Lead
Feb 6, 2023 4:32 PM UTC

Hi,

Could not be the problem in swapped .xml and .xlsx extentions in your command ?

Here is what my system shows:

0693W00000YA557QAD.pngAlso, my conversions run without .xsd file present.

8 replies

Romain DIELEMAN
ST Employee
Dec 9, 2022 7:33 AM UTC

Hi,

Could you share which TouchGFX version you are working with ? Are you sure you are working in the correct folder/path ? (since the error message says that it cannot find Typography tool)

/Romain

manto.1
manto.1Author
Associate III
Dec 9, 2022 8:03 AM UTC

I copied the texts.xml and texts.xlsx to the folder where TouchGFX is installed where the translations.rb file is:

(..\TouchGFX\4.20.0\touchgfx\framework\tools\textconvert)

Then I run the command:

ruby translations.rb import texts.xlsx texts.xml 

manto.1
manto.1Author
Associate III
Dec 9, 2022 7:34 AM UTC

I am working with TouchGFX 4.20.0

manto.1
manto.1Author
Associate III
Dec 9, 2022 7:42 AM UTC

I copied the texts.xml and texts.xlsx to the folder where TouchGFX is installed where the translations.rb file is:

(..\TouchGFX\4.20.0\touchgfx\framework\tools\textconvert)

Then I run the command:

ruby translations.rb import texts.xlsx texts.xml 

manto.1
manto.1Author
Associate III
Dec 9, 2022 8:06 AM UTC

0693W00000WKd9kQAD.png

manto.1
manto.1Author
Associate III
Dec 12, 2022 2:27 PM UTC

Found the solution.

It is necesary to copy also the texts.xsd file to the path. This was not clearly specified in the documentation.

https://support.touchgfx.com/4.20/docs/development/ui-development/touchgfx-engine-features/texts-and-fonts

ferro
ferroBest answer
Lead
Feb 6, 2023 4:32 PM UTC

Hi,

Could not be the problem in swapped .xml and .xlsx extentions in your command ?

Here is what my system shows:

0693W00000YA557QAD.pngAlso, my conversions run without .xsd file present.