English 中文(简体)
Adobe AIR: detect en_GB locale
原标题:

Is there a way to detect if the user is running the AIR application under en_GB locale on Windows? Capabilities.language returns only "en" and Capabilities.languages[0] returns "en_US" :(

最佳回答

Unfortunately, no. But it will be something soon (sorry, can t tell you more now)!

Check here: http://www.adobe.com/cfusion/event/index.cfm?event=detail&id=1489921

"Get the inside scoop on the new mobile features in Flash Player 10.1, as well as the new global error handling, UI, globalization, and media playback features."

问题回答

Now the globalization features are out in Flash Player 10.1 you can use them. Check out the documentation for them here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/globalization/package-detail.html

and more info here: http://www.adobe.com/devnet/flashplayer/articles/flash_globalization_package.html#articlecontentAdobe_numberedheader

You can easily get the default local as a string like so:

new StringTools(LocaleID.DEFAULT).actualLocaleIDName; // returns en-GB if region is United Kingdom on OSX




相关问题
.net Satellite assembly?

How can i create satellite assemblies in .net 3.5? I have a nativetext.resx file in english and want to create assemblies for french and italian in different folders like it --> nativetext.resources....

Access system:string resource dictionary XAML in C#

How do I access the contents in a resource dictionary using C#? For example, here is my code in XAML: <system:String x:Key="NewGroup">New Group Name</system:String> And I want to access ...

Localization in Prism WPF App

I m looking for the best way to localize a Prism 2 WPF app that might have several modules ported to Silverlight 3. Has anyone successfully localized a Prism 2 WPF app with several modules?

page content in multiple languages

I want to display content in more than one languages in a page. For example all menus are in English and content of post in local language (ie. Hindi). Contents on page are stored in database. For ...

Localization problem

I need to make a form that have to suport two languages (for now). the two languages dont have the same look and also half of the form is not a like but it still have some similiarity beetwen them. ...

determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

HOW TO MAKE localization?

I have a question about localization how can i do localization lets say that i have a dropdown list that holds the available languages: English,french and arabic and I have a label which get it says "...

热门标签