diff options
| author | 2019-12-04 08:27:39 +0100 | |
|---|---|---|
| committer | 2019-12-04 08:27:39 +0100 | |
| commit | 3e49b44839237693ce1a8151325942704917f6c6 (patch) | |
| tree | 75a1af8089d48d3bb14de2d9d98c503ee76433e2 /app/i18n/zh-cn/admin.php | |
| parent | de2b323847e0a91119625e4f506f51ec9d43872f (diff) | |
Update i18n cli tools (#2673)
* Update i18n cli tools
Few things were bugging me when using the cli tool for i18n. So I've modified
the tools to be easier to use.
First, the tool automatically adds missing keys to all languages. This way, we
always have all keys in all languages.
Second, the tool detects all untranslated keys and adds automatically the todo
comment after the value.
Third, when adding a new key, the key is pushed to all languages at once. There
is no need to duplicate it manually. Thus making the duplication process obsolete.
Fourth, translation and ignore keys are manipulated at the same time. Thus we
don't have obsolete ignored strings anymore.
* Add i18n rules
I find that having the common rules in the Makefile is easier to use,
as long as you know they are here. As it is self documented, people
will see the new rules when using make.
* Use long parameters in Makefile
I find that using long parameters in scripts makes it easier to understand
what's going on. So I've switched all short parameters to long one.
* Format all i18n files
I've used the updated version of the cli tools to have some output
that can be consistently formated. This commit is a huge formating
commit. Nothing was added but some comments were removed in the
process.
Diffstat (limited to 'app/i18n/zh-cn/admin.php')
| -rw-r--r-- | app/i18n/zh-cn/admin.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/i18n/zh-cn/admin.php b/app/i18n/zh-cn/admin.php index a663d31fe..1d7b97f38 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' => '系统扩展 (你不能修改它)', + '_' => '系统扩展', ), 'title' => '扩展', 'update' => '更新可用', @@ -125,7 +125,6 @@ return array( 'version' => '版本', ), 'stats' => array( - '_' => '统计', 'all_feeds' => '所有 RSS 源', 'category' => '分类', 'entry_count' => '条目数', @@ -155,31 +154,32 @@ return array( 'status_unread' => '未读', 'title' => '统计', 'top_feed' => '前十 RSS 源', + '_' => '统计', ), 'system' => array( - '_' => '系统配置', 'auto-update-url' => '自动升级服务器 URL', - 'force_email_validation' => 'Force email addresses validation', //TODO - Translation - 'instance-name' => '实例名称', - 'max-categories' => '每用户分类限制', - 'max-feeds' => '每用户 RSS 源限制', 'cookie-duration' => array( 'help' => '单位(秒)', 'number' => '保持登录的时长', ), + 'force_email_validation' => 'Force email addresses validation', // TODO - Translation + 'instance-name' => '实例名称', + 'max-categories' => '每用户分类限制', + 'max-feeds' => '每用户 RSS 源限制', 'registration' => array( 'help' => '0 表示无账户数限制', 'number' => '最大账户数', ), + '_' => '系统配置', ), 'update' => array( - '_' => '更新系统', 'apply' => '应用', 'check' => '检查更新', 'current_version' => '当前 FreshRSS 版本为 %s.', 'last' => '上一次检查: %s', 'none' => '没有可用更新', 'title' => '更新系统', + '_' => '更新系统', ), 'user' => array( 'articles_and_size' => '%s 篇文章 (%s)', @@ -188,7 +188,7 @@ return array( 'create' => '创建新用户', 'database_size' => 'Database size', // TODO - Translation 'delete_users' => '删除用户', - 'feed_count' => 'Feeds', //TODO - Translation + 'feed_count' => 'Feeds', // TODO - Translation 'language' => '语言', 'list' => 'User list', // TODO - Translation 'number' => '已有 %d 个用户', @@ -198,8 +198,8 @@ return array( 'selected' => '已选中用户', 'title' => '用户管理', 'update_users' => '更新用户', - 'user_list' => '用户列表', 'username' => '用户名', 'users' => '用户', + 'user_list' => '用户列表', ), ); |
