Auto
Localization
Introduction:
So basically this plugin can be used for language
Translation in unity. There are other translator on asset store but they charge
high cost for providing auto translation.
You can use this plugin for translating your words in
game such as some time English is your 2nd language and it is
difficult for you to understand it and you change the language by going in
settings of game. You can do it using this plugin.
Purpose:
·
You can change from 2nd language
to your native language by using it in your game.
·
Thousands of people around the world can
understand your game
Features:
- You
don’t need to put the meaning of each word manually. After press Translate
Button, translation downloaded from Google.
- We
are not using Google API. So this package will not effect the size of your
build.
- Code
is Clean you can change it manually.
- Arabic support integrated.
- This
plugin support multiple international languages.
- You
can use its “Translate Script” in any project.
- We
are working on it for making it more robust.
- Android and IOS Support.
- Now you can edit meaning of each word manually.
Documentation:
Unity Version 5.5.1f1 or higher.
There are two Scene in Package
- ·
Localization Setup ( Auto Localization/Scene)
- ·
Localization Demo ( Auto
Localization/Example)
All we need is Localization Setup Scene for setting up
word for which we want to translate.
So Open up Localization Setup Scene (All you need is Internet
during these step, once your word translation downloaded you can use it in your
game)
Setup:
- First check there is Translate Game object in
scene ( if not then create empty game object and attach the translate Script to
it)
- In Canvas there is Progress Bar ( Canvas has
a script named : ProgressBarController
)
- Go to Window/ Localization. Localization
window appears:
- Set the source Language ( Primary Language in
which you are developing your game, Don’t Change it once you have translate word in that language).
- Insert “word” in text and select Language.
- After typing “word” Press add word Button
then the editor ask for 2nd word so on…
- After pressing Add word button you cannot
change your previous words, if you want to change them then remove them.
- At the end press Save-all Button.
- Then press Translate button. Editor will play
automatically, and progress bar showing percentage of how much progress has
been made ( You can see the translation in the Console)
- If this time your internet not working then
message will be shown that your” Internet not working properly” in the Console.
- If your words downloading interrupt by
internet in between progress then don’t worry (wait for internet), again go to
window/localization and press Save-all and then Translate.
- After 100% complete off the play Button, you
can switch to Localization Demo Scene.
Demo:
1. Open
Demo Scene (Auto Localization/ Localization Demo)
2. Create
an Empty Game object named it (Language Manager) and put the Language Manger
Script on it. (You need to repeat this setup in your main game scene also if
you want to use it in your game).
3. Repeat.
After Switching from Localization Setup scene to Demo Scene or YourGameScene
you need to repeat step no 2.
4. Type
the word in input Field as I type Language, Select the language “French”
(whatever you want). Then press the Get Button Meaning.
5. You
can Look on Testing Script
6. You
need Only one line of code for getting the meaning of your word “LanguageManager.Instance.GetMeaning
(“Language”,Languages.English”).
7. You
need to add AutoLocalization namespace in your script for using LanguageManager.
Version:
v:
1.0