From: fennecdjay Date: Thu, 4 Jul 2019 23:50:25 +0000 (+0200) Subject: :wrench: Internationalization. X-Git-Tag: nightly~2355 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=42b27a4376a7ac54e90b27977ba93d1640f1294b;p=gwion.git :wrench: Internationalization. --- diff --git a/.github/PULL_REQUEST_TEMPLATE b/.github/PULL_REQUEST_TEMPLATE/basic_pr.md similarity index 100% rename from .github/PULL_REQUEST_TEMPLATE rename to .github/PULL_REQUEST_TEMPLATE/basic_pr.md diff --git a/.github/PULL_REQUEST_TEMPLATE/doc_pr.md b/.github/PULL_REQUEST_TEMPLATE/doc_pr.md new file mode 100644 index 00000000..1f4a9fb2 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/doc_pr.md @@ -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 ** diff --git a/Makefile b/Makefile index 9721f48b..a75dc806 100644 --- 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 index 00000000..fbafbfbd --- /dev/null +++ b/docs/08_Contributing/03_ContributingTranslation.mdr @@ -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= +``` + +Where `` 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= +``` + +## 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= +``` + +Now please submit a pull request. diff --git a/util b/util index 90803dec..5e175eff 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit 90803dec90eadcaf9358ff3887d489c064c42ac7 +Subproject commit 5e175eff5cc60ef509ede0378891850feee1cc13