8fe4dec
policycoreutils translations currently live in the following locations:
8fe4dec
8fe4dec
- https://fedora.zanata.org/project/view/selinux
8fe4dec
  - contains translations for both stable (Red Hat Enterprise Linux) and master (Fedora) branches
8fe4dec
  - maintains large number of languages (several of which do not actually contain any translated strings)
8fe4dec
  - updated by community and partially by RH localization effort
8fe4dec
8fe4dec
- selinux source repository (https://github.com/fedora-selinux/selinux)
8fe4dec
  - is kept up-to-date with fedora.zanata
8fe4dec
8fe4dec
How to update source files on fedora.zanata:
8fe4dec
  $ git clone git@github.com:fedora-selinux/selinux.git
1cf65c5
  $ cd selinux
1cf65c5
1cf65c5
  # generate new potfile
1cf65c5
  $ for p in policycoreutils python gui sandbox; do
1cf65c5
    cd $p/po
1cf65c5
    make $p.pot
1cf65c5
    cd -
1cf65c5
    done
1cf65c5
1cf65c5
  # Push potfiles to zanata
8fe4dec
  $ zanata-cli push --push-type source
8fe4dec
8fe4dec
How to pull new translations from zanata
8fe4dec
  $ git clone git@github.com:fedora-selinux/selinux.git
1cf65c5
  $ cd selinux
1cf65c5
  # Make sure "zanata.xml" file pointing to corresponding translations branch is present
1cf65c5
  # Optionally update source files on zanata
1cf65c5
  # Pull new translations from zanata
8fe4dec
  $ zanata-cli -e pull --pull-type trans
1cf65c5
1cf65c5
How to update translations *-po.tgz files
1cf65c5
  $ mkdir zanata
1cf65c5
  $ cd zanata
1cf65c5
  $ zanata-cli -e pull --project-config ../zanata.xml  --pull-type both
1cf65c5
  $ for p in policycoreutils python gui sandbox; do
1cf65c5
    cd $p
1cf65c5
    tar -c -f ../../$p-po.tgz -z .
1cf65c5
    cd -
1cf65c5
    done