Examples of renameLanguageTask()


Examples of org.olat.core.util.i18n.devtools.TranslationDevManager.renameLanguageTask()

      i18nMgr.saveOrUpdateI18nItem(i18nItem, "I have to go");
      i18nMgr.setAnnotation(i18nItem, "an annotation");
      i18nMgr.setKeyPriority(testSourceBundle, key, 100);
      // copy to target
      Locale yyLocale = new Locale("yy");   
      tDMgr.renameLanguageTask(xxLocale, yyLocale);
      i18nMgr.clearCaches();
      // test
      Properties deletedProperties = i18nMgr.getPropertiesWithoutResolvingRecursively(xxLocale, testSourceBundle);
      assertTrue(deletedProperties.isEmpty());   
      Properties targetProp = i18nMgr.getPropertiesWithoutResolvingRecursively(yyLocale, testSourceBundle);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.