Merge pull request #159 from kruland2607/master
Remove dependency on SwingPreferences.
This commit is contained in:
commit
e98695bcf6
@ -5,14 +5,13 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import net.sf.openrocket.gui.util.SwingPreferences;
|
|
||||||
|
|
||||||
public class L10nPropertyReport {
|
public class L10nPropertyReport {
|
||||||
|
|
||||||
|
private static String[] supportedLocales = new String[] { "en", "de", "es", "fr", "it", "ru", "cs", "pl", "ja", "pt" };
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
|
||||||
Properties english;
|
Properties english;
|
||||||
@ -28,9 +27,7 @@ public class L10nPropertyReport {
|
|||||||
System.out.println("en contains " + english.keySet().size());
|
System.out.println("en contains " + english.keySet().size());
|
||||||
|
|
||||||
|
|
||||||
for (Locale l : SwingPreferences.getSupportedLocales()) {
|
for (String localename : supportedLocales) {
|
||||||
|
|
||||||
String localename = l.getLanguage();
|
|
||||||
|
|
||||||
if ("en".equals(localename)) {
|
if ("en".equals(localename)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user