Blame SOURCES/kdelibs-4.8.4-kjs-locale.patch

92cace
diff -up kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp.me kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp
92cace
--- kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp.me	2012-06-06 22:49:52.542044112 +0200
92cace
+++ kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp	2012-07-12 11:52:50.973049316 +0200
92cace
@@ -261,7 +261,13 @@ JSValue *Navigator::getValueProperty(Exe
92cace
   case BrowserLanguage:
92cace
   case Language:
92cace
   case UserLanguage:
92cace
-    return jsString(KGlobal::locale()->language());
92cace
+  {
92cace
+    QString l =  KGlobal::locale()->language();
92cace
+    if ( l.contains(QLatin1Char('_')) )
92cace
+      return jsString(l.replace(QLatin1Char('_'), QLatin1Char('-')));
92cace
+    else
92cace
+      return jsString(l + QLatin1Char('-') + KGlobal::locale()->country().toUpper());
92cace
+  }
92cace
   case UserAgent:
92cace
     return jsString(userAgent);
92cace
   case Platform: