https://community.openproject.org/wp/53584https://community.openproject.org/wp/53586
When making Portuguese Brazilian and Portuguese Portugal translations
apart from each other in https://community.openproject.org/wp/53374, we
missed that the root key in the `pt-BR.yml` and `pt-PT.yml` files is
still `pt`. The backend is gracefully falling back to the `pt`
translations but the frontend just fails to translate and falls back to
the English strings, leading to mixed English and Portuguese in the user
interface.
A script fixes the root key in the `pt-BR.yml` and `pt-PT.yml` files.
This script is executed each time the translations are updated from
crowdin.
This works only with `imgcat` and iTerm2 (or any terminal implementing
iTerm2 image protocol like Konsole).
See https://iterm2.com/documentation-images.html to know more.
Feel free to add support for more terminals.
Previously, downloading translations files from crowdin would write both
zh-CN and zh-TW to the same file, overwriting the previous one. This
commit adds a mapping to the crowdin.yml file to avoid this.
As a side effect, the script `fix_crowdin_translation_filenames.rb` is now
superfluous.
https://community.openproject.org/wp/48450
Before this commit, `modules/bim/config/locales/en.seeders.yml` would be
sent to crowdin as `<branch>/en.seeders.yml` and would be ignored as
`config/locales/en.seeders.yml` is already sent as
`<branch>/en.seeders.yml` first.
This happens because crowdin CLI removes the common path of a group of
source files. As this file is alone in his group, the whole path is
removed and only the file name remains.
The fix is to have another empty source file in another module to change
the common path computation and get the right final file:
`<branch>/bim/config/locales/en.seeders.yml`.
* Fix mismatch between the rerun_location and location: rerun_location
can be the example location or the example id if multiple examples
share the same location (like for shared examples). The screenshot
formatter now includes the example id in addition to the example
location to make the matching possible.
* Add `-d` / `--display-rerun-info` option so that the tests execution
group information and the instructions to rerun with same seed as CI
is not shown by default.
* Add `-f` / `--failed-job-log` option to give an already downloaded job
log as argument instead of fetching it from GitHub. Most useful for
testing the script too.