【发布时间】:2020-12-08 07:10:20
【问题描述】:
我正在使用 Google 翻译将 strings.xml 文件从英语翻译成其他语言。但是一一翻译1000多行需要太多时间。有没有简单的方法或代码来做到这一点?
您如何将您的 xml 内容翻译成其他语言?
来自:
<resources>
<string name='title_home'>Home</string>
<string name='title_dashboard'>Dashboard</string>
<string name='title_notifications'>Notifications</string>
<string name='title_information'>Information</string>
</resources>
到:
<resources>
<string name='title_home'>Zuhause</string>
<string name='title_dashboard'>Instrumententafel</string>
<string name='title_notifications'>Benachrichtigungen</string>
<string name='title_information'>Information</string>
</resources>
【问题讨论】:
-
为什么不直接针对翻译 API 编写脚本呢? cloud.google.com/translate/docs/reference/libraries/v2/php
-
*.com/questions/44477221/… 线程对您有帮助吗?
-
我试过了,还是不行
标签: php xml google-translate