Examples of ResourceBundleManager


Examples of org.apache.felix.webconsole.internal.i18n.ResourceBundleManager

                    + pluginClassName + ". Reason: " + t);
            }
        }

        // the resource bundle manager
        resourceBundleManager = new ResourceBundleManager(getBundleContext());

        // start the configuration render, providing the resource bundle manager
        //ConfigurationRender cr = new ConfigurationRender(resourceBundleManager);
        //cr.activate(bundleContext);
        //osgiManagerPlugins.add(cr);
View Full Code Here

Examples of org.apache.felix.webconsole.internal.i18n.ResourceBundleManager

                    + pluginClassName + ". Reason: " + t);
            }
        }

        // the resource bundle manager
        resourceBundleManager = new ResourceBundleManager(getBundleContext());

        // start the configuration render, providing the resource bundle manager
        //ConfigurationRender cr = new ConfigurationRender(resourceBundleManager);
        //cr.activate(bundleContext);
        //osgiManagerPlugins.add(cr);
View Full Code Here

Examples of org.exoplatform.services.resources.ResourceBundleManager

      setProperty(PortalProperties.SESSION_ALIVE, type);
   }
  
   private void localizePageNavigation(PageNavigation nav,Locale locale)
   {
      ResourceBundleManager mgr = getApplicationComponent(ResourceBundleManager.class);
      if (nav.getOwnerType().equals(PortalConfig.USER_TYPE))
         return;
      ResourceBundle res = mgr.getNavigationResourceBundle(locale.getLanguage(), nav.getOwnerType(), nav.getOwnerId());
      for (PageNode node : nav.getNodes())
      {
         resolveLabel(res, node);
      }
   }
View Full Code Here

Examples of org.exoplatform.services.resources.ResourceBundleManager

      return (page != null);
   }

   public void localizeNavigations()
   {
      ResourceBundleManager i18nManager = getApplicationComponent(ResourceBundleManager.class);
      Locale locale = getLocale();
     
      for(PageNavigation nav : this.getNavigations())
      {
         PageNavigationUtils.localizePageNavigation(nav, locale, i18nManager);
View Full Code Here

Examples of org.exoplatform.services.resources.ResourceBundleManager

      setProperty(PortalProperties.SESSION_ALIVE, type);
   }
  
   private void localizePageNavigation(PageNavigation nav,Locale locale)
   {
      ResourceBundleManager mgr = getApplicationComponent(ResourceBundleManager.class);
      if (nav.getOwnerType().equals(PortalConfig.USER_TYPE))
         return;
      ResourceBundle res = mgr.getNavigationResourceBundle(locale.getLanguage(), nav.getOwnerType(), nav.getOwnerId());
      for (PageNode node : nav.getNodes())
      {
         resolveLabel(res, node);
      }
   }
View Full Code Here

Examples of org.exoplatform.services.resources.ResourceBundleManager

      return (page != null);
   }

   public void localizeNavigations()
   {
      ResourceBundleManager i18nManager = getApplicationComponent(ResourceBundleManager.class);
      Locale locale = getLocale();
     
      for(PageNavigation nav : this.getNavigations())
      {
         PageNavigationUtils.localizePageNavigation(nav, locale, i18nManager);
View Full Code Here

Examples of org.gatein.common.i18n.ResourceBundleManager

            }
         }
      }

      //
      ResourceBundleManager bundleManager = PortletResourceBundleFactory.createResourceBundleManager(info.getBundleManager(), info);

      // Portlet config object
      PortletConfig config = new PortletConfigImpl(info, application.info, application.portletContext, bundleManager);

      // Finally initialize the porlet instance
View Full Code Here

Examples of org.gatein.common.i18n.ResourceBundleManager

               modeInfo = new ContainerModeInfo(mode);
            }
         }
         else
         {
            ResourceBundleManager bundleMgr = context.getBundleManager();

            //
            LocalizedString displayName = bundleMgr.getLocalizedValue(
               "javax.portlet.app.custom-portlet-mode." + mode + ".decoration-name",
               "" + mode);

            //
            if (description != null)
View Full Code Here

Examples of org.gatein.common.i18n.ResourceBundleManager

   }

   private ContainerParameterInfo build(PublicRenderParameterMetaData parameterMD)
   {
      QName name = getName(parameterMD.getQname(), parameterMD.getName());
      ResourceBundleManager bundleMgr = context.getBundleManager();

      LocalizedString description = bundleMgr.getLocalizedValue(
         "javax.portlet.app.public-render-parameter." + name + ".description",
         getDefaultStringFor(parameterMD.getDescription(), "Description of public render parameter " + name));

      //
      return new ContainerParameterInfo(
View Full Code Here

Examples of org.gatein.common.i18n.ResourceBundleManager

   }

   private ContainerEventInfo build(EventDefinitionMetaData eventDefinitionMD) throws NoSuchClassException
   {
      QName name = getName(eventDefinitionMD.getQname(), eventDefinitionMD.getName());
      ResourceBundleManager bundleMgr = context.getBundleManager();

      //
      String valueType = eventDefinitionMD.getValueType();
      ContainerTypeInfo type = null;
      if (valueType != null)
      {
         Class clazz = context.getClass(valueType);
         type = new ContainerTypeInfo(clazz);
      }

      //
      LocalizedString displayName = bundleMgr.getLocalizedValue(
         "javax.portlet.app.event-definition." + name + ".display-name",
         "Event " + name);
      LocalizedString description = bundleMgr.getLocalizedValue(
         "javax.portlet.app.event-definition." + name + ".description",
         getDefaultStringFor(eventDefinitionMD.getDescription(), "Description of event " + name));

      //
      return new ContainerEventInfo(name, type, displayName, description);
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.