From c73ce3bda6c40101b92c41ef3ba3eaf3cfb1b5d1 Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Tue, 21 Apr 2015 13:40:23 +0200 Subject: [PATCH] README: make update-translation Signed-off-by: Gaetan Semet --- .gitignore | 1 + README.rst | 15 +++++++++++++++ dev.sh | 12 ++++++++++++ 3 files changed, 28 insertions(+) diff --git a/.gitignore b/.gitignore index c0d88df7a..716a463fa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *.l[oa] *~ *.py[co] +*.mo *.gmo *.orig *.pot diff --git a/README.rst b/README.rst index 59fafd088..02851e518 100644 --- a/README.rst +++ b/README.rst @@ -171,6 +171,21 @@ For more install details, please read the ``INSTALL`` file. Development ~~~~~~~~~~~ +Upate translation +----------------- + +First update all translation files: + + $ cd po + $ make update-po + +Then use your favorite po editor, such as ``poedit``. + +Once finished, compile your result with + + $ cd po + $ make + Git hook -------- diff --git a/dev.sh b/dev.sh index 28734827e..0b4baabac 100755 --- a/dev.sh +++ b/dev.sh @@ -5,11 +5,13 @@ NO_INSTALL=true EXEC_AUTOGEN=false +EXEC_UPDATE_PO=false echo "execute guake for developer." echo "use --no-install to avoid installing guake on your system" echo "(beware, gconf schema will be altered)" echo "use --reinstall to force complete reinstall" +echo "use --update-po to force update translations" if [[ $1 == "--install" ]]; then NO_INSTALL=false @@ -19,6 +21,10 @@ if [[ $1 == "--reinstall" ]]; then EXEC_AUTOGEN=true fi +if [[ $1 == "--update-po" ]]; then + EXEC_UPDATE_PO=true +fi + if [[ ! -f configure ]]; then EXEC_AUTOGEN=true fi @@ -36,6 +42,12 @@ if [[ $EXEC_AUTOGEN == true ]]; then fi make || exit 1 +if [[ $EXEC_UPDATE_PO == true ]]; then + cd po + make update-po || exit 1 + make || exit 1 + cd .. +fi if [[ $NO_INSTALL == true ]]; then gconftool-2 --install-schema-file=data/guake.schemas