, .txt,.string .xml . : $pip install mkTranslation
:
$translate -p ./ios.strings -d 'en'
$translate -p ./android.xml -d 'ja'
$translate 'mkTranslate supports multilingual translations' -d 'pt'
:
from
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="network_error">网络不可用,点击屏幕重试</string>
<string name="scan_qr_code_warn">将二维码放入框内,即可自动扫描</string>
<string name="album_text">相册</string>
</resources>
to
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="network_error">Network is not available, click screen to try again</string>
<string name="scan_qr_code_warn">Put the QR code into the box and you can scan it automatically.</string>
<string name="album_text">Album</string>
</resources>
- Google, .
Code: https://github.com/mythkiven/mkTranslate
source
share