Cannot translate static strings

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
james_screech
Posts: 13
Joined: Thu Jan 20, 2011 10:48 am

Cannot translate static strings

Post by james_screech »

I'm using Builder XE (C++) form strings and string constants have been found and translated correctly by TsiLang, however static strings are not.

In my .cpp file I have a declaration like this outside of any class / fuction:

String strEntry[] = { "String1",
"String 2",
"String 3",
"etc."
};

The menu item "File | Source | With Form..." does not find the strings, looking at the help there should be a menu item "File | Const Section | With Form..." that I think should do this, however this menu item does not exist!

How can I get TsiLang to translate this array of strings?

James
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Hello,

There is no possibility to translate constant strings in C++ code. This is why this menu item is not available under C++ IDE. I would recommend you just to add a small function where you will initialize these strings and then translate it with TsiLang Expert as usual.
Best regards,
Igor Siticov.
Post Reply