01: package nl.hippo.cms.wizard.i18n;
02:
03: import java.util.List;
04:
05: import nl.hippo.cms.wizard.Constants;
06:
07: public class I18NHelper {
08: //private List keys = new ArrayList();
09:
10: public static String idToKey(String id) {
11: String key = id.replaceAll(Constants.ID_DELIMITER,
12: Constants.I18N_DELIMITER);
13: //if(!keys.contains(key))
14: //keys.add(key);
15: return key;
16: }
17:
18: public static String idToKey(String id, String suffix) {
19: return idToKey(id + Constants.I18N_DELIMITER + suffix);
20: }
21:
22: public List getAllKeys() {
23: //return keys;
24: return null;
25: }
26: }
|