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/zh-cn/admin.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/zh-cn/admin.php')
| -rw-r--r-- | app/i18n/zh-cn/admin.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/i18n/zh-cn/admin.php b/app/i18n/zh-cn/admin.php index 9a83c0a75..078685fae 100644 --- a/app/i18n/zh-cn/admin.php +++ b/app/i18n/zh-cn/admin.php @@ -83,9 +83,9 @@ return array( 'ok' => '已找到 PDO 和支持的至少一种驱动(pdo_mysql、pdo_sqlite、pdo_pgsql)', ), 'php' => array( + '_' => 'PHP 相关', 'nok' => '你的 PHP 版本为 %s,但 FreshRSS 最低需要 %s', 'ok' => '你的 PHP 版本为 %s,与 FreshRSS 兼容', - '_' => 'PHP 相关', ), 'tables' => array( 'nok' => '数据库中缺少一个或多个表', @@ -116,8 +116,8 @@ return array( 'name' => '名称', 'no_configure_view' => '此扩展不能配置。', 'system' => array( - 'no_rights' => '系统扩展(你无权修改)', '_' => '系统扩展', + 'no_rights' => '系统扩展(你无权修改)', ), 'title' => '扩展', 'update' => '更新可用', @@ -125,6 +125,7 @@ return array( 'version' => '版本', ), 'stats' => array( + '_' => '统计', 'all_feeds' => '所有订阅源', 'category' => '分类', 'entry_count' => '文章数', @@ -154,9 +155,9 @@ return array( 'status_unread' => '未读', 'title' => '统计', 'top_feed' => '前十订阅源', - '_' => '统计', ), 'system' => array( + '_' => '系统配置', 'auto-update-url' => '自动升级服务器地址', 'cookie-duration' => array( 'help' => '单位(秒)', @@ -170,21 +171,20 @@ return array( 'help' => '0 表示无用户数限制', 'number' => '最大用户数', ), - '_' => '系统配置', ), 'update' => array( + '_' => '更新系统', 'apply' => '应用', 'check' => '检查更新', 'current_version' => '当前 FreshRSS 版本为 %s.', 'last' => '上一次检查:%s', 'none' => '没有可用更新', 'title' => '更新系统', - '_' => '更新系统', ), 'user' => array( 'admin' => '管理员', - 'articles_and_size' => '%s 篇文章(%s)', 'article_count' => '文章数', + 'articles_and_size' => '%s 篇文章(%s)', 'back_to_manage' => '← 返回用户列表', 'create' => '创建新用户', 'database_size' => '数据库大小', @@ -202,8 +202,8 @@ return array( 'selected' => '已选中用户', 'title' => '用户管理', 'update_users' => '更新用户', + 'user_list' => '用户列表', 'username' => '用户名', 'users' => '用户', - 'user_list' => '用户列表', ), ); |
