File tree 3 files changed +348
-340
lines changed
3 files changed +348
-340
lines changed Original file line number Diff line number Diff line change 105
105
import java .util .TreeSet ;
106
106
import java .util .ResourceBundle ;
107
107
import java .util .Locale ;
108
+ import java .util .PropertyResourceBundle ;
108
109
//
109
110
110
111
import javax .swing .*;
@@ -907,13 +908,20 @@ public static Locale getSysLocale() {
907
908
loadProperties ();
908
909
909
910
// Load localized strings
910
- m_resources = ResourceBundle .getBundle (LANGTEXT , getLocale (getPropertyString (LANG )));
911
-
911
+ // m_resources = ResourceBundle.getBundle(LANGTEXT, getLocale(getPropertyString(LANG)));
912
+ try {
913
+ String resourceFile = "Strings_" + getLocale (getPropertyString (LANG )).getLanguage () + ".properties" ;
914
+ m_resources = new PropertyResourceBundle (new InputStreamReader (ToolDialog .class .getResourceAsStream (resourceFile ), "UTF-8" ));
915
+ }
916
+ catch (IOException iox ) {
917
+ iox .printStackTrace ();
918
+ }
919
+
912
920
// Load the property texts
913
921
m_propNames = new Properties ();
914
922
try {
915
923
String propFile = "names_" + getLocale (getPropertyString (LANG )).getLanguage () + ".prop" ;
916
- m_propNames .load (ToolDialog .class .getResourceAsStream (propFile ));
924
+ m_propNames .load (new InputStreamReader ( ToolDialog .class .getResourceAsStream (propFile ), "UTF-8" ));
917
925
}
918
926
catch (IOException iox ) {
919
927
iox .printStackTrace ();
You can’t perform that action at this time.
0 commit comments