cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [3/5] git commit: CB-4602 CB-6490 CB-4822 WP Globalization
Date Fri, 23 May 2014 06:08:36 GMT
CB-4602 CB-6490 CB-4822 WP Globalization

BCP-47 compliance for getLocaleName, getPreferredLanguage.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/commit/86bd57c3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/tree/86bd57c3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/diff/86bd57c3

Branch: refs/heads/master
Commit: 86bd57c39bee21116ce6ced42254f34be602c9cd
Parents: 693a6f2
Author: Staci Cooper <smcooper@us.ibm.com>
Authored: Thu May 15 12:34:28 2014 -0700
Committer: Staci Cooper <smcooper@us.ibm.com>
Committed: Thu May 15 12:34:28 2014 -0700

----------------------------------------------------------------------
 src/wp/Globalization.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization/blob/86bd57c3/src/wp/Globalization.cs
----------------------------------------------------------------------
diff --git a/src/wp/Globalization.cs b/src/wp/Globalization.cs
index ffe27ec..cac1e03 100644
--- a/src/wp/Globalization.cs
+++ b/src/wp/Globalization.cs
@@ -435,7 +435,7 @@ namespace WPCordovaClassLib.Cordova.Commands
         {
             try
             {
-                var locale = RegionInfo.CurrentRegion.TwoLetterISORegionName;
+                var locale = CultureInfo.CurrentCulture.Name;
                 PluginResult result = new PluginResult(PluginResult.Status.OK, this.WrapIntoJSON(locale));
                 this.DispatchCommandResult(result);
             }
@@ -453,7 +453,7 @@ namespace WPCordovaClassLib.Cordova.Commands
         {
             try
             {
-                var language = CultureInfo.CurrentCulture.TwoLetterISOLanguageName;
+                var language = CultureInfo.CurrentUICulture.Name;
                 PluginResult result = new PluginResult(PluginResult.Status.OK, this.WrapIntoJSON(language));
                 this.DispatchCommandResult(result);
             }


Mime
View raw message