Is there an application for translating the Localizable.strings file?

I mean, if I have a Localizable.strings file with some text:

/* Cancel string */
"Cancel" = "Cancel";

This application will translate it into Spanish (for example):

/* Cancel string */
"Cancel" = "Cancelar";

There is already such a service for android: http://translate.google.com/toolkit

+4
source share
4 answers

Who stops you using the Googles Translator Toolkit? You can download:

> AdWords Editor Archive (.aea)
> Android Resource (.xml) 
> Application Resource Bundle (.arb) 
> Chrome Extension (.json) 
> GNU gettext (.po) 
> HTML (.html) 
> Microsoft Word (.doc) 
> OpenDocument Text (.odt) 
> Plain Text (.txt) 
> Rich Text (.rtf) 
> SubRip (.srt) 
> SubViewer (.sub)

You need to copy the paste of localized strings to one of the above file types, translate it and copy it back. You can write a script machine that does this for you.

+4
source

I used the Google Translate Toolkit with its processing for Localizable.strings. He worked very well.

, , Stack Overflow. , ! promises, . , .

TraductoPro

0

- Localizable.strings, , . , , - TextWrangler Mac. , , . . , .

, . Crowdin.net. ( Android.strings, gettext.pot ..). , , , , , Google Translate. .:)

0

, .txt,.string .xml . : $pip install mkTranslation

:

$translate -p  ./ios.strings  -d 'en'  # translation file
$translate -p ./android.xml -d 'ja'  # translation file
$translate  'mkTranslate supports multilingual translations' -d 'pt'   # translation text

:

from  
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- tab -->
    <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">
    <!-- tab -->
    <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

0
source

All Articles