RESX Automatic Translator

On This Page

The DeployLX framework makes it easy to globalize your licensing experience. However translating the 450+ words and phrases used by DeployLX can be quite tedious.

The XHEO Resx Translator tool automatically translates the text resources of any .NET resource file into any one of 25 languages supported by the Microsoft Bing Translation services.

Initially designed to automate the DeployLX licensing resources, this tool will work for any project's resource files.

Using the Translator

The translator uses the free Microsoft Bing Translation services to translate your RESX files into any one of 25 target languages. To begin, you'll need your own App ID

To translate a RESX file
  • Start up the resxt.exe tool and enter your App ID. Then select Next to continue.
  • Select your RESX file.
  • Select the From and To languages.
  • Select Next to continue.
  • The translator will translate all the text resources in your RESX file.
  • Select save to write the translated version of the RESX file to disk.

The command line interface

The translator can also be run from the command line to automate RESX translations.

usage: resxt.exe /t:<targetLanguage> /s:<sourceLanguage> /appid:<value>
                 [/o:<path>] <resxFile>
OptionDescription
resxFile Path to the RESX file to be translated.
/output Path where the translated RESX should be saved. If not provided, automatically uses the default .NET naming conventions based on the target language.
/appId Your bing.com App ID.
/sourceLanguage The source language in ISO 2 or 4 letter format. Example 'en' or 'en-US'.
/targetLanguage The target language in ISO 2 or 4 letter format. Example 'en' or 'en-US'.
/automatic Start translating automatically. If successful, save and close when done.
Published : Oct 29, 2011
Updated : Jan 07, 2012
Views : 8573
  • deploylx

Applies To

Downloads

Folder

View the discussion thread without JavaScript.

: I do not seem to be getting the /automaic option to work. resxt.exe /t:de /s:en /appid:********************************* /automatic ErrorMessages.resx I have my appid in there, without the /automatic option it works, but prompts me to Save as something. ANy ideas? John
Paul Alexander: You'll need to provide an /output option for automatic to have something to save to.
: I keep getting a 400 Bad Request returned from the Service. It was working a few weeks ago, did Microsoft change the API?
Salar: A better ResX auto-translator. No API key is required for this: https://autoresxtranslator.codeplex.com/
Drew G: You should also check out this translation tool for resx files: https://poeditor.com/.
Rami AbuGhazaleh: This doesn't seem to work anymore. I get the error message: System.Net.WebException: The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings) at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options) at System.Xml.Linq.XDocument.Load(String uri) at RESX_Translator.​​.​(String ​) at RESX_Translator.​​.​​​(XAttribute ​, XElement ​)