From 1cf65c551e9a1d2fa2f129b265cd544ac40a2681 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 7 Aug 2018 16:58:41 +0200 Subject: [PATCH] Update README.translations to reflect recent changes and add default zanata.xml --- README.translations | 32 ++++++++++++++++++++++++-------- zanata.xml | 8 ++++++++ 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 zanata.xml diff --git a/README.translations b/README.translations index eecd4ef..34c7750 100644 --- a/README.translations +++ b/README.translations @@ -10,16 +10,32 @@ policycoreutils translations currently live in the following locations: How to update source files on fedora.zanata: $ git clone git@github.com:fedora-selinux/selinux.git - $ cd selinux/policycoreutils/po - # generate new potfile - $ make policycoreutils.pot - # Push potfiles to zanata + $ cd selinux + + # generate new potfile + $ for p in policycoreutils python gui sandbox; do + cd $p/po + make $p.pot + cd - + done + + # Push potfiles to zanata $ zanata-cli push --push-type source How to pull new translations from zanata $ git clone git@github.com:fedora-selinux/selinux.git - $ cd policycoreutils/po - # Make sure "zanata.xml" file pointing to corresponding translations branch is present - # Optionally update source files on zanata - # Pull new translations from zanata + $ cd selinux + # Make sure "zanata.xml" file pointing to corresponding translations branch is present + # Optionally update source files on zanata + # Pull new translations from zanata $ zanata-cli -e pull --pull-type trans + +How to update translations *-po.tgz files + $ mkdir zanata + $ cd zanata + $ zanata-cli -e pull --project-config ../zanata.xml --pull-type both + $ for p in policycoreutils python gui sandbox; do + cd $p + tar -c -f ../../$p-po.tgz -z . + cd - + done diff --git a/zanata.xml b/zanata.xml new file mode 100644 index 0000000..1bee19b --- /dev/null +++ b/zanata.xml @@ -0,0 +1,8 @@ + + + https://fedora.zanata.org/ + selinux + master + gettext + +