Package org.olat.core.util.i18n

Examples of org.olat.core.util.i18n.I18nManager$ThreadLocalLocale


      Set lkeys = locdescs.keySet();
      String[] languageKeys = new String[lkeys.size()];
      String[] languageValues = new String[lkeys.size()];
      // fetch languages
      int p = 0;
      I18nManager i18n = I18nManager.getInstance();
      for (Iterator iter = lkeys.iterator(); iter.hasNext();) {
        String key = (String) iter.next();
        languageKeys[p] = key;
        languageValues[p] = locdescs.get(key);
        p++;
View Full Code Here


   * Set users language settings
   * @param l new language
   */
  public void setLanguage(String l) {
    // validate the language; fallback to default
    I18nManager i18n = I18nManager.getInstance();
    this.language = i18n.getLocaleOrDefault(l).toString();
  }
View Full Code Here

TOP

Related Classes of org.olat.core.util.i18n.I18nManager$ThreadLocalLocale

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.