]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Internationalization.
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 4 Jul 2019 23:50:25 +0000 (01:50 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 4 Jul 2019 23:50:25 +0000 (01:50 +0200)
.github/PULL_REQUEST_TEMPLATE/basic_pr.md [moved from .github/PULL_REQUEST_TEMPLATE with 100% similarity]
.github/PULL_REQUEST_TEMPLATE/doc_pr.md [new file with mode: 0644]
Makefile
docs/08_Contributing/03_ContributingTranslation.mdr [new file with mode: 0644]
util

diff --git a/.github/PULL_REQUEST_TEMPLATE/doc_pr.md b/.github/PULL_REQUEST_TEMPLATE/doc_pr.md
new file mode 100644 (file)
index 0000000..1f4a9fb
--- /dev/null
@@ -0,0 +1,9 @@
+---
+name: Translation 
+about: add/update translation
+title: ''
+labels: translation
+assignees: ''
+---
+
+** please shortly describe your work, wether it is a language addition or update **
index 9721f48b6b3a38d938a75e0f339abc51f40038f5..a75dc806b37b5a4b99acaa9fbc276845495ed949 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,7 @@ oo_obj := $(oo_src:.c=.o)
 vm_obj := $(vm_src:.c=.o)
 util_obj := $(util_src:.c=.o)
 GW_OBJ=${src_obj} ${ast_obj} ${parse_obj} ${emit_obj} ${oo_obj} ${vm_obj} ${util_obj} ${lib_obj}
+src=${src_src} ${ast_src} ${parse_src} ${emit_src} ${oo_src} ${vm_src} ${util_src} ${lib_src}
 gwlib_obj := $(filter-out src/main.o, ${GW_OBJ})
 
 CFLAGS  += -Iinclude
diff --git a/docs/08_Contributing/03_ContributingTranslation.mdr b/docs/08_Contributing/03_ContributingTranslation.mdr
new file mode 100644 (file)
index 0000000..fbafbfb
--- /dev/null
@@ -0,0 +1,50 @@
+# Contributing translations
+
+First off, thank you for considering translating gwion.
+
+Thanks to the build system, you're gonna get on tracks fast.
+
+
+## 1) Init the translation language
+
+You have to make sure there is a directory for your target language (e.g.: fr, en, es_ES ...).
+
+``` sh
+make translation-init TRANSLATION_TARGET=<xxx>
+```
+
+Where `<xxx>` is your language of choice.
+It will fail if your language already exists, but this is not a problem.
+
+> You might want to export TRANSLATION_TARGET,
+so you don't have to set it on the command line
+
+## 2) Edit
+
+Next, you should adjust the translations.
+What about using your favorite editor?
+
+``` sh
+make translation-edit TRANSLATION_TARGET=<xxx>
+```
+
+## 3) Update
+
+Maybe the sources changed, and there is more message to translate?
+
+``` sh
+make translation-update
+```
+
+This will update all languages.
+You can now get back to [step 2](#2-Edit).
+
+## Add to VCS
+
+It's now time to add your changes to the package :smile:
+
+``` sh
+make translation-commit TRANSLATION_TARGET=<xxx>
+```
+
+Now please submit a pull request.
diff --git a/util b/util
index 90803dec90eadcaf9358ff3887d489c064c42ac7..5e175eff5cc60ef509ede0378891850feee1cc13 160000 (submodule)
--- a/util
+++ b/util
@@ -1 +1 @@
-Subproject commit 90803dec90eadcaf9358ff3887d489c064c42ac7
+Subproject commit 5e175eff5cc60ef509ede0378891850feee1cc13