| 86 | |
| 87 | |
| 88 | static private String[] listSupported() { |
| 89 | // List of languages in alphabetical order. (Add yours here.) |
| 90 | // Also remember to add it to build/shared/lib/languages/languages.txt. |
| 91 | final String[] SUPPORTED = { |
| 92 | "ar", // Arabic |
| 93 | "de", // German, Deutsch |
| 94 | "en", // English |
| 95 | "el", // Greek |
| 96 | "es", // Spanish |
| 97 | "fr", // French, Français |
| 98 | "it", // Italiano, Italian |
| 99 | "ja", // Japanese |
| 100 | "ko", // Korean |
| 101 | "nl", // Dutch, Nederlands |
| 102 | "pt", // Portuguese |
| 103 | "ru", // Russian |
| 104 | "tr", // Turkish |
| 105 | "uk", // Ukrainian |
| 106 | "zh" // Chinese |
| 107 | }; |
| 108 | return SUPPORTED; |
| 109 | |
| 110 | /* |
| 111 | // come back to this when bundles are placed outside the JAR |
| 112 | InputStream input = getClass().getResourceAsStream(LISTING); |
| 113 | String[] lines = PApplet.loadStrings(input); |
| 114 | ArrayList<String> list = new ArrayList<String>(); |
| 115 | for (String line : lines) { |
| 116 | int index = line.indexOf('#'); |
| 117 | if (index != -1) { |
| 118 | line = line.substring(0, index); |
| 119 | } |
| 120 | line = line.trim(); |
| 121 | list.add(line); |
| 122 | } |
| 123 | return list.toArray(new String[0]); |
| 124 | */ |
| 125 | } |
| 126 | |
| 127 | |
| 128 | /** Read the saved language */ |