update README, and add section for language on script locale.sh
This commit is contained in:
parent
466394cca6
commit
2cf0baffb0
2 changed files with 21 additions and 0 deletions
15
README.md
15
README.md
|
@ -40,6 +40,21 @@ keyword msgid is Id used in khanat, and msgstr is translation (if you have some
|
|||
* msgid "MAIN_MENU_PLAY"
|
||||
* msgstr "Jouer"
|
||||
|
||||
### 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" )
|
||||
|
||||
|
||||
### Push your update
|
||||
|
||||
To send your update, could you please create a branch and send us this branch?
|
||||
|
|
|
@ -16,6 +16,12 @@ function generate_locale()
|
|||
}
|
||||
ORIGIN=$PWD
|
||||
cd $WORKDIR
|
||||
#######################
|
||||
# LIST LANGUAGE : START
|
||||
#######################
|
||||
generate_locale fr
|
||||
generate_locale en
|
||||
######################
|
||||
# LIST LANGUAGE : END
|
||||
######################
|
||||
cd $ORIGIN
|
||||
|
|
Loading…
Reference in a new issue