Package com.aaspring.util.locale

Examples of com.aaspring.util.locale.Bundle


      while (keys.hasMoreElements()) {
        String key = keys.nextElement();
        Map<Locale, String> values = new LinkedHashMap<Locale, String>(
            bundles.size());
        for (int j = 0; j < bundles.size(); j++) {
          Bundle bundle = bundles.get(j);
          values.put(bundle.getBundleProps()
              .getFileAccessorProperties().getLocale(), bundle
              .getValue(key));
        }
        itemProcessor.processItem(new LocaleItem(key, values, lf));
      }
    }
View Full Code Here


            .get(sourceLocale);
        FileAccessorProperties fap = new FileAccessorProperties(
            propsOfPath, path.getType(), localeMapping
                .get(sourceLocale));

        Bundle bundle = BundleFactory.createEmptyBundle(
            new BundleProps(fap), lf.getType().value());
        for (String key : keyValueMap.keySet()) {
          bundle.setValue(key, keyValueMap.get(key));
        }
        try {
          bundle.exportCurrent(outStreamMap.get(fap));
        } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
View Full Code Here

TOP

Related Classes of com.aaspring.util.locale.Bundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.