l10n updates

This commit is contained in:
Sampo Niskanen 2011-01-20 06:28:33 +00:00
parent a55b0c6a80
commit 43bc79c899
3 changed files with 21 additions and 5 deletions

View File

@ -2,6 +2,14 @@
System properties used by OpenRocket:
=====================================
General options
---------------
openrocket.locale
Select the default locale to be used, for example "en_US".
If set to "xx", the logical keys will be displayed instead of the translated strings.
Logging options
---------------

View File

@ -14,6 +14,7 @@ import java.net.URI;
import java.net.URISyntaxException;
import java.net.URLEncoder;
import java.util.List;
import java.util.Locale;
import java.util.SortedSet;
import java.util.TreeSet;
@ -257,6 +258,7 @@ public class BugReportDialog extends JDialog {
sb.append("OpenRocket version: " + Prefs.getVersion() + "\n");
sb.append("OpenRocket source: " + Prefs.getBuildSource() + "\n");
sb.append("OpenRocket location: " + JarUtil.getCurrentJarFile() + "\n");
sb.append("Current default locale: " + Locale.getDefault() + "\n");
sb.append("System properties:\n");
// Sort the keys

View File

@ -104,11 +104,17 @@ public class Startup {
private static void checkDebugStatus() {
if (System.getProperty("openrocket.debug") != null) {
System.setProperty("openrocket.log.stdout", "VBOSE");
System.setProperty("openrocket.log.tracelevel", "VBOSE");
System.setProperty("openrocket.debug.menu", "true");
System.setProperty("openrocket.debug.mutexlocation", "true");
System.setProperty("openrocket.debug.motordigest", "true");
setPropertyIfNotSet("openrocket.log.stdout", "VBOSE");
setPropertyIfNotSet("openrocket.log.tracelevel", "VBOSE");
setPropertyIfNotSet("openrocket.debug.menu", "true");
setPropertyIfNotSet("openrocket.debug.mutexlocation", "true");
setPropertyIfNotSet("openrocket.debug.motordigest", "true");
}
}
private static void setPropertyIfNotSet(String key, String value) {
if (System.getProperty(key) == null) {
System.setProperty(key, value);
}
}