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/kr/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/kr/gen.php')
| -rw-r--r-- | app/i18n/kr/gen.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/app/i18n/kr/gen.php b/app/i18n/kr/gen.php index 53a16cc4e..9ffc1d0e0 100644 --- a/app/i18n/kr/gen.php +++ b/app/i18n/kr/gen.php @@ -32,45 +32,50 @@ return array( 'login' => '로그인', 'logout' => '로그아웃', 'password' => array( - 'format' => '<small>7 글자 이상이어야 합니다</small>', '_' => '암호', + 'format' => '<small>7 글자 이상이어야 합니다</small>', ), 'registration' => array( + '_' => '새 계정', 'ask' => '새 계정을 만들까요?', 'title' => '계정 생성', - '_' => '새 계정', ), 'reset' => '인증 초기화', 'username' => array( + '_' => '사용자 이름', 'admin' => '관리자 이름', 'format' => '<small>알파벳과 숫자를 포함할 수 있고 최대 16 글자</small>', - '_' => '사용자 이름', ), ), 'date' => array( - 'apr' => '4월', 'Apr' => '\\A\\p\\r\\i\\l', - 'april' => '4월', 'Aug' => '\\A\\u\\g\\u\\s\\t', + 'Dec' => '\\D\\e\\c\\e\\m\\b\\e\\r', + 'Feb' => '\\F\\e\\b\\r\\u\\a\\r\\y', + 'Jan' => '\\J\\a\\n\\u\\a\\r\\y', + 'Jul' => '\\J\\u\\l\\y', + 'Jun' => '\\J\\u\\n\\e', + 'Mar' => '\\M\\a\\r\\c\\h', + 'May' => '\\M\\a\\y', + 'Nov' => '\\N\\o\\v\\e\\m\\b\\e\\r', + 'Oct' => '\\O\\c\\t\\o\\b\\e\\r', + 'Sep' => '\\S\\e\\p\\t\\e\\m\\b\\e\\r', + 'apr' => '4월', + 'april' => '4월', 'aug' => '8월', 'august' => '8월', 'before_yesterday' => '어제 이전', - 'Dec' => '\\D\\e\\c\\e\\m\\b\\e\\r', 'dec' => '12월', 'december' => '12월', - 'Feb' => '\\F\\e\\b\\r\\u\\a\\r\\y', 'feb' => '2월', 'february' => '2월', 'format_date' => 'Y년 m월 d일', 'format_date_hour' => 'Y년 m월 d일 H시 i분', 'fri' => '금', - 'Jan' => '\\J\\a\\n\\u\\a\\r\\y', 'jan' => '1월', 'january' => '1월', 'jul' => '7월', - 'Jul' => '\\J\\u\\l\\y', 'july' => '7월', - 'Jun' => '\\J\\u\\n\\e', 'jun' => '6월', 'june' => '6월', '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', 'mar' => '3월', 'march' => '3월', 'may' => '5월', - 'May' => '\\M\\a\\y', 'may_' => '5월', 'mon' => '월', 'month' => '개월', - 'Nov' => '\\N\\o\\v\\e\\m\\b\\e\\r', 'nov' => '11월', 'november' => '11월', - 'Oct' => '\\O\\c\\t\\o\\b\\e\\r', 'oct' => '10월', 'october' => '10월', 'sat' => '토', - 'Sep' => '\\S\\e\\p\\t\\e\\m\\b\\e\\r', 'sep' => '9월', 'september' => '9월', 'sun' => '일', @@ -108,8 +108,8 @@ return array( ), 'dir' => 'ltr', 'freshrss' => array( - 'about' => '정보', '_' => 'FreshRSS', + 'about' => '정보', ), 'js' => array( 'category_empty' => '빈 카테고리', @@ -178,13 +178,13 @@ return array( 'years' => 'years', // TODO - Translation ), 'share' => array( + 'Known' => 'Known based sites', 'blogotext' => 'Blogotext', 'diaspora' => 'Diaspora*', 'email' => '메일', 'facebook' => 'Facebook', 'gnusocial' => 'GNU social', 'jdh' => 'Journal du hacker', - 'Known' => 'Known based sites', 'lemmy' => 'Lemmy', 'linkedin' => 'LinkedIn', 'mastodon' => 'Mastodon', |
