19 package org.turro.i18n;
21 import java.util.Locale;
22 import java.util.MissingResourceException;
23 import java.util.ResourceBundle;
24 import java.util.concurrent.ConcurrentHashMap;
25 import java.util.logging.Level;
26 import java.util.logging.Logger;
27 import org.turro.i18n.migration.MigrateProperties;
40 if(keyLabelsMap ==
null) {
54 private void fillMap() {
55 for(String bundle : MigrateProperties.MIGRATE_BUNDLES) {
57 ResourceBundle rb = ResourceBundle.getBundle(bundle, Locale.forLanguageTag(
"en"));
58 for(String key : rb.keySet()) {
59 put(key, rb.getString(key));
61 ResourceBundle.clearCache();
62 }
catch(MissingResourceException ex) {
63 Logger.getLogger(I18nCompatibilityKey.class.getName()).log(Level.FINEST,
null, ex);
static I18nCompatibilityKey instance()