Hit this link: http://people.apache.org/~aharui/LocaleTest/LocaleTest.swf

For me on Mac OSX 10.6.8, I can change the System Preferences/Language to
something else and only the last value (Capabilities.language) changes.

Source is below:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"
minHeight="600"
               applicationComplete="dotest()" >
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects)
here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import flash.globalization.LocaleID;
            import flash.globalization.StringTools;
            
            public function dotest():void
            {
                locales.text =
StringTools.getAvailableLocaleIDNames().toString();
                stringTools.text = new
StringTools(LocaleID.DEFAULT).actualLocaleIDName;
                localeid.text = new
LocaleID(LocaleID.DEFAULT).getLanguage();
                capabilities.text = Capabilities.language;
            }
        ]]>
    </fx:Script>
    <s:layout>
        <s:VerticalLayout />
    </s:layout>
    <s:Label id="locales" />
    <s:Label id="stringTools" />
    <s:Label id="localeid" />
    <s:Label id="capabilities" />
</s:Application>



>
>Mind sharing the test app?  Perhaps on gist.github.com?
>
>Thanks,
>Om

Reply via email to