Localizing Windows Store app not working? Read this.

Tweet about this on TwitterShare on FacebookShare on RedditShare on Google+Email this to someonePin on Pinterest

I just wasted a rather large amount of time on something really stupid – so maybe this quick post can save someone else.

I needed to localize a Windows Store (8.1) app and I had an “AppResources.resx” file from the Windows Phone version which had all the strings. I followed this MSDN guide on how the new localization stuff works in Windows Store apps.

In that guide, section 1.C.V  says the following:
”If you have .resx files with only string resources from previous .NET projects, select Add > Existing Item…, add the .resx file, and rename it to .resw.”

So that’s exactly what I did to convert my old resource file into the new .resw style, because, you know, I trust that Microsoft’s docs are correct. Hours later after none of my TextBlocks ever reading from the resource file I re-read the guide and decided to just create a new .resw file – and hey, it worked!

TL;DR: Microsoft lies, don’t use your old .resx file – create a new .resw file and copy the values across.

Tweet about this on TwitterShare on FacebookShare on RedditShare on Google+Email this to someonePin on Pinterest