How can i localize data from database?
10 years 2 months ago #266
by GLeBaTi
How can i localize data from database? was created by GLeBaTi
Please Log in or Create an account to join the conversation.
10 years 2 months ago #267
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic How can i localize data from database?
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
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.
Thanks
Frank
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.181 seconds