Airsaid / AndroidLocalizePlugin

:earth_asia: Android localization plugin. supports multiple languages and multiple translators.
https://plugins.jetbrains.com/plugin/11174-androidlocalize
Apache License 2.0
583 stars 91 forks source link

如何仅翻译新增的字符,而不对已有的进行翻译和覆盖 #26

Closed qyzhaojinxi closed 3 years ago

qyzhaojinxi commented 3 years ago

Please ensure you have given all the following requested information in your report.

Please select the affected platforms

Version of Plugin and IDE

Issue details

Please provide the details of your issue

Airsaid commented 3 years ago

不要勾选「Overwrite Existing String」选项。

qyzhaojinxi commented 3 years ago

但是测试后发信其他已翻译的还是被覆盖了,而且strings.xml文件中本来已存在的一些注释文字也被删除

Airsaid commented 3 years ago

那就是 Bug 了,这个库已经有 3 年时间了,我最近正在对其进行重构,到时会顺带修复该问题。

修复前先重新打开了。

Airsaid commented 3 years ago

V2.0.0 版本已经更新,现在「Overwrite Existing String」选项的粒度更细了,不会存在还会覆盖的问题。

关于注释的问题,源文件(即 values/strings.xml)中不会改动,但是其他 strings.xml 文件不会保留注释信息(不需要也没有必要在每个文件中保留注释)。