Stuck: Can't get localization of App Title to work
Hi everyone,
I'm stuck: I tried to localize my App Title. I tried according to [url]http://msdn.microsoft.com/en-us/library/ff967550(v=VS.92).aspx[/url], having a neutral language of de-DE and an additional language of en-US.
Now my app always has an english title, but the contents are correctly displayed according to the selected display language.
I tried a lot of things, like using region neutral languages (DE) or swapping neutral and additional language but I_m stuck with the problem.
My VS is english, but I don't know how that can influence the app, because I inspected the xap package and there is no trace of english hidden as far as I can see.
Has anyone experienced the same problem and maybe found some clues?
Thomas
Re: Stuck: Can't get localization of App Title to work
Hello,
Did you try "forcing" the culture thread in the App.xaml.cs file in InitializeLanguage ?
Try something like
System.Globalization.CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("de");
System.Globalization.CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("de");
Re: Stuck: Can't get localization of App Title to work
Hi WPMorocco,
I didn't try but I don't think that can help as the app title is not generated at runtime of my app. It's read from a resource-only DLL that has to be linked by the OS.
Thomas
Re: Stuck: Can't get localization of App Title to work
Got it!
I compared my project to the new MSDN Globalization sample ([url]http://code.msdn.microsoft.com/wpapps/Globalization-Sample-ef20151f[/url]) and found two differences. I think the second one was most important:
1) In all resource DLLs all resources had the en-US language tag. I had used the language tag of my neutral language, de-DE.
2) A copy of the AppResLib.dll with the language neutral code+.mui appended (AppResLib.dll.0407.mui) was in the project and the xap package. I had had just the AppResLib.dll and the secondary dll (AppResLib.dll.0409.mui).
HTH,
Thomas
Re: Stuck: Can't get localization of App Title to work
Worth creating a wiki "tip" for this?
Re: Stuck: Can't get localization of App Title to work
Sure.
I noticed many people had this problem but often no solution was found.
Might guide some people searching for a tip to the wiki ...
I changed one more thing in the resource dlls and the corresponding app manifest but want to wait for the store approval of my app update to see if it has worked.
Thomas
Re: Stuck: Can't get localization of App Title to work
Thanks. Let me know when you've created one and I can do a subedit for you (assuming that is OK?)
Re: Stuck: Can't get localization of App Title to work
Hamish,
you'll find the article here: [url]http://www.developer.nokia.com/Community/Wiki/How_to_solve_problems_localizing_the_app_name[/url]
Thomas
Re: Stuck: Can't get localization of App Title to work
[QUOTE=influencer;907469]Hamish,
you'll find the article here: [url]http://www.developer.nokia.com/Community/Wiki/How_to_solve_problems_localizing_the_app_name[/url]
Thomas[/QUOTE]
Thanks for sharing Thomas. Nice article.
Re: Stuck: Can't get localization of App Title to work
Much appreciated. Of course I now find myself too busy to check it properly. Will add it to the list