Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: ho young ryoo on September 17, 2017, 09:23:17 AM
-
Hi, again.
My project is nearing the end.
I want to support language by country.
And I find in playmaker ApplicationGetSystemLanguage.
But, I have no idea.how to use this.
Can you tell me how to use it?
Can I get an example?
-
Hi,
the ApplicationGetSystemLanguage gets the system language, and returns it as a string.
this way you know what the default language is on the pc/mac/android/... Device.
Then its up to you how you set the languages.
you can use for example arrays start with a list with your supported languages.
To know which languages you can include, look here (https://docs.unity3d.com/ScriptReference/SystemLanguage.html)
then have an array for each language.
or you can use xml(using Datamaker)
-
Sorry, I still do not understand.
Can I get some example?
https://play.google.com/store/apps/details?id=com.DreamOn.StopHero&hl=en
It's my game.
And this is my setting.
(http://dulimong.dothome.co.kr/test/texthow.JPG)
Please, help me.
-
Hi, I tried like this... it's not working...something wrong..
(http://dulimong.dothome.co.kr/test/kkkkk01.JPG)
(http://dulimong.dothome.co.kr/test/kkkkk02.JPG)
(http://dulimong.dothome.co.kr/test/kkkkk03.JPG)
(http://dulimong.dothome.co.kr/test/kkkkk04.JPG)
(http://dulimong.dothome.co.kr/test/kkkkk05.JPG)
-
Hi,
For this you will need a database or a series of files containing each language words for ALL your content.
I would strongly suggest using a dedicated system for this on the Asset store, else it will be a nightmare for you to implement if you are beginning.
I would strongly suggest getting this, or at least watch the videos to grasp how much work is required to do localization.
https://www.assetstore.unity3d.com/en/#!/content/14884
Bye,
Jean
-
Thank you for reply.
But my project need not so many text, and I want just translate 3 language.(or 4?)
Can I make it in playmaker? Use ApplicationGetSystemLanguage?
-
Hi,
It doesn;t make any difference how many languages you want to support or how many textm you will still need to do a very complex system to change texts around.
But yes, you can do this is playmaker only.
you need to create an Array of strings for each language and base on the current language change the text in your interface by getting the right content from the right array.
Bye,
Jean
-
Hi,
I think you misunderstand what ApplicationGetSystemLanguage does.
The action only looks to the machine what language it is using.
It is not translating.
I will try to make a video sample how you can do this tomorrow.
-
Thank you~ I'm waiting.
-
HI
I still do not know, what ApplicationGetSystemLanguage does.
But I use this asset.
https://www.assetstore.unity3d.com/kr/#!/content/28504
Thank you all.
-
Hi,
I have made a sample and making a tutorial video for it. but i am a little bit sick that why i don't have a video yet (my voice is bad at the moment)
but i did make some actions that might be useful for the Lean Localization (https://www.assetstore.unity3d.com/kr/#!/content/28504) asset
(https://i.imgur.com/LeGpWC3.png)
You can get them from the attachment below.
if you need something that is not yet included in the actions, let me know.
-
Thank you djaydino!!
Take care of your health.