<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - Localizing Windows Phone 8 applications</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - Localizing Windows Phone 8 applications</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Wed, 19 Jun 2013 11:01:34 GMT</pubDate>
	<lastBuildDate>Wed, 19 Jun 2013 11:01:34 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>2</c9:totalResults>
	<c9:pageCount>-2</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - Localizing Windows Phone 8 applications</title>
		<description><![CDATA[<p>Microsoft made it so easy to localize applications on the Windows Phone 8 platform. It is really a no brainer at this point.</p><p>I will not mention best patterns and practices here. You can read all about that at&nbsp;<a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff967552(v=vs.105).aspx">http&#58;&#47;&#47;msdn.microsoft.com&#47;en-us&#47;library&#47;windowsphone&#47;develop&#47;ff967552&#40;v&#61;vs.105&#41;.aspx</a></p><p>Here&nbsp;is how it happens: When Windows Phone 8 starts your app it chooses which AppResources file to use when we access the AppResources class in code. BAM! That is it!</p><p>All we have to do at development time is use that class instead of a literal.</p><p><strong>In C# instead of:</strong></p><p><pre class="brush: text">
saveButton.Text = &quot;Save&quot; ;
</pre></p><p>we use</p><p><pre class="brush: text">
saveButton.Text = AppResources.SaveButtonText;
</pre></p><p>When typing the resource name of your choice, in my example &quot;SaveButtonText&quot;, you will notice Visual Studio puts a red squiggle underneath the name. It is because you still haven't created the resource. To do that open AppResourcex.resx under &quot;Resource&quot; in solution explorer and add the resource name and value to the list. Once the resource name is entered in the list, the red squiggle&nbsp;disappears&nbsp;and you are good to go.&nbsp;</p><p>Lets take a&nbsp;look&nbsp;at XAML as well. Most times XAML is what you will be using. In XAML it is a bit more verbose, but not rocket surgery either:</p><p><pre class="brush: text">
&lt;ApplicationBarIconButton Text=&quot;Save&quot; ... /&gt;
</pre></p><p>we use</p><p><pre class="brush: text">
&lt;ApplicationBarIconButton Text=&quot;{Binding Path=LocalizedResources.SaveButtonText, Source={StaticResource LocalizedStrings}}&quot; ... /&gt;
</pre></p><p>You can now build and run your app and all should work as it did before we started localizing.</p><p><strong>Adding languages:</strong></p><p>Now go to the Properties page of your project, under &quot;Supported Cultures&quot; , and select which&nbsp;languages&nbsp;and culture will be supported. I started with Portuguese and Spanish. English was already checked.</p><p>After making that change and saving visual studio will have created one AppResources.resx file for each culture/language you added. You can now open those and change the values to the values on each specific language.</p><p>I may be wrong, but it seems Visual Studio copies the AppResources.resx file from the default language to each new language, so you might want to do this as the very last minute, after your app is ready, or you may need to enter each resource manually on each resx file.&nbsp;Unless&nbsp;there is some sort of refresh functionality I am not aware of.</p><p><strong>So in bullet points:</strong></p><ul><li>Use AppResource instead of &quot;text&quot; </li><li>Create each resource as you go on the default resource file </li><li>Choose your languages at the project Properties page </li><li>Translate each&nbsp;resource on their language specific resx files. </li></ul><p>Done! Easy huh?</p><p>Hope this helps some people. As usual, let me know if I screwed up something.&nbsp;Thanks!</p><p>&nbsp;</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Localizing-Windows-Phone-8-applications/3a60baa5e3944ee6ab34a14a01561709#3a60baa5e3944ee6ab34a14a01561709</link>
		<pubDate>Fri, 18 Jan 2013 20:45:30 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Localizing-Windows-Phone-8-applications/3a60baa5e3944ee6ab34a14a01561709#3a60baa5e3944ee6ab34a14a01561709</guid>
		<dc:creator>Mauricio Feijo</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Mauricio Feijo/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - Localizing Windows Phone 8 applications</title>
		<description><![CDATA[<p>Does anyone know whats going on with the formatting?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/Localizing-Windows-Phone-8-applications/9c5e535df32d4dc782b5a14a015783f6#9c5e535df32d4dc782b5a14a015783f6</link>
		<pubDate>Fri, 18 Jan 2013 20:50:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/Localizing-Windows-Phone-8-applications/9c5e535df32d4dc782b5a14a015783f6#9c5e535df32d4dc782b5a14a015783f6</guid>
		<dc:creator>Mauricio Feijo</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Mauricio Feijo/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>