2018-01-10 12:18:39 +00:00
|
|
|
policycoreutils translations currently live in the following locations:
|
|
|
|
|
|
|
|
- https://fedora.zanata.org/project/view/selinux
|
|
|
|
- contains translations for both stable (Red Hat Enterprise Linux) and master (Fedora) branches
|
|
|
|
- maintains large number of languages (several of which do not actually contain any translated strings)
|
|
|
|
- updated by community and partially by RH localization effort
|
|
|
|
|
|
|
|
- selinux source repository (https://github.com/fedora-selinux/selinux)
|
|
|
|
- is kept up-to-date with fedora.zanata
|
|
|
|
|
|
|
|
How to update source files on fedora.zanata:
|
|
|
|
$ git clone git@github.com:fedora-selinux/selinux.git
|
2018-08-07 14:58:41 +00:00
|
|
|
$ 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
|
2018-01-10 12:18:39 +00:00
|
|
|
$ zanata-cli push --push-type source
|
|
|
|
|
|
|
|
How to pull new translations from zanata
|
|
|
|
$ git clone git@github.com:fedora-selinux/selinux.git
|
2018-08-07 14:58:41 +00:00
|
|
|
$ 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
|
2018-01-10 12:18:39 +00:00
|
|
|
$ zanata-cli -e pull --pull-type trans
|
2018-08-07 14:58:41 +00:00
|
|
|
|
|
|
|
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
|