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

Need process quoted wrapped values #101

Open
solon-foot opened this issue Jan 12, 2023 · 1 comment
Open

Need process quoted wrapped values #101

solon-foot opened this issue Jan 12, 2023 · 1 comment

Comments

@solon-foot
Copy link

platforms: Android Studio
version: 2.9.0
希望在翻译时先去除引号,再在翻译结束后加回来,不知道你是否处理了翻译结果中的换行符,如果有引号的包裹的,就不要处理了
Original

  <string name="bluetooth">"Bluetooth"</string> 

translation

<!--  Escape character-->
  <string name="bluetooth">\"Bluetooth\"</string> 
<!--  Chinese quotation marks-->
  <string name="bluetooth">“Bluetooth”</string> 
 <string name="bluetooth">«Синий зуб »</string> 
@Airsaid
Copy link
Owner

Airsaid commented Jan 28, 2023

你好,感谢反馈!

对于第一个问题,从你提供的示例来看,引号在翻译后被剔除了。在后面的版本会考虑不翻译引号这类特殊符号。
对于第二个问题,翻译结果中的换行符是没有处理的。插件秉持的处理原则是,只处理需要翻译的文本,其他的一律不做过多处理。

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