Merge in l10n changes.
This commit is contained in:
parent
26cfe854f5
commit
8f9dc93705
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1576
core/resources/l10n/messages_pt.properties
Normal file
1576
core/resources/l10n/messages_pt.properties
Normal file
File diff suppressed because it is too large
Load Diff
@ -38,7 +38,7 @@ public class SwingPreferences extends net.sf.openrocket.startup.Preferences {
|
||||
private static final List<Locale> SUPPORTED_LOCALES;
|
||||
static {
|
||||
List<Locale> list = new ArrayList<Locale>();
|
||||
for (String lang : new String[] { "en", "de", "es", "fr", "it", "ru", "cs", "pl" }) {
|
||||
for (String lang : new String[] { "en", "de", "es", "fr", "it", "ru", "cs", "pl", "ja", "pt" }) {
|
||||
list.add(new Locale(lang));
|
||||
}
|
||||
SUPPORTED_LOCALES = Collections.unmodifiableList(list);
|
||||
@ -225,17 +225,17 @@ public class SwingPreferences extends net.sf.openrocket.startup.Preferences {
|
||||
}
|
||||
|
||||
public File getDefaultUserComponentDirectory() {
|
||||
|
||||
|
||||
File compdir = new File(SystemInfo.getUserApplicationDirectory(), "Components");
|
||||
|
||||
|
||||
if (!compdir.isDirectory()) {
|
||||
compdir.mkdirs();
|
||||
}
|
||||
|
||||
if( !compdir.isDirectory() ) {
|
||||
if (!compdir.isDirectory()) {
|
||||
return null;
|
||||
}
|
||||
if( !compdir.canRead() ) {
|
||||
if (!compdir.canRead()) {
|
||||
return null;
|
||||
}
|
||||
return compdir;
|
||||
|
Loading…
x
Reference in New Issue
Block a user