cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with importing translations into TouchGFX!!!

manto.1
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
ferro
Senior II

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.

View solution in original post

8 REPLIES 8
Romain DIELEMAN
ST Employee

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
Senior

I am working with TouchGFX 4.20.0

manto.1
Senior

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 

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
Senior

0693W00000WKd9kQAD.png

Did you found any solution. I think I am in the corect path/folder because export works fine. Also the error sais it cannot find typography sheet not tool, or is this the same?

manto.1
Senior

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
Senior II

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.