Package org.olat.core.gui.translator

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


    //elements.putExtensionElement(TestingMainController.class.getName(), new ActionExtension() {
    elements.putExtensionElement(HomeMainController.class.getName(), new ActionExtension() {
      //the "alt" text for the link
      public String getDescription(Locale loc) {
        Translator translator = Util.createPackageTranslator(this.getClass(), loc);
        return translator.translate("helloWorld.description");
      }
      //the link text
      public String getActionText(Locale loc) {
        Translator translator = Util.createPackageTranslator(this.getClass(), loc);
        return translator.translate("helloWorld.action");
View Full Code Here


        return translator.translate("helloWorld.description");
      }
      //the link text
      public String getActionText(Locale loc) {
        Translator translator = Util.createPackageTranslator(this.getClass(), loc);
        return translator.translate("helloWorld.action");
      }
      //the controller the link creates clicking on it
      public Controller createController(UserRequest ureq, WindowControl wControl, Object arg) {
        Controller controller = new HelloWorldController(ureq, wControl);
        return controller;
View Full Code Here

  public CreateNewGlossaryController(RepositoryAddCallback addCallback, UserRequest ureq, WindowControl wControl) {
    super(wControl);
    if (addCallback != null) {
      newFileResource = GlossaryManager.getInstance().createGlossary();
      Translator trnsltr = new PackageTranslator("org.olat.repository", ureq.getLocale());
      addCallback.setDisplayName(trnsltr.translate(newFileResource.getResourceableTypeName()));
      addCallback.setResourceable(newFileResource);
      addCallback.setResourceName("-");
      addCallback.finished(ureq);
    }
  }
View Full Code Here

    }

    if (headerId!=null) {
      Translator translator = Util.createPackageTranslator(ShibbolethModule.class, ureq.getLocale());
      if (translator!=null) {
        String newHeaderId = translator.translate("swissEduPersonStudyLevel."+headerId);
        if (newHeaderId!=null && !newHeaderId.startsWith(Translator.NO_TRANSLATION_ERROR_PREFIX)) {
          headerId = newHeaderId;
        }
      }
    }
View Full Code Here

          if(modifier != null) {
            name = NotificationHelper.getFormatedName(modifier);
          } else {
            name = NotificationHelper.getFormatedName(creator);
          }
          String desc = translator.translate("notifications.entry", new String[] { title, name })
          String urlToSend = null;
          if(p.getBusinessPath() != null) {
            urlToSend = NotificationHelper.getURLFromBusinessPathString(p, businessControlString + mInfo.getKey().toString() + "]");
          }
         
View Full Code Here

      StringBuilder tableHeader1 = new StringBuilder();
    StringBuilder tableHeader2 = new StringBuilder();
    StringBuilder tableContent = new StringBuilder();
    StringBuilder table = new StringBuilder();

    String sequentialNumber = t.translate("column.header.seqnum");
    String login = t.translate("column.header.login");
    // user properties are dynamic
    String sc = t.translate("column.header.score");
    String pa = t.translate("column.header.passed");
    String co = t.translate("column.header.comment");
View Full Code Here

    StringBuilder tableHeader2 = new StringBuilder();
    StringBuilder tableContent = new StringBuilder();
    StringBuilder table = new StringBuilder();

    String sequentialNumber = t.translate("column.header.seqnum");
    String login = t.translate("column.header.login");
    // user properties are dynamic
    String sc = t.translate("column.header.score");
    String pa = t.translate("column.header.passed");
    String co = t.translate("column.header.comment");
    String cco = t.translate("column.header.coachcomment");
View Full Code Here

    StringBuilder table = new StringBuilder();

    String sequentialNumber = t.translate("column.header.seqnum");
    String login = t.translate("column.header.login");
    // user properties are dynamic
    String sc = t.translate("column.header.score");
    String pa = t.translate("column.header.passed");
    String co = t.translate("column.header.comment");
    String cco = t.translate("column.header.coachcomment");
    String at = t.translate("column.header.attempts");
    String na = t.translate("column.field.notavailable");
View Full Code Here

    String sequentialNumber = t.translate("column.header.seqnum");
    String login = t.translate("column.header.login");
    // user properties are dynamic
    String sc = t.translate("column.header.score");
    String pa = t.translate("column.header.passed");
    String co = t.translate("column.header.comment");
    String cco = t.translate("column.header.coachcomment");
    String at = t.translate("column.header.attempts");
    String na = t.translate("column.field.notavailable");
    String mi = t.translate("column.field.missing");
View Full Code Here

    String sequentialNumber = t.translate("column.header.seqnum");
    String login = t.translate("column.header.login");
    // user properties are dynamic
    String sc = t.translate("column.header.score");
    String pa = t.translate("column.header.passed");
    String co = t.translate("column.header.comment");
    String cco = t.translate("column.header.coachcomment");
    String at = t.translate("column.header.attempts");
    String na = t.translate("column.field.notavailable");
    String mi = t.translate("column.field.missing");
    String yes = t.translate("column.field.yes");
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.