public void add(Translation tr) { Locale locale = tr.getLocale(); translations.put(locale.toString(), tr); if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage())) translations.put(tr.getLanguage(), tr); // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609 // Hebrew if ("iw".equals(locale.getLanguage())) translations.put("he", tr); // Indonesia if ("in".equals(locale.getLanguage())) translations.put("id", tr); }
public void add(Translation tr) { Locale locale = tr.getLocale(); translations.put(locale.toString(), tr); if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage())) translations.put(tr.getLanguage(), tr); // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609 // Hebrew if ("iw".equals(locale.getLanguage())) translations.put("he", tr); // Indonesia if ("in".equals(locale.getLanguage())) translations.put("id", tr); }
public void add(Translation tr) { Locale locale = tr.getLocale(); translations.put(locale.toString(), tr); if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage())) translations.put(tr.getLanguage(), tr); // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609 // Hebrew if ("iw".equals(locale.getLanguage())) translations.put("he", tr); // Indonesia if ("in".equals(locale.getLanguage())) translations.put("id", tr); }
public void add( Translation tr ) { Locale locale = tr.getLocale(); translations.put(locale.toString(), tr); if (!locale.getCountry().isEmpty() && !translations.containsKey(tr.getLanguage())) translations.put(tr.getLanguage(), tr); // Map old Java 'standard' to latest, Java is a bit ugly here: http://stackoverflow.com/q/13974169/194609 // Hebrew if ("iw".equals(locale.getLanguage())) translations.put("he", tr); // Indonesia if ("in".equals(locale.getLanguage())) translations.put("id", tr); }