Package org.olat.core.util.i18n.devtools

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


      Locale mvLocale = i18nMgr.getLocaleOrDefault("de");
      String testTargetBundle =  "org.olat.core.util.i18n.junittestdata.devtools.target";
      // test before move
      Properties targetProperties = i18nMgr.getPropertiesWithoutResolvingRecursively(mvLocale, testTargetBundle);
      assertTrue(!targetProperties.isEmpty());
      tDMgr.moveLanguageTask(mvLocale, srcPath, targetPath, false);
      // test after move
      targetProperties = i18nMgr.getPropertiesWithoutResolvingRecursively(mvLocale, testTargetBundle);
      assertTrue(!targetProperties.isEmpty());
      //move language: source should NOT exist
      tDMgr.moveLanguageTask(mvLocale, srcPath, targetPath, true);
View Full Code Here


      tDMgr.moveLanguageTask(mvLocale, srcPath, targetPath, false);
      // test after move
      targetProperties = i18nMgr.getPropertiesWithoutResolvingRecursively(mvLocale, testTargetBundle);
      assertTrue(!targetProperties.isEmpty());
      //move language: source should NOT exist
      tDMgr.moveLanguageTask(mvLocale, srcPath, targetPath, true);
      String testSourceBundle =  "org.olat.core.util.i18n.junittestdata.devtools.source";
      Properties sourceProperties = i18nMgr.getPropertiesWithoutResolvingRecursively(mvLocale, testSourceBundle);
      assertTrue(sourceProperties.isEmpty());
    }
  }
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.