Bug 31898 - [Android] Localization not working
Summary: [Android] Localization not working
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.2
Hardware: PC Windows
: Normal normal
Target Milestone: 6.0 (C6)
Assignee: Radek Doulik
Depends on:
Reported: 2015-07-13 17:10 UTC by Eder
Modified: 2015-08-03 16:04 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

attached solution works with fast-dev disabled (45.45 KB, image/png)
2015-07-15 17:01 UTC, CraigD

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Eder 2015-07-13 17:10:41 UTC
String inside a RESX file not beeing translated to pt-BR on Android.

Using Visual Studio 2015 RC + 
Windows 10 Build 10162 + 

Follow the sample to reproduce the issue: 


Steps to reproduce:

1 - Open this sample on an Android Lolipop device With the Language setted to 'Brazilian Portuguese' (pt-BR);

3 - Set a breakpoint on line 42 of App.cs class located on the shared project (PCL);

4 - Run the application an notice that the Bug.Resources.AppResource.Unit is not returned as located on the it'r related resx file.
Comment 1 Ram Chandra 2015-07-14 09:45:25 UTC
I have checked this issue and with the help of attached sample I am able to reproduce this issue.

Debug logs: https://gist.github.com/RamChBachkheti/22da007b36b46a75ae12
IDE logs:https://gist.github.com/RamChBachkheti/c73f2f07b0c5f82ea9b3
Adb logs: https://gist.github.com/RamChBachkheti/e8d449544912005640a2

Additional Info: This issue doesn't exist with iOS project.

Environment Info:


Microsoft Visual Studio Community 2015 RC
Version 14.0.22823.1 D14REL
Microsoft .NET Framework
Version 4.6.00057
Installed Version: Community
Xamarin   3.11.666.0 (ebae43a)
Xamarin.Android (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Xamarin.iOS (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Comment 2 CraigD 2015-07-15 17:00:41 UTC
The solution had 

Android project > Options > Build > Android Build > General > Fast assembly deployment

enabled. Testing should always be verified against release builds and on physical devices - but for debugging, you must turn OFF "Fast assembly deployment" in Android.

This is a known issue - see https://bugzilla.xamarin.com/show_bug.cgi?id=31720 and bug #31037.
Comment 3 CraigD 2015-07-15 17:01:31 UTC
Created attachment 12050 [details]
attached solution works with fast-dev disabled

duplicate of 31720 / 31307
Comment 4 Eder 2015-07-16 13:49:59 UTC
Just changed the "Fast assembly deployment" option and it worked.
Thanks CraigD.
Comment 5 Radek Doulik 2015-08-03 16:04:55 UTC
This is now fixed in master branch by 256f9c1fba16c26ca138137bb529a2ba189f3ba0

It rooted from the same issue as #31037