Package org.olat.core.gui.translator

Examples of org.olat.core.gui.translator.PackageTranslator.translate()


        return trans.translate("tool.description");
      }

      public String getActionText(Locale loc) {
        Translator trans = new PackageTranslator(PACKAGE, loc);
        return trans.translate("tool.actiontext");
      }

      public Controller createController(UserRequest ureq, WindowControl wControl, Object arg) {
        if (arg instanceof ICourse) {
          ICourse course = (ICourse) arg;
View Full Code Here


    Controller controller;
    // Do not allow guests to start questionnaires
    Roles roles = ureq.getUserSession().getRoles();
    if (roles.isGuestOnly()) {
      Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
      RepositoryEntry repositoryEntry = ne.getCourseNode().getReferencedRepositoryEntry();
      OLATResourceable ores = repositoryEntry.getOlatResource();
View Full Code Here

    // Do not allow guests to start questionnaires
    Roles roles = ureq.getUserSession().getRoles();
    if (roles.isGuestOnly()) {
      Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
      RepositoryEntry repositoryEntry = ne.getCourseNode().getReferencedRepositoryEntry();
      OLATResourceable ores = repositoryEntry.getOlatResource();
      Long resId = ores.getResourceableId();
View Full Code Here

        AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
        IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
        controller = new IQRunController(userCourseEnv, this.getModuleConfiguration(), sec, ureq, wControl, this);
      } else {
        Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
        String title = trans.translate("editor.lock.title");
        String message = trans.translate("editor.lock.message");
        controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
      }
    }
    Controller ctrl = TitledWrapperHelper.getWrapper(ureq, wControl, controller, this, "o_iqsurv_icon");
View Full Code Here

        IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
        controller = new IQRunController(userCourseEnv, this.getModuleConfiguration(), sec, ureq, wControl, this);
      } else {
        Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
        String title = trans.translate("editor.lock.title");
        String message = trans.translate("editor.lock.message");
        controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
      }
    }
    Controller ctrl = TitledWrapperHelper.getWrapper(ureq, wControl, controller, this, "o_iqsurv_icon");
    return new NodeRunConstructionResult(ctrl);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public String getLinkText(Locale locale) {
    PackageTranslator translator = new PackageTranslator(PACKAGE, locale);
    return translator.translate("title_ll");
  }

  /**
   * {@inheritDoc}
   */
 
View Full Code Here

   *
   */
  public AdminSite(Locale loc) {
    Translator trans = new PackageTranslator(PACKAGE, loc);
   
    origNavElem = new DefaultNavElement(trans.translate("topnav.admin"), trans.translate("topnav.admin.alt"), "o_site_admin");
    curNavElem = new DefaultNavElement(origNavElem);
  }

  /**
   * @see org.olat.navigation.SiteInstance#getNavElement()
View Full Code Here

   *
   */
  public AdminSite(Locale loc) {
    Translator trans = new PackageTranslator(PACKAGE, loc);
   
    origNavElem = new DefaultNavElement(trans.translate("topnav.admin"), trans.translate("topnav.admin.alt"), "o_site_admin");
    curNavElem = new DefaultNavElement(origNavElem);
  }

  /**
   * @see org.olat.navigation.SiteInstance#getNavElement()
View Full Code Here

  /**
   *
   */
  public UserAdminSite(Locale loc) {
    Translator trans = new PackageTranslator(PACKAGE, loc);
    origNavElem = new DefaultNavElement(trans.translate("topnav.useradmin"), trans.translate("topnav.useradmin.alt"), "o_site_useradmin");
    curNavElem = new DefaultNavElement(origNavElem);
  }

  /**
   * @see org.olat.navigation.SiteInstance#getNavElement()
View Full Code Here

  /**
   *
   */
  public UserAdminSite(Locale loc) {
    Translator trans = new PackageTranslator(PACKAGE, loc);
    origNavElem = new DefaultNavElement(trans.translate("topnav.useradmin"), trans.translate("topnav.useradmin.alt"), "o_site_useradmin");
    curNavElem = new DefaultNavElement(origNavElem);
  }

  /**
   * @see org.olat.navigation.SiteInstance#getNavElement()
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.