- 전체
- 게임 일반 (make game basics)
- 모바일 기획 및 디자인
- GameMaker Studio
- Unity3D
- Cocos2D
- 3D Engine OGRE
- 3D Engine irrlicht
- copperCube
- corona SDK
- Windows Basic Game
- BaaS (Mobile Backend)
- phnegap & cordova
- ionic & anguler
- parse (backend)
- firebase (backend)
- Game Backend Server / Opt
- web assembly
- Smart Makers
- pyGame & Ren'Py
- 머드(MUD) 게임 만들기
- Xamarin(자마린)
- flutter (플루터 앱 개발)
- construct 2 / 3
- pocketbase
- RPG Maker 시리즈
- godot engine
- playmaker(unity)
- react native
Unity3D Unity3D에서 멀티 언어 (다중언어 지원)
2014.02.05 17:37
Unity3D에서 멀티 언어 (다중언어 지원)
[출처] http://forum.unity3d.com/threads/206271-Add-Multiple-Language-Support-to-Your-Unity-Projects
Add Multiple Language Support to Your Unity Projects
After writing a couple of Android applications I thought it would be nice if one could implement support for multiple languages in their Unity projects as easily as in an Android project. I had this idea a few months ago and finally got around to writing it.
With Unity Multiple Language Support you can easily include multi-lingual support in your Unity projects through XML. Simply create one or more XML files with the strings that have multiple translations and then reference those strings in your scripts with a common identifier. XML format is as follows:Code:
<?xml version="1.0" encoding="utf-8"?> <languages> <English> <string name="app_name">Some Game</string> <string name="score_text">Score: </string> </English> <French> <string name="app_name">Certains Jeux</string> <string name="score_text">Score: </string> </French> <German> <string name="app_name">Einige Spiele</string> <string name="score_text">Ergebnis: </string> </German> </languages>
Once the Lang Class has been initialized to a particular language you can reference the strings stored in your XML file as follows:Code:
Furthermore you can reset the language on the fly with the following line:Code:
The text stored in your XML resource is read as a string so any rich text formatting will remain intact, but you'll need to read up on how to format the XML file for special characters. For the most part characters such as quotes and carats need an escape character.
The main difference between this implementation and Android's is that Android requires each language to have it's own separate XML file while UMLS leaves it up to the developer to decide whether to throw it all into one XML file or split it up into multiple files. For smaller games a single XML file should do just fine, but since all strings from the selected language are stored in RAM larger games might find it useful to use multiple XML resources such as LVL_01.xml, LVL_02.xml, etcetera. RPGs could even split their resources per conversation such as Adam_01.xml and Jenny_07.xml.
Feel free to grab Unity Multiple Language Support off of my Google Drive for free:
https://docs.google.com/file/d/0B6Bs...it?usp=sharing
P.S. Google Drive opens the zip file so you can download individual items. To download the whole zip file just select File --> Download.
P.P.S. UMLS provides support for XML resources stored on the local system and resources stored over the web, however; I have not tested UMLS with web based resources so feel free to contact me if you're having trouble.
본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
댓글 0
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 4 |
Using PHP and MySQL with Ionic
| 졸리운_곰 | 2017.11.24 | 782 |
| 3 |
Optimize your Ionic Testing with Wallaby.js, Bard.js, and WebStorm
| 졸리운_곰 | 2017.02.06 | 1034 |
| 2 |
Ionic Framework를 이용하여 하이브리드앱 개발하기
| 졸리운_곰 | 2016.12.14 | 775 |
| 1 |
Ionic 프레임워크 각종 탬플릿 예제 : A Comprehensive List Of Ionic Starter Apps
| 졸리운_곰 | 2016.11.27 | 645 |

