How can i localize data from database?

More
9 years 6 months ago #266 by GLeBaTi
Hello. I have a dabase data:


How can i localize "Name" and "Description"? What is the best practice? :unsure:

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #267 by Frank
Hi,
If you want to localize some texts within your scripts, then you should add those texts to a language source
(Assets\I2\Localization\Resources\I2Languages.prefab)

Once you have all the texts and their translations then you can iterate thru all your texts and do
var TranslatedText = I2.Loc.ScriptLocalization.Get( "MyText" );

If instead, you are displaying the text in a label and you want that label to display the translated text instead.
Then you can assign the text to the label as you normally do and then call the OnLocalize function.
label1.Text = "MyText";
Label1.SendMessage("OnLocalize");

Thanks
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

Time to create page: 0.139 seconds
Template by JoomlaShine