Examples of sortI18nItems()


Examples of org.olat.core.util.i18n.I18nManager.sortI18nItems()

      boolean includeBundlesChildren = missingBundlesIncludeBundlesChildrenSwitch.isSelected(0);
      // use the fallback locale because it won't find the key if not already translated in the searchLocale
      List<I18nItem> i18nItems = i18nMgr.findMissingI18nItems(I18nModule.getFallbackLocale(), targetLocale, bundle,
          includeBundlesChildren);
      boolean prioSortEnabled = missingBundlesPrioritySortSwitch.isSelected(0);
      i18nMgr.sortI18nItems(i18nItems, prioSortEnabled, prioSortEnabled);
      deactivateAndDisposeChildCrumbController();
      // first the list controller
      TranslationToolI18nItemListCrumbController i18nItemlistCrumbCtr = new TranslationToolI18nItemListCrumbController(ureq,
          getWindowControl(), i18nItems, referenceLocale, customizingMode);
      activateAndListenToChildCrumbController(i18nItemlistCrumbCtr);
View Full Code Here

Examples of org.olat.core.util.i18n.I18nManager.sortI18nItems()

      String bundle = existingBundlesSelection.getSelectedKey();
      if (bundle.equals(ALL_BUNDLES_IDENTIFYER)) bundle = null;
      boolean includeBundlesChildren = existingBundlesIncludeBundlesChildrenSwitch.isSelected(0);
      List<I18nItem> i18nItems = i18nMgr.findExistingI18nItems(targetLocale, bundle, includeBundlesChildren);
      boolean prioSortEnabled = existingBundlesPrioritySortSwitch.isSelected(0);
      i18nMgr.sortI18nItems(i18nItems, prioSortEnabled, prioSortEnabled);
      deactivateAndDisposeChildCrumbController();
      // first the list controller
      TranslationToolI18nItemListCrumbController i18nItemlistCrumbCtr = new TranslationToolI18nItemListCrumbController(ureq,
          getWindowControl(), i18nItems, referenceLocale, customizingMode);
      activateAndListenToChildCrumbController(i18nItemlistCrumbCtr);
View Full Code Here

Examples of org.olat.core.util.i18n.I18nManager.sortI18nItems()

      if (bundle.equals(ALL_BUNDLES_IDENTIFYER)) bundle = null;
      boolean includeBundlesChildren = allBundlesIncludeBundlesChildrenSwitch.isSelected(0);
      List<I18nItem> i18nItems = i18nMgr.findExistingAndMissingI18nItems(referenceLocale, targetLocale, bundle,
          includeBundlesChildren);
      boolean prioSortEnabled = allBundlesPrioritySortSwitch.isSelected(0);
      i18nMgr.sortI18nItems(i18nItems, prioSortEnabled, prioSortEnabled);
      deactivateAndDisposeChildCrumbController();
      // first the list controller
      TranslationToolI18nItemListCrumbController i18nItemlistCrumbCtr = new TranslationToolI18nItemListCrumbController(ureq,
          getWindowControl(), i18nItems, referenceLocale, customizingMode);
      activateAndListenToChildCrumbController(i18nItemlistCrumbCtr);
View Full Code Here

Examples of org.olat.core.util.i18n.I18nManager.sortI18nItems()

        if (I18nModule.isOverlayEnabled() && !I18nModule.isTransToolEnabled()) {
          // use overlay locale when in customizing mode
          targetLocale = I18nModule.getOverlayLocales().get(targetLocale)
        }
        List<I18nItem> i18nItems = i18nMgr.findExistingAndMissingI18nItems(referenceLocale, targetLocale, bundle, false);
        i18nMgr.sortI18nItems(i18nItems, true, true); // sort with priority
        // Initialize inline translation controller
        if (i18nItemEditCtr != null) removeAsListenerAndDispose(i18nItemEditCtr);
        // Disable inline translation markup while inline translation tool is
        // running -
        // must be done before instantiating the translation controller
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.