Skip to content

The review workflow for comparing the Chinese translation of samvera hyrax locales file

Huawei Weng edited this page Sep 1, 2017 · 3 revisions
  1. To get to the compare view, append /compare to your repository's path: https://github.com/samvera/hyrax/compare/

  2. Enter two arbitrary commits In left side base and right side compare. Comparisons between commits are made by providing either the full SHA hash or the short seven-character code. For example:
    In base enter commit “8186544”, which is the last commit for chinese locale config dated on Apr 14.
    In compare enter commit “181141d”, which is the latest commit in master branch dated on Aug. 23rd.
    Here is the url for this example: https://github.com/samvera/hyrax/compare/8186544...181141d

  3. After the Comparing changes result page loaded, click “Files changed” tab —> search “hyrax.zh.yml” —> click “load diff” under config/locales/hyrax.zh.yml, The result page shows the new added/removed lines and their line number for hyax.zh.yml file between two commits time period(For the above example, from Apr. 14th to Aug. 23rd) which would be easy to review and compare the changes.

  4. See missing internationalization keys:
    https://github.com/samvera/hyrax/wiki/Testing-internationalization-(i18n)-support

  5. Review and edit the translation.

  6. Add new updates to hyax.zh.yml using YAML format.

  7. Run rubocop to make sure all tests passed.

Clone this wiki locally