+ private static HashMap<String, Language> langs = new HashMap<String, Language>();
+
+ private HashMap<String, String> translations = new HashMap<String, String>();
+
+ private Locale locale;
+
+ private static Locale project(Locale locale) {
+ if (locale == null) {
+ return Locale.getDefault();
+ }
+ File file = new File("locale", locale.toString() + ".xml");
+ if ( !file.exists()) {
+ return new Locale(locale.getLanguage());
+ }
+ return locale;
+ }
+
+ protected Language(Locale locale) throws ParserConfigurationException, IOException, SAXException {
+ File file = new File("locale", locale.toString() + ".xml");
+ this.locale = locale;