Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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
Sign in to follow this  

×