changeset 55:6d1acb32839d

get locale in right formatting
author Frank Benoit <benoit@tionex.de>
date Sun, 13 Apr 2008 16:37:23 +0200
parents a6683645b0d7
children ef6c06252a87
files dwtx/jface/bindings/BindingManager.d
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwtx/jface/bindings/BindingManager.d	Sat Apr 12 17:53:06 2008 +0200
+++ b/dwtx/jface/bindings/BindingManager.d	Sun Apr 13 16:37:23 2008 +0200
@@ -60,6 +60,7 @@
 alias tango.text.Text.Text!(char) StringBuffer;
 import tango.text.convert.Format;
 import tango.text.locale.Core;
+static import tango.text.Util;
 
 /**
  * <p>
@@ -308,8 +309,9 @@
         triggerConflicts = new HashSet!(Object);
         bindingErrors = new HashSet!(Object);
         cachedBindings = new HashMap!(Object,Object);
-        locale = /+Locale+/Culture.current().toString();
+        locale = tango.text.Util.replace( Culture.current().toString().dup, '-', '_' );
         locales = expand(locale, LOCALE_SEPARATOR);
+
         platform = DWT.getPlatform();
         platforms = expand(platform, Util.ZERO_LENGTH_STRING);
         if (contextManager is null) {