diff options
| author | 2020-05-15 17:31:21 +0200 | |
|---|---|---|
| committer | 2020-05-15 17:31:21 +0200 | |
| commit | 8487fa6248d1d5dac81640de9c55c1eab9f324b3 (patch) | |
| tree | f3209fdeb8341870bd4fe765e30a0a395a12c4ea /app/i18n/en/sub.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 'app/i18n/en/sub.php')
| -rw-r--r-- | app/i18n/en/sub.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/i18n/en/sub.php b/app/i18n/en/sub.php index c274f707c..baab99cf7 100644 --- a/app/i18n/en/sub.php +++ b/app/i18n/en/sub.php @@ -11,6 +11,7 @@ return array( 'title' => 'Bookmarklet', ), 'category' => array( + '_' => 'Category', 'add' => 'Add a category', 'archiving' => 'Archiving', 'empty' => 'Empty category', @@ -19,7 +20,6 @@ return array( 'position' => 'Display position', 'position_help' => 'To control category sort order', 'title' => 'Title', - '_' => 'Category', ), 'feed' => array( 'add' => 'Add a RSS feed', @@ -39,8 +39,8 @@ return array( 'empty' => 'This feed is empty. Please verify that it is still maintained.', 'error' => 'This feed has encountered a problem. Please verify that it is always reachable then update it.', 'filteractions' => array( - 'help' => 'Write one search filter per line.', '_' => 'Filter actions', + 'help' => 'Write one search filter per line.', ), 'information' => 'Information', 'keep_min' => 'Minimum number of articles to keep', @@ -56,10 +56,10 @@ return array( 'no_selected' => 'No feed selected.', 'number_entries' => '%d articles', 'priority' => array( + '_' => 'Visibility', 'archived' => 'Do not show (archived)', 'main_stream' => 'Show in main stream', 'normal' => 'Show in its category', - '_' => 'Visibility', ), 'selector_preview' => array( 'show_raw' => 'Show source code', @@ -108,8 +108,8 @@ return array( 'subscription_tools' => 'Subscription tools', ), 'title' => array( + '_' => 'Subscriptions management', 'feed_management' => 'RSS feeds management', 'subscription_tools' => 'Subscription tools', - '_' => 'Subscriptions management', ), ); |
