xml parsing - Tool for xml (.locale) file automatic translation - TAOBAO CHAT TRANSLATION IN ENGLISH -


edit: chat program name alichat, aliwangwang (taobao chat software)

i have chat program installed on microsoft environment uses .locale file language customization. structured xml file. file: http://www.tr3ma.com/apps/translatortest/chs.locale_original

this how structured:

  <?xml version="1.0" encoding="utf-8"?>   <localedetails>    <strings>     <string id="common.yes">是</string>     <string id="common.no">否</string>     <string id="common.remind">提示</string>     <string id="common.ok">确定</string>     <string id="common.edit">编辑</string>     <string id="common.save">保存</string>     <string id="common.cancel">取消</string>       ..... 

do know if file standard file microsoft development environment strings resource file android apps? found android apps there tool translate resources in language. there equivalent these .locale file ? development environment come from?

the main question is: tool use translate such big files?

fundamentally problem software provided in chinese language.

notes:

exe name: aliim.exe

exe file path: c:\program files\aliwangwang

chs.locale file path: c:\program files\aliwangwang\8.00.08c\languages

here can download program directly supplier: http://www.taobao.com/wangwang/

i found file chs.locale used if selected simplified chinese language, otherwise file cht.locale used if selected traditional chinese language.

i started translating file hands , have effect on resulting language of chat program hard work since file enormous , can not translated automatically. before post solutions try cause tried lot of tools without success.

while waiting started creating tool automatic translation of xml files. tool written in vb.net, loads file, let's choose language translate , to. parses xml file searching desired tags , translates strings desired language, recreates file , saves in same folder different name. working if words not translated. traditional chinese file translated english, ready replaced original file http://www.tr3ma.com/apps/translatortest/chs.locale consider used original file relative chat version 8.00.08c. if have different version of chat, or need translate .locale file of application, or if need translate xml file, need use tool retranslate file.

as told not perfect. can try yourself, can download tool http://www.tr3ma.com/apps/translatortest/translator.zip

if xml file different can change tags search in 3 fields.

it's slow in translation.

hope can in situation. here screenshot: enter image description here

ask if it's not clear, or if tring use , find difficulties.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -