Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin.forms resx localization is not working on android. AppResource.MyString returns empty string

$
0
0

Looks like xamarin.forms resx localization is broken. I followed the instructions here and with the latest sample template. But everytime access the loc string it returns empty string.

    <?xml version="1.0" encoding="utf-8"?>
    <root>
        <resheader name="resmimetype">
            <value>text/microsoft-resx</value>
        </resheader>
        <resheader name="version">
            <value>2.0</value>
        </resheader>
        <resheader name="reader">
            <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
        </resheader>
        <resheader name="writer">
            <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
        </resheader>

        <data name="HomeMenu2" xml:space="preserve">
            <value>Home2</value>
        </data>
    </root>

And this is how i am accessing it

label.Text = AppResources.HomeMenu2;

Is this known issue?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>