5 Minutes to Survive The Zombies | Behind the Development #1 - Translation system and how it works.
5 Minutes to Survive The Zombies » Devlog
Hello!
You are probably all wondering how our translation system works in 5 Minutes to Survive The Zombies, so I will make a small presentation with a tutorial. Certainly, special thanks are due to Lean Localization, which has basically laid the whole foundation. I recommend it highly. So... let's start the explanation.
Everything begins in the game code:
So, as you can see in the screenshot above, there is a simple loop that checks if translation file name has brackets with a language in it (for ex. "(English)", "(Polish)", so it should always look like *(Language_Here)*). Also, it checks the actual Unity scene, so you better prepare files for every scene, and every file needs to have a ".txt" extension. The best solution is presented down below.
Data0 - Game Files:
The scheme is: "(LANGUAGE) SCENE NAME".txt. I have already created an example file called "(Pirate) Main Menu.txt" for the purpose of this tutorial. Unfortunately, our game can only allow for one translation at a time in the options menu. In game, just click on Other to change it and type anything in brackets (it doesn't matter for now). There is another way of course, you can for ex. change an existing language file (though modifying the game's files is not recommended).
Main Menu - Change Language to Other:
Note: if you change language before changing the text files, English will be loaded.
Let's do it now. Let's change the text in (Pirate) MainMenu.txt, but first we need to copy everything from "(English) MainMenu.txt" file
As you can see, I changed "TitleButton1" and "DescriptionButton1" from "NEW GAME" and "SURVIVE, AGAIN" to "START THE SHIPO", "ARGGH!" (that's normal, isn't it?). After that, all you need to do is change your language in the Options menu and voilà!
English language version:
Pirate language version (text is a little cut off):
And here is one of the default languages, Polish - which looks like this:
~@TheMatiaz0
Get 5 Minutes to Survive The Zombies
5 Minutes to Survive The Zombies
You have five hours until the morning to locate a way to escape from zones, which has been overrun by zombies.
Status | Released |
Author | Cyberevolver_Studios |
Genre | Survival, Action |
Tags | 2D, Loot, My First Game Jam, Post-apocalyptic, Procedural Generation, Short, Singleplayer, Stealth, Zombies |
Languages | English, Polish |
Accessibility | Configurable controls |
More posts
- Update 1.0.5 - Linux BuildAug 19, 2019
- We need your opinion about the game!Jun 13, 2019
- Update 1.0.3 - No cheats, except for the Practice modeJun 13, 2019
- Update 1.0.2 - Another Bug Bites The DustJun 09, 2019
- Game release is now!Jun 08, 2019
- 5 Minutes to Survive The Zombies | Devlog #7 - Marketing and Final FixesJun 08, 2019
- New 5 Minutes to Survive The Zombies game thumbnail - many thanks to members of...Jun 03, 2019
- 5 Minutes to Survive The Zombies | Devlog #6 - Big changes!May 31, 2019
- Release Date Announced - 08.06.2019!May 26, 2019
- 5 Minutes to Survive The Zombies | Devlog #5 - Woah, graphics!May 21, 2019
Leave a comment
Log in with itch.io to leave a comment.