Jump to content
Sign in to follow this  
0TheBuster0

Mods Development Multilingual

Recommended Posts

Hi, 

i search for a way to develop mods multilingual. I only find that i have to add a stringtable.csv. But how can i say that Widgets has to use the translatetd word. 

For example i have in my stringtable.csv the entries like:

"Language","original","english","czech","german",
"select_number","chose you number","chose you number","chose you number","Waehle eine Zahl",

How can i now set now the text to widget? 

MultilineTextWidget number = MultilineTextWidget.Cast( widget.FindAnyWidget( "numberSelect" ));
number.SetText("select_number");

Is that the correct way?

Edited by 0TheBuster0

Share this post


Link to post
Share on other sites

I get the solution: 

MultilineTextWidget number = MultilineTextWidget.Cast( widget.FindAnyWidget( "numberSelect" ));
number.SetText("#select_number");

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×