Update README.translations to reflect recent changes and add default zanata.xml
This commit is contained in:
parent
ad810ff414
commit
1cf65c551e
@ -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
|
||||
$ cd selinux
|
||||
|
||||
# generate new potfile
|
||||
$ make policycoreutils.pot
|
||||
$ 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
|
||||
$ 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
|
||||
|
8
zanata.xml
Normal file
8
zanata.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<config xmlns="http://zanata.org/namespace/config/">
|
||||
<url>https://fedora.zanata.org/</url>
|
||||
<project>selinux</project>
|
||||
<project-version>master</project-version>
|
||||
<project-type>gettext</project-type>
|
||||
|
||||
</config>
|
Loading…
Reference in New Issue
Block a user