Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一行有多个中文语句,会导致后面的字符串翻译的值被覆盖 #1

Open
RiverYangZiJiang opened this issue Jan 5, 2018 · 1 comment

Comments

@RiverYangZiJiang
Copy link

RiverYangZiJiang commented Jan 5, 2018

”系统存储空间不足!请确保设备有足够的存储空间!“被翻译成了两句,导致后面的key、value错位,修改为”系统存储空间不足,请确保设备有足够的存储空间!“才OK,这个问题和westlinkin#39 反应的一样,样例如下:

1、value/strings.xml里的内容如果是这样:
<resources> <string name="app_name">TestAndroid</string> <string name="item_content">马云-一年交税170多亿,这样下去,总有一天倒下?其实是谦虚了吧</string> <string name="item_label">8分钟前</string> </resources>

生成的value-zh-rCN/strings.xml是这样:
<resources> <string name="app_name">测试安卓</string> <string name="item_content">马云-一年交税170多亿,这样下去,总有一天倒</string> <string name="item_label">其实是谦虚了吧</string> </resources>

value-en/strings.xml是这样:
<resources> <string name="app_name">Test Android</string> <string name="item_content">Ma Yun - more than 170 billion tax year, so go on, one day fall</string> <string name="item_label">In fact, it is modest</string> </resources>

@JantHsueh
Copy link
Owner

你好,这个问题,确实没法修改。这是由谷歌翻译决定的。比如感叹号,问好,句号等表示句末的标点符号。你可以将其拆分为两个字符串

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants