Quantcast
Channel: Microsoft Translator User Forum (Including Bing Translator) forum
Viewing all articles
Browse latest Browse all 529

Translating resource files

$
0
0

I'm developing an internationalised app that stores its strings in resource files.  in looking to translate these into other languages I've found little or no support, thus I've written a Powershell script (see: https://github.com/ekkis/Powershell/blob/master/MT.ps1) that integrates into Visual Studio and does the translations.

it was my naive hope that I could just hand Microsoft Translator the contents of the file (xml format) and be done with it, but there are a number of problems:

1. there seems to be a character limit of 10241, which requires I break up the file into chunks to be translated separately

2. the translator seems to understand xml i.e. if I hand it "<root>" it returns to me "<root></root>" - which means that in concatenating the chunks of the resource file, I get extra closing tags and the resource won't compile.

I hate to think I'm going to have to read the xml, extract the contents within tags and translate each separately, but perhaps that's what I'll need to do.  could someone here suggest a better path?

thanks i advance,

ekkis


Do what thou wilt shall be the whole of the law -- AL. I. 40


Viewing all articles
Browse latest Browse all 529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>