<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Automatically translate Global and Local Resource (resx) files</title>
	<atom:link href="http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files/feed" rel="self" type="application/rss+xml" />
	<link>http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</link>
	<description></description>
	<lastBuildDate>Wed, 10 Mar 2010 13:52:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Nazar Kotylo</title>
		<link>http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files/comment-page-1#comment-418</link>
		<dc:creator>Nazar Kotylo</dc:creator>
		<pubDate>Tue, 14 Jul 2009 09:06:18 +0000</pubDate>
		<guid isPermaLink="false">/post/Automatically-translate-Global-and-Local-Resource-(resx)-files.aspx#comment-418</guid>
		<description>Awesome! 
Sometimes resources can contain images. But the working folder is different so ResXResourceReader throws an exception when trying to read .resx file (GetEnumerator). This happens if you have relative links to the image files.

The solution to this is to set the current working directory as:

 using (ResXResourceReader rr = new ResXResourceReader(resxFilePath))
        {
          string outputFilePath = String.Format(&quot;{0}.{1}.{2}&quot;, Path.GetFileNameWithoutExtension(resxFilePath), toLanguageShortname, Path.GetExtension(resxFilePath));
            [b]System.Environment.CurrentDirectory = Path.GetDirectoryName(resxFilePath);[/b]</description>
		<content:encoded><![CDATA[<p>Awesome!<br />
Sometimes resources can contain images. But the working folder is different so ResXResourceReader throws an exception when trying to read .resx file (GetEnumerator). This happens if you have relative links to the image files.</p>
<p>The solution to this is to set the current working directory as:</p>
<p> using (ResXResourceReader rr = new ResXResourceReader(resxFilePath))<br />
        {<br />
          string outputFilePath = String.Format(&quot;{0}.{1}.{2}&quot;, Path.GetFileNameWithoutExtension(resxFilePath), toLanguageShortname, Path.GetExtension(resxFilePath));<br />
            [b]System.Environment.CurrentDirectory = Path.GetDirectoryName(resxFilePath);[/b]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin H. Normark</title>
		<link>http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files/comment-page-1#comment-417</link>
		<dc:creator>Martin H. Normark</dc:creator>
		<pubDate>Sat, 20 Jun 2009 08:55:10 +0000</pubDate>
		<guid isPermaLink="false">/post/Automatically-translate-Global-and-Local-Resource-(resx)-files.aspx#comment-417</guid>
		<description>Hey Chad

That makes a lot of sense. Thanks for your input.</description>
		<content:encoded><![CDATA[<p>Hey Chad</p>
<p>That makes a lot of sense. Thanks for your input.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files/comment-page-1#comment-416</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Fri, 19 Jun 2009 19:45:56 +0000</pubDate>
		<guid isPermaLink="false">/post/Automatically-translate-Global-and-Local-Resource-(resx)-files.aspx#comment-416</guid>
		<description>Nicely done Martin, that certainly makes things easier getting started with translations.  I have one suggestion though...in the Translator class, set the proxy credentials on your web client.  Many corporations use a proxy server to allow access to the Internet.

Just one line in the using statement of Translator.TranslateText:
[b]webClient.Proxy.Credentials = CredentialCache.DefaultCredentials;[/b]
and it&#039;ll use the current Windows credentials to pass to the proxy.

Thanks and great job!</description>
		<content:encoded><![CDATA[<p>Nicely done Martin, that certainly makes things easier getting started with translations.  I have one suggestion though&#8230;in the Translator class, set the proxy credentials on your web client.  Many corporations use a proxy server to allow access to the Internet.</p>
<p>Just one line in the using statement of Translator.TranslateText:<br />
[b]webClient.Proxy.Credentials = CredentialCache.DefaultCredentials;[/b]<br />
and it&#8217;ll use the current Windows credentials to pass to the proxy.</p>
<p>Thanks and great job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin Normark</title>
		<link>http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files/comment-page-1#comment-415</link>
		<dc:creator>Martin Normark</dc:creator>
		<pubDate>Wed, 08 Apr 2009 10:58:34 +0000</pubDate>
		<guid isPermaLink="false">/post/Automatically-translate-Global-and-Local-Resource-(resx)-files.aspx#comment-415</guid>
		<description>You can download the app, including source code, through the link to my Sky Drive. At the bottom of the post - ResxTranslator.zip :)</description>
		<content:encoded><![CDATA[<p>You can download the app, including source code, through the link to my Sky Drive. At the bottom of the post &#8211; ResxTranslator.zip <img src='http://martinnormark.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cwe</title>
		<link>http://martinnormark.com/2009/03/13/automatically-translate-global-and-local-resource-resx-files/comment-page-1#comment-414</link>
		<dc:creator>Cwe</dc:creator>
		<pubDate>Wed, 08 Apr 2009 10:27:41 +0000</pubDate>
		<guid isPermaLink="false">/post/Automatically-translate-Global-and-Local-Resource-(resx)-files.aspx#comment-414</guid>
		<description>Hi, I thought the same idea too about generating resx files for different languages using Google Translate but not sure how. It will be very helpful if you can post up the source code about the windows app that you are working on :)</description>
		<content:encoded><![CDATA[<p>Hi, I thought the same idea too about generating resx files for different languages using Google Translate but not sure how. It will be very helpful if you can post up the source code about the windows app that you are working on <img src='http://martinnormark.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
