2021-09-22 22:50:40 +00:00
|
|
|
# Khanat
|
2021-06-22 16:22:58 +00:00
|
|
|
|
2021-09-22 22:50:40 +00:00
|
|
|
## Launch Game
|
|
|
|
|
|
|
|
### Download Version Godot
|
|
|
|
|
|
|
|
We use version GODOT : 3.3.3
|
|
|
|
|
|
|
|
wget https://downloads.tuxfamily.org/godotengine/3.3.3/Godot_v3.3.3-stable_x11.64.zip
|
2021-09-23 18:34:17 +00:00
|
|
|
unzip Godot_v3.3.3-stable_x11.64.zip
|
2021-09-22 22:50:40 +00:00
|
|
|
|
|
|
|
### Clone our project
|
|
|
|
|
|
|
|
git clone https://git.khaganat.net/khaganat/mmorpg_khanat/khanat-client.git
|
2021-09-23 18:34:17 +00:00
|
|
|
(cd khanat-client;git checkout develop)
|
2021-09-22 22:50:40 +00:00
|
|
|
|
|
|
|
### Launch Godot
|
|
|
|
|
2021-09-23 18:34:17 +00:00
|
|
|
./Godot_v3.3.3-stable_x11.64 khanat-client/project.godot
|
2021-09-22 22:50:40 +00:00
|
|
|
|
|
|
|
## Add/update your language
|
|
|
|
|
|
|
|
Welcome to help us to improve our translation.
|
|
|
|
We need clone our project.
|
|
|
|
|
|
|
|
### Create a new language
|
|
|
|
|
|
|
|
* On Linux :
|
|
|
|
|
|
|
|
Edit file : khanat-client/locale/locale.sh
|
|
|
|
(You need add in section [# LIST LANGUAGE] your locale)
|
|
|
|
After launch this script : bash khanat-client/locale/locale.sh
|
|
|
|
|
|
|
|
### Edit your local
|
|
|
|
|
|
|
|
khanat-client/locale/<your locale].po
|
|
|
|
|
2021-09-23 18:34:17 +00:00
|
|
|
keyword msgid is Id used in khanat, and msgstr is translation (if you have some doubt, don't hesitate to see other translation)
|
|
|
|
|
|
|
|
* msgid "MAIN_MENU_PLAY"
|
|
|
|
* msgstr "Jouer"
|
|
|
|
|
2021-09-23 20:39:13 +00:00
|
|
|
### Activate your language
|
|
|
|
|
|
|
|
Two option to activate (just use one)
|
|
|
|
|
|
|
|
1/ Use godot editor
|
|
|
|
|
|
|
|
in Parameter, localization, add your file
|
|
|
|
|
|
|
|
2/ Edit project.godot
|
|
|
|
|
|
|
|
Edit line :
|
|
|
|
|
|
|
|
translations=PoolStringArray( "res://locale/fr.po", "res://locale/en.po", "res//locale/<your language>.po" )
|
|
|
|
|
|
|
|
|
2021-09-22 22:50:40 +00:00
|
|
|
### Push your update
|
|
|
|
|
|
|
|
To send your update, could you please create a branch and send us this branch?
|
2021-06-22 16:22:58 +00:00
|
|
|
|