Update instructions for working with translations
Related: rhbz#2028441, rhbz#2034581
This commit is contained in:
parent
f699d1c428
commit
4d93f7c067
@ -1,29 +1,47 @@
|
|||||||
Setroubleshoot translations currently live in the following locations:
|
Setroubleshoot translations currently live in the following locations:
|
||||||
|
|
||||||
- https://fedora.zanata.org/project/view/setroubleshoot
|
- https://translate.fedoraproject.org/projects/setroubleshoot/
|
||||||
- contains translations for both stable (RHEL) and master (Fedora) branches
|
- contains translations for both stable (rhel8) and main (Fedora) branches
|
||||||
- maintains large number of languages (several of which do not actually contain any translated strings)
|
- maintains large number of languages (several of which do not actually contain any translated strings)
|
||||||
- updated by community and partially by RH localization effort
|
- updated by community and partially by RH localization effort
|
||||||
|
|
||||||
- setroubleshoot source repositories (https://pagure.io/setroubleshoot and https://github.com/fedora-selinux/setroubleshoot)
|
- setroubleshoot source repositories
|
||||||
- is kept up-to-date with fedora.zanata
|
- https://gitlab.com/setroubleshoot
|
||||||
|
- used for development
|
||||||
|
- separate repos for plugins and framework
|
||||||
|
- https://pagure.io/setroubleshoot and https://github.com/fedora-selinux/setroubleshoot
|
||||||
|
- no longer updated
|
||||||
|
- plugins and framework in the same repo
|
||||||
|
|
||||||
How to update source files on fedora.zanata:
|
How to update source files on weblate:
|
||||||
$ git clone git@github.com:fedora-selinux/setroubleshoot.git
|
# install dependencies
|
||||||
$ cd setroubleshoot/framework
|
$ sudo dnf install automake autoconf inittool gettext glib2-devel dbus-devel libnotify-devel gtk3-devel audit-libs-devel
|
||||||
# Update Makefile
|
$ git clone git@gitlab.com:setroubleshoot/framework.git
|
||||||
|
$ git clone git@gitlab.com:setroubleshoot/plugins.git
|
||||||
|
$ cd framework
|
||||||
|
# Update Makefile
|
||||||
$ ./autogen.sh
|
$ ./autogen.sh
|
||||||
# generate new potfile
|
# generate new potfile
|
||||||
$ cd po
|
$ cd po
|
||||||
$ make setroubleshoot.pot
|
$ make setroubleshoot.pot
|
||||||
# Repeat the process for plugins
|
# https://translate.fedoraproject.org/projects/setroubleshoot/setroubleshoot/en/
|
||||||
# Push potfiles to zanata
|
# Files -> Upload translations
|
||||||
$ zanata-cli push --push-type source
|
# Repeat the process for plugins
|
||||||
|
# https://translate.fedoraproject.org/projects/setroubleshoot/plugins/en/
|
||||||
|
# Files -> Upload translations
|
||||||
|
# or use weblate command line tool:
|
||||||
|
$ wlc --key <API key> --url https://translate.fedoraproject.org/api/ upload --input framework/po/setroubleshoot.pot setroubleshoot/setroubleshoot/en
|
||||||
|
$ wlc --key <API key> --url https://translate.fedoraproject.org/api/ upload --input plugins/po/setroubleshoot.pot setroubleshoot/plugins/en/
|
||||||
|
|
||||||
How to pull new translations from zanata
|
How to pull new translations from weblate
|
||||||
$ git clone git@github.com:fedora-selinux/setroubleshoot.git
|
$ git clone git@gitlab.com:setroubleshoot/framework.git
|
||||||
$ cd setroubleshoot
|
$ git clone git@gitlab.com:setroubleshoot/plugins.git
|
||||||
# Make sure "zanata.xml" file pointing to corresponding translations branch is present
|
# https://translate.fedoraproject.org/projects/setroubleshoot/setroubleshoot
|
||||||
# Optionally update source files on zanata
|
# Files -> Download translation files as ZIP file
|
||||||
# Pull new translations from zanata
|
# https://translate.fedoraproject.org/projects/setroubleshoot/plugins/
|
||||||
$ zanata-cli -e pull --pull-type trans
|
# Files -> Download translation files as ZIP file
|
||||||
|
$ unzip setroubleshoot-setroubleshoot.zip
|
||||||
|
$ cp setroubleshoot/setroubleshoot/framework/po/*.po /framework/po
|
||||||
|
$ unzip setroubleshoot-plugins.zip
|
||||||
|
$ cp setroubleshoot/plugins/plugins/po/*.po /plugins/po
|
||||||
|
# wlc doesn't support batch download yet https://github.com/WeblateOrg/wlc/issues/17
|
||||||
|
Loading…
Reference in New Issue
Block a user