Hi @CraigDunn and @kjpou1
Just wanted to inform you ,
You can update the Manual of localization :
https://developer.xamarin.com/guides/cross-platform/xamarin-forms/localization/
The guide is only for winphone 8/8.1 SILVERLIGHT .
NOT for WP 8.1 WinRT.
(it's not working for WP8 winrt)
And i understood from you that the main support from you is for WP8 winRT (at least for cocossharp as i understood from @kjpou1
So.
You can add another Section for WP8.1 WinRT for localization Strings according to this guide:
suchan.cz/2013/09/shared-localization-for-windows-phone-8-and-windows-8-apps-using-pcl/
It's a small fix (you have only to add a Strings folder with locale folders under it (as in the guide)
with empty templated .resw files)
AND IT'S WORKING!
I checked it on CocosSharp and assuming it's also for XF.
you even don't need the platform implementation for WinPhone_Locale (for wp8.1 WinRT) ,
because the platform is looking for the current locale and search the folder names to match the locale name.
checked it for strings.
I believe for images is like in the guide (or even without renderer , must check it out)
Check it out.
Regards
Posts
Thanks @zahikramer, I just gave it a try
https://github.com/conceptdev/xamarin-forms-windows-preview/tree/master/UsingResxLocalization
Have not got the images figured out yet (and there seems to be some other weird behavior with the default English on Windows 8.1) but I could get it to work at least. Will investigate more later.
Good, Craig!
Saw the new project.
But i think you need to emphasize this is winPhone 8.1 WinRT and NOT Silverlight.
Because as you know there is winphone 8.0 / 8.1 SILVERLIGHT
and there is winphone 8.1 WinRT (don't know if there is also winphone 8.0 winrt)
This is what confused me at first, till i got it.
WinPhone 8.1 winRT is totally another platform with different libraries.
Maybe it's better to the public to notice this.
@CraigDunn
Hi Craig.
Just wanted to add also the procedure to localize the APP_NAME on WP8.1 winrt :
https://msdn.microsoft.com/en-us/library/hh454044.aspx
and here:
stackoverflow.com/questions/12759119/how-to-localize-the-display-name-of-an-app-for-the-windows-store
all you need to do (it's much easy on wp8.1 ) is :
1) on the manifest on Application Tab - enter on "Display Name" this string "ms-resource:App_Name" (where App_Name is a key resource in the LOCAL resources directory (you can't use AppResouces from the PCL! you have to enter into the dummy string as i post above, the key for App_Name (it can be any key , not only 'App_Name'))
2) the same thing on the "Packaging" Tab for "Package Display Name" field
You can update it in the user manual for the community.....
Regards
@CraigDunn
I'm also having problems with resource loading in WinRT. I've taken a look at your UsingResxLocalization project and it fails with:
DEP6810 : MdilXapCompile.exe failed with error code 1004. See log file '...MDILXapCompileLog.txt' for more details.
The issue in connect now gives a 404:
https://connect.microsoft.com/VisualStudio/feedback/details/991028/issue-using-resx-files-on-winrt-apps-windows-phone-and-windows
Is there an update on this please?
I have a Xamarin.Forms app where I have implementede the localization like Xamarin recommend in this link
https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/
My Android app works perfect and I now want to localize my Windows Phone 8.1 app. I have tried everything suggested in this post, but I still get the "System.Resources.MissingManifestResourceException" no matter I do :-(
What to do???
BTW. when I try to run the app in the simulator everything works?????
Hi Claus,
I have your same problem ("System.Resources.MissingManifestResourceException") and I'm working to a solution, based on this post: https://blogs.msdn.microsoft.com/philliphoff/2014/11/19/missingmanifestresourceexception-when-using-portable-class-libraries-within-winrt/
I'll write here when (and if) I'll solve this puzzle.
Hi @CraigDunn and all,
I resolved the ("System.Resources.MissingManifestResourceException") issue on code (FirstPage.cs) and also on XAML (FirstPageXaml with TraslateExtension) for all the target platforms (iOS, Android, Windows Phone SL, Windows Phone Store, Windows Store and UWP). I've created a demo solution on GitHub (https://github.com/ncarandini/XFormsWinRTLocalization).
You can read the details on the post I published on my blog:
blog.tpcware.com/2016/06/xamarin-forms-localization/
Nice work @Nick60 - going to check it out soon
Thanks for updating the thread - I'm sure others will find this useful!