Skip to content

Commit d322d13

Browse files
committed
add translations catalog and then resetting local numeric to C so that it doesn't cause parseFloat problems HaxeFoundation/hxcpp#762
1 parent 876075f commit d322d13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hx/widgets/App.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class App extends AppConsole {
2626

2727
if (systemLanguage != 1) {
2828
locale = new Locale(systemLanguage);
29+
Locale.addCatalogLookupPathPrefix("locale");
30+
locale.addCatalog("wxstd");
31+
untyped __cpp__("setlocale(LC_NUMERIC, \"C\")");
2932
}
3033
//setCLocale();
3134
}

0 commit comments

Comments
 (0)