Skip to content

rbuj/review-translations

Repository files navigation

review-translations

Bash scripts for downloading the Fedora Project translations. Those scripts can also make a report for reviewing grammar and spelling mistakes for a specified language.

  • fedora-docs.sh : download the translations that belongs to the docs group
  • fedora-main.sh : download the translations that belongs to the main group
  • fedora-report.sh : uploads the reports to https://rbuj.fedorapeople.org
  • fedora-rhel.sh : download the translations that belongs to the main group
  • fedora-upstream.sh : download the translations that belongs to the upstream group
  • fedora-web.sh : download the translations that belongs to the web group

Components (scripts which are used by other scrips):

  • common/languagetool.sh : builds LanguageTool if there is no languagetool folder and launch LT server
  • common/download-fedora.sh : downloads the translations from fedora.zanata.org
  • common/download-git.sh : downloads the translations from a git repo
  • common/download-transifex.sh : downloads the translations from transifex
  • common/fedora-version.sh : gets the branch from the OS version
  • common/fedpkg-install.sh : patches and installs the project related packages with new translations
  • common/install.sh : installs the translations in the system
  • common/stats.sh : creates images for word and message translation status for all languages
  • common/translations.sh : handles the translations
  • common/report.sh : makes a translation report of a translation group
  • common/zanata.sh : downloads the translations from zanata

More scripts:

Installation on Fedora

git clone https://github.com/rbuj/review-translations.git

Useful translator comments

Translator comment Feature Description More info
well-spelled: report to skip words in spell checking Skipping Messages and Words section of the Pology User Manual
apply-rule: report to apply a rule Skipping and Manually Applying The Rule on A Message section of the Pology User Manual
skip-rule: report to skip a rule Skipping and Manually Applying The Rule on A Message section of the Pology User Manual

Usage Examples

$ ./fedora-main.sh -h
This script downloads the translations of the projects that belongs to main group [1].
    usage : ./fedora-main.sh -l|--lang=LANG_CODE [ARGS]

Mandatory arguments:
   -l|--lang=LANG_CODE   Locale to pull from the server

Optional arguments:
   -r, --report          Generate group report
   -i, --install         Install translations
   -h, --help            Display this help and exit

[1] https://fedora.zanata.org/version-group/view/main
./fedora-main.sh -l=ca -r -i
./fedora-main.sh -l=ca -r
./fedora-main.sh -l=ca -i
./fedora-main.sh -l=ca

About

Bash scripts for downloading some Fedora pakages. Those scripts can also make a report for reviewing grammar and spelling mistakes for a specified language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published