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/he/gen.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/he/gen.php')
| -rw-r--r-- | app/i18n/he/gen.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/app/i18n/he/gen.php b/app/i18n/he/gen.php index 7fad51e35..ee55557cc 100644 --- a/app/i18n/he/gen.php +++ b/app/i18n/he/gen.php @@ -32,45 +32,50 @@ return array( 'login' => 'כניסה לחשבון', 'logout' => 'יציאה מהחשבון', 'password' => array( - 'format' => '<small>At least 7 characters</small>', // TODO - Translation '_' => 'סיסמה', + 'format' => '<small>At least 7 characters</small>', // TODO - Translation ), 'registration' => array( + '_' => 'New account', // TODO - Translation 'ask' => 'Create an account?', // TODO - Translation 'title' => 'Account creation', // TODO - Translation - '_' => 'New account', // TODO - Translation ), 'reset' => 'איפוס אימות', 'username' => array( + '_' => 'שם משתמש', 'admin' => 'שם משתמש של המנהל', 'format' => '<small>Maximum 16 alphanumeric characters</small>', // TODO - Translation - '_' => 'שם משתמש', ), ), 'date' => array( - 'apr' => 'apr', 'Apr' => '\\A\\p\\r\\i\\l', // TODO - Translation - 'april' => 'Apr', 'Aug' => '\\A\\u\\g\\u\\s\\t', // TODO - Translation + 'Dec' => '\\D\\e\\c\\e\\m\\b\\e\\r', // TODO - Translation + 'Feb' => '\\F\\e\\b\\r\\u\\a\\r\\y', // TODO - Translation + 'Jan' => '\\J\\a\\n\\u\\a\\r\\y', // TODO - Translation + 'Jul' => '\\J\\u\\l\\y', // TODO - Translation + 'Jun' => '\\J\\u\\n\\e', // TODO - Translation + 'Mar' => '\\M\\a\\r\\c\\h', // TODO - Translation + 'May' => '\\M\\a\\y', // TODO - Translation + 'Nov' => '\\N\\o\\v\\e\\m\\b\\e\\r', // TODO - Translation + 'Oct' => '\\O\\c\\t\\o\\b\\e\\r', // TODO - Translation + 'Sep' => '\\S\\e\\p\\t\\e\\m\\b\\e\\r', // TODO - Translation + 'apr' => 'apr', + 'april' => 'Apr', 'aug' => 'aug', 'august' => 'Aug', 'before_yesterday' => 'ישן יותר', - 'Dec' => '\\D\\e\\c\\e\\m\\b\\e\\r', // TODO - Translation 'dec' => 'dec', 'december' => 'Dec', - 'Feb' => '\\F\\e\\b\\r\\u\\a\\r\\y', // TODO - Translation 'feb' => 'feb', 'february' => 'Feb', 'format_date' => '%s j\\<\\s\\u\\p\\>S\\<\\/\\s\\u\\p\\> Y', // TODO - Translation 'format_date_hour' => '%s j\\<\\s\\u\\p\\>S\\<\\/\\s\\u\\p\\> Y \\a\\t H\\:i', // TODO - Translation 'fri' => 'Fri', // TODO - Translation - 'Jan' => '\\J\\a\\n\\u\\a\\r\\y', // TODO - Translation 'jan' => 'jan', 'january' => 'Jan', 'jul' => 'jul', - 'Jul' => '\\J\\u\\l\\y', // TODO - Translation 'july' => 'Jul', - 'Jun' => '\\J\\u\\n\\e', // TODO - Translation 'jun' => 'jun', 'june' => 'Jun', 'last_2_year' => 'Last two years', // TODO - Translation @@ -81,22 +86,17 @@ return array( 'last_month' => 'בחודש שעבר', 'last_week' => 'בשבוע שעבר', 'last_year' => 'בשנה האחרונה', - 'Mar' => '\\M\\a\\r\\c\\h', // TODO - Translation 'mar' => 'mar', 'march' => 'Mar', 'may' => 'May', // TODO - Translation - 'May' => '\\M\\a\\y', // TODO - Translation 'may_' => 'May', // TODO - Translation 'mon' => 'Mon', // TODO - Translation 'month' => 'חודשים', - 'Nov' => '\\N\\o\\v\\e\\m\\b\\e\\r', // TODO - Translation 'nov' => 'nov', 'november' => 'Nov', - 'Oct' => '\\O\\c\\t\\o\\b\\e\\r', // TODO - Translation 'oct' => 'oct', 'october' => 'Oct', 'sat' => 'Sat', // TODO - Translation - 'Sep' => '\\S\\e\\p\\t\\e\\m\\b\\e\\r', // TODO - Translation 'sep' => 'sep', 'september' => 'Sep', 'sun' => 'Sun', // TODO - Translation @@ -108,8 +108,8 @@ return array( ), 'dir' => 'rtl', 'freshrss' => array( - 'about' => 'אודות FreshRSS', '_' => 'FreshRSS', // TODO - Translation + 'about' => 'אודות FreshRSS', ), 'js' => array( 'category_empty' => 'Empty category', // TODO - Translation @@ -178,13 +178,13 @@ return array( 'years' => 'years', // TODO - Translation ), 'share' => array( + 'Known' => 'Known based sites', // TODO - Translation 'blogotext' => 'Blogotext', // TODO - Translation 'diaspora' => 'Diaspora*', // TODO - Translation 'email' => 'דואר אלקטרוני', 'facebook' => 'Facebook', // TODO - Translation 'gnusocial' => 'GNU social', // TODO - Translation 'jdh' => 'Journal du hacker', // TODO - Translation - 'Known' => 'Known based sites', // TODO - Translation 'lemmy' => 'Lemmy', // TODO - Translation 'linkedin' => 'LinkedIn', // TODO - Translation 'mastodon' => 'Mastodon', // TODO - Translation |
