class LocalizedText {

    public static String[] separateLocale(String localeRepresentation) {
            List<String> ret = new ArrayList<String>(3);
            int start = 0;
            do {
                    int end = localeRepresentation.indexOf(lang_sep, start);
                    if(ret.size()==2 || end==-1) {
                            if(start<localeRepresentation.length()) {
                                ret.add(localeRepresentation.substring(start));
                            }
                            break;
                    } else {
                            ret.add(localeRepresentation.substring(start,end));
                    }
                    start = end + 1;
            } while(start!=0);
            return ret.toArray(new String[ret.size()]);
    }

      LocalizedText(String string, Locale l);

}