Skip to content

Commit

Permalink
README: make update-translation
Browse files Browse the repository at this point in the history
Signed-off-by: Gaetan Semet <[email protected]>
  • Loading branch information
gsemet committed Apr 21, 2015
1 parent 60de04e commit c73ce3b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.l[oa]
*~
*.py[co]
*.mo
*.gmo
*.orig
*.pot
Expand Down
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------

Expand Down
12 changes: 12 additions & 0 deletions dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c73ce3b

Please sign in to comment.