- 전체
- 게임 일반 (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
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 11 |
Games on GitHub 오픈소스 게임 모음
| 졸리운_곰 | 2016.01.19 | 4103 |
| 10 | Corona Game Controller – game loop management | 졸리운_곰 | 2015.11.09 | 298 |
| 9 |
Creating an RSS and JSON driven app with Corona SDK
| 졸리운_곰 | 2015.11.08 | 371 |
| 8 | Corona SDK: How to communicate between lua and javascript | 졸리운_곰 | 2015.11.05 | 310 |
| 7 |
나우프레스 c게임 프로그래밍 예제 [이태성]
| 졸리운_곰 | 2015.11.03 | 613 |
| 6 | coronaSDK와 Javascript 연동 : Interface Javascript On CoronaSDK, [58] | 졸리운_곰 | 2015.06.01 | 1264 |
| 5 | corona sdk 전용, 데이터 사설 클라우드 서비스, [오픈소스], http://coronium.io/ | 졸리운_곰 | 2015.05.18 | 376 |
| 4 |
모바일앱과 서버의 통신 : 서버제작
[1] | 졸리운_곰 | 2015.05.15 | 501 |
| 3 | 코로나 SDK 다국어 지원 개발 방법 [8] | 졸리운_곰 | 2014.11.27 | 827 |
| 2 |
코로나 sdk 참고자료들 : corona SDK resouces
[91] | 졸리운_곰 | 2014.11.24 | 1941 |
| » | Unity3D에서 멀티 언어 (다중언어 지원) [197] | 졸리운_곰 | 2014.02.05 | 10909 |

