[英]country-language code (ISO 3166) in actionscript
有沒有辦法像我在objectiveC中那樣用鋅在動作腳本中獲取ISO 3166中的國家語言代碼(例如:US_en):
NSString* language = [[NSLocale preferredLanguages] objectAtIndex:0];
NSString *locale = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode];
NSString *updateLocaleLanguage =[NSString stringWithFormat:@"%@_%@",locale,language];
對。 您需要Capabilities類: http : //help.adobe.com/zh_CN/FlashPlatform/reference/actionscript/3/flash/system/Capabilities.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.