Unity Multi-languages without Coding, Make your game Multi-Lang

preview_player
Показать описание
in this video you're going to learn how to make your game (Unity) multi-languages and without writing any code, just add a Unity package and some text ..done 😊.

CODE & PACKAGE

_______________________________________________
❤Support Us :

Рекомендации по теме
Комментарии
Автор

How to add variables to your text


1- Add placeholders for variables
[ en.txt ] :
GREETING=Hello Mr {0}, your score is: {1}
[ fr.txt ] :
GREETING=Bonjour monsieur {0}, votre score est: {1}



Lets suppose you have a UI Text to show this greeting text
you need to translate it in a script:


using UnityEngine.UI;

public class Test : MonoBehavior {
public Text uiGreetingText;

void Start(){
//use :
string greetingText = GameMultiLang.GetTraduction ("GREETING");

//GetComponent <Text> ().text = String.Format(greetingText, var0, var1);
GetComponent <Text> ().text = String.Format(greetingText, "John", 134);
}
}

the result is:
Hello Mr John, your score is: 134
or (in case of FR lang) :
Bonjour monsieur John, votre score est: 134

herbou
Автор

Thanks for this package. I had a few issues regarding to TextMeshPro, but the localisation is working fine.
I also stopped it reloading the scene because it was causing a lot of problems on my end. Now this localisation works without even reloading the scene. Perfect !

warddewaele
Автор

Finally, I find this super video. I shaped it for myself. I added new languages. It was a very useful video. Thank you, dude.

yagmurtasc
Автор

Thanks a lot for this!Easy to use and worked almost perfectly.

One precision in case people get the same problem:
I had an options scene where i put the scrolldown and the multilang entity. When i clicked to change language it went directly to main menu without the language updated.
Only when I clicked back to options, it d update the language.

the fix in the script of the dropdown:
to the applychanges sections, i put the name of the current scene.
It updates everything live and doesn't leave the current scene (which i like better this way).

BobbyRob
Автор

You are trying to replace or create a Prefab from the instance 'Item Label' that references a missing script. This is not allowed.
Please change the script or remove it from the GameObject.

The Script TMP_Dropdown (min 2:59) miss.

luigipastorino
Автор

Hello, I don't want the scene to reset on language change, what should I do?

sathrain
Автор

I love you who make videos about unity and make the script available

DoubtfulSongs
Автор

i want dropdown without sprites but it doenst render

Paulskreativewelt
Автор

Multiple languages unity package is not showing git hub

Telugu_inti_muggulu_
Автор

Can not make it work... This goes on other scene when applyChanges.. Can you help?

mikelantzelo
Автор

Hey, how to add a Variable after Key? I became an error that "Key0" is not found. (TextMeshProUGUI)

anonym
Автор

How we can change the Language?
Like want to use other Languages like chinse etc.
How can change it?

GameWorld-lfte
Автор

Hello! My special characters like ä, ö and ü arent recognized. Its not a problem with the font, there is a ? symbol instead of ä in the text field where you can edit the text. Why? Can someone help?

TiimedArts
Автор

Somehow it doesn't save when stop playmode and reply it, it shows the selected language but the texts are the default English (using normal text ) But it normally when switching scenes... help please

noufelaouati
Автор

Also instead of typing the names again and again u can use IDs instead :) like:
0 : Play
1 : Next
2 : Back
3 : Store
4 : Restart
also in-game messages.. etc

ramim.
Автор

In german the letters "ä", "ö", "ü" and "ß" won't work. Somebody knows how to fix this issue?

gamedevspecialist
Автор

Very simple tutorials you are the best

bashirmanafikhi
Автор

I'm getting this error, can you help me please.You are trying to replace or create a Prefab from the instance 'MeshPro_Dropdown_UI' that references a missing script. This is not allowed.
Please change the script or remove it from the GameObject.

ayguncalskan
Автор

thanks for the tutorial, it's very useful.
however i have problem regarding how to create new paragraph(in value filling) in notepad txt.
is there a way to create a new paragraph but still in the same 1 column of text?

DevGameTutorial
Автор

Thanks for this Asset and tutorial! To better understand how it works! For me it works! A big thank you to you! I subscribe as a reward!

cherrytree