[PATCH] Update Simplified Chinese translation

Eiji Tanioka tanioka404 at gmail.com
Tue Feb 25 09:13:34 CET 2020


Hi Samuel.

I already translated in Japanese, but I didn't concern about plurals.

Japanese doesn't have plurals, so does "values-ja/strings.xml" needs these fix?
- remove plurals
- add string resource that have same "name" attribute as plurals

Regards,

2020年2月25日(火) 9:58 Samuel Holland <samuel at sholland.org>:
>
> On 2/23/20 5:12 AM, srb12345 at vip.qq.com wrote:
> > From: LilligantMatsuri <srb12345 at vip.qq.com>
> >
> > Signed-off-by: LilligantMatsuri <srb12345 at vip.qq.com>
> > ---
> >  app/src/main/res/values-zh-rCN/strings.xml | 10 ++++++++--
> >  1 file changed, 8 insertions(+), 2 deletions(-)
> >
> > diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
> > index 3360dae..97e871a 100644
> > --- a/app/src/main/res/values-zh-rCN/strings.xml
> > +++ b/app/src/main/res/values-zh-rCN/strings.xml
> > @@ -1,21 +1,27 @@
> >  <?xml version="1.0" encoding="utf-8"?>
> >  <resources>
> >      <plurals name="delete_error">
> > +        <item quantity="one">无法删除 %d 项:%s</item>
> >          <item quantity="other">无法删除 %d 项:%s</item>
>
> These look to be the same as the "other" case. Additional quantity items are
> only needed if they are different:
>
> https://developer.android.com/guide/topics/resources/string-resource#plurals-item-element
>
> >      </plurals>
> >      <plurals name="delete_success">
> > +        <item quantity="one">删除了 %d 项</item>
> >          <item quantity="other">删除了 %d 项</item>
> >      </plurals>
> >      <plurals name="delete_title">
> > +        <item quantity="one">已选择 %d 项</item>
> >          <item quantity="other">已选择 %d 项</item>
> >      </plurals>
> >      <plurals name="import_partial_success">
> > +        <item quantity="one">导入了 %d 项,读取到 %d 项</item>
> >          <item quantity="other">导入了 %d 项,读取到 %d 项</item>
> >      </plurals>
> >      <plurals name="import_total_success">
> > +        <item quantity="one">导入了 %d 项</item>
> >          <item quantity="other">导入了 %d 项</item>
> >      </plurals>
> >      <plurals name="set_excluded_applications">
> > +        <item quantity="one">%d 个排除应用</item>
> >          <item quantity="other">%d 个排除应用</item>
> >      </plurals>
> >      <string name="add_peer">添加节点</string>
> > @@ -38,7 +44,7 @@
> >      <string name="bad_config_reason_unknown_attribute">属性未知</string>
> >      <string name="bad_config_reason_unknown_section">节未知</string>
> >      <string name="bad_config_reason_value_out_of_range">数值超出范围</string>
> > -    <string name="bad_extension_error">文件扩展名必须为 .conf 或 .zip</string>
> > +    <string name="bad_extension_error">扩展名必须为 .conf 或 .zip</string>
> >      <string name="cancel">取消</string>
> >      <string name="config_delete_error">无法删除配置 “%s”</string>
> >      <string name="config_exists_error">“%s” 的配置已存在</string>
> > @@ -60,7 +66,7 @@
> >      <string name="dark_theme_summary_on">正在使用暗色(黑夜)主题</string>
> >      <string name="dark_theme_title">使用暗色主题</string>
> >      <string name="delete">删除</string>
> > -    <string name="deselect_all">全部取消</string>
> > +    <string name="toggle_all">反选</string>
> >      <string name="dns_servers">DNS 服务器</string>
> >      <string name="edit">编辑</string>
> >      <string name="endpoint">对端地址</string>
> >
>
> _______________________________________________
> WireGuard mailing list
> WireGuard at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard


More information about the WireGuard mailing list