diff options
| author | 2020-05-15 17:31:21 +0200 | |
|---|---|---|
| committer | 2020-05-15 17:31:21 +0200 | |
| commit | 8487fa6248d1d5dac81640de9c55c1eab9f324b3 (patch) | |
| tree | f3209fdeb8341870bd4fe765e30a0a395a12c4ea /cli/i18n/ignore/pt-br.php | |
| parent | 62a42a20630c5dfb4a677a42bbc3dd6c7cd203d2 (diff) | |
Reformat i18n correctly (#2976)
* Ignore i18n gen.dir key
* Add a makefile target to update an i18n key
* Mark some i18n keys to ignore
* Reformat i18n files correctly
* Make i18n keys sort case-sensitive
Calling `make i18n-format` was always inverting 4 lines:
- gen.date.dec with gen.date.Dec
- and gen.date.nov with gen.date.Nov
I don't know why these particular lines and not the others, but it
appeared the sort function was case insensitive due to the
`SORT_FLAG_CASE` flag passed to the `ksort` function. Removing this flag
makes the calls to the formatter idempotent and more reliable.
Unfortunately it moves a lot of lines since the `_` character is
considered differently.
* Check i18n files are correctly formatted on Travis
Diffstat (limited to 'cli/i18n/ignore/pt-br.php')
| -rw-r--r-- | cli/i18n/ignore/pt-br.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cli/i18n/ignore/pt-br.php b/cli/i18n/ignore/pt-br.php new file mode 100644 index 000000000..7721d23b6 --- /dev/null +++ b/cli/i18n/ignore/pt-br.php @@ -0,0 +1,54 @@ +<?php + +return array( + 'admin.stats.feed', + 'admin.stats.status_total', + 'admin.user.feed_count', + 'conf.query.number', + 'conf.sharing.blogotext', + 'conf.sharing.diaspora', + 'conf.sharing.facebook', + 'conf.sharing.print', + 'conf.sharing.shaarli', + 'conf.sharing.twitter', + 'conf.sharing.wallabag', + 'gen.dir', + 'gen.freshrss._', + 'gen.lang.cz', + 'gen.lang.de', + 'gen.lang.en', + 'gen.lang.es', + 'gen.lang.fr', + 'gen.lang.he', + 'gen.lang.it', + 'gen.lang.kr', + 'gen.lang.nl', + 'gen.lang.oc', + 'gen.lang.pt-br', + 'gen.lang.ru', + 'gen.lang.sk', + 'gen.lang.tr', + 'gen.lang.zh-cn', + 'gen.menu.logs', + 'gen.share.blogotext', + 'gen.share.diaspora', + 'gen.share.facebook', + 'gen.share.gnusocial', + 'gen.share.jdh', + 'gen.share.lemmy', + 'gen.share.linkedin', + 'gen.share.mastodon', + 'gen.share.movim', + 'gen.share.pinboard', + 'gen.share.pocket', + 'gen.share.shaarli', + 'gen.share.twitter', + 'gen.share.wallabag', + 'gen.share.wallabagv2', + 'gen.short.ok', + 'index.about.agpl3', + 'index.log._', + 'index.log.title', + 'install.bdd.host', + 'sub.api.title', +); |
