Package org.olat.core.gui.translator

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


          "" + RepositoryEntry.ACC_USERS_GUESTS
        };
      String[] values = new String[] {
        pt.translate("cif.access.owners"),
        pt.translate("cif.access.owners_authors"),
        pt.translate("cif.access.users"),
        pt.translate("cif.access.users_guests"),
      };
      //use the addDropDownSingleselect method with null as label i18n - key, because there is no label to set. OLAT-3682
      accessSelbox = uifactory.addDropdownSingleselect("accessBox",null, fic, keys, values, null);
      accessSelbox.select(selectedAccess, true);
View Full Code Here


        };
      String[] values = new String[] {
        pt.translate("cif.access.owners"),
        pt.translate("cif.access.owners_authors"),
        pt.translate("cif.access.users"),
        pt.translate("cif.access.users_guests"),
      };
      //use the addDropDownSingleselect method with null as label i18n - key, because there is no label to set. OLAT-3682
      accessSelbox = uifactory.addDropdownSingleselect("accessBox",null, fic, keys, values, null);
      accessSelbox.select(selectedAccess, true);
     
View Full Code Here

  /**
   * @see org.olat.course.nodes.CourseNodeConfiguration#getLinkText(java.util.Locale)
   */
  public String getLinkText(Locale locale) {
    PackageTranslator translator = new PackageTranslator(PACKAGE, locale);
    return translator.translate("title_scorm");
  }

  /**
   * @see org.olat.course.nodes.CourseNodeConfiguration#getIconCSSClass()
   */
 
View Full Code Here

  public boolean readyToDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    ReferenceManager refM = ReferenceManager.getInstance();
    String referencesSummary = refM.getReferencesToSummary(res, ureq.getLocale());
    if (referencesSummary != null) {
      Translator translator = new PackageTranslator(PACKAGE, ureq.getLocale());
      wControl.setError(translator.translate("details.delete.error.references",
          new String[] { referencesSummary }));
      return false;
    }
    /*
     * make an archive of the course nodes with valuable data
View Full Code Here

  public boolean readyToDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    ReferenceManager refM = ReferenceManager.getInstance();
    String referencesSummary = refM.getReferencesToSummary(res, ureq.getLocale());
    if (referencesSummary != null) {
      Translator translator = new PackageTranslator(PACKAGE, ureq.getLocale());
      wControl.setError(translator.translate("details.delete.error.references", new String[] { referencesSummary }));
      return false;
    }
    return true;
  }
View Full Code Here

  private String getExtendedCourseTitle(Locale locale) {
    String extendedCourseTitle = this.courseTitle;
    RepositoryEntry repositoryEntry = RepositoryManager.getInstance().lookupRepositoryEntry(course, false);
    if (repositoryEntry != null && RepositoryManager.getInstance().createRepositoryEntryStatus(repositoryEntry.getStatusCode()).isClosed()) {
      PackageTranslator pT = new PackageTranslator(RepositoryEntryStatus.class.getPackage().getName(), locale);
      extendedCourseTitle = "[" + pT.translate("title.prefix.closed") + "] ".concat(extendedCourseTitle);
    }
    return extendedCourseTitle;
  }

  private void initUserRolesAndRights(final Identity identity) {
View Full Code Here

  public CreateNewSharedFolderController(RepositoryAddCallback addCallback, UserRequest ureq, WindowControl wControl) {
    super(wControl);
    if (addCallback != null) {
      newFileResource = SharedFolderManager.getInstance().createSharedFolder();
      Translator trnsltr = new PackageTranslator("org.olat.repository", ureq.getLocale());
      addCallback.setDisplayName(trnsltr.translate(newFileResource.getResourceableTypeName()));
      addCallback.setResourceable(newFileResource);
      addCallback.setResourceName(SharedFolderFileResource.RESOURCE_NAME);

      addCallback.finished(ureq);
    }
View Full Code Here

   * @see org.olat.ims.qti.container.qtielements.GenericQTIElement#render(java.lang.StringBuilder, org.olat.ims.qti.container.qtielements.RenderInstructions)
   */
  public void render(StringBuilder buffer, RenderInstructions ri) {
    Translator translator = new PackageTranslator(PACKAGE_QTI, (Locale)ri.get(RenderInstructions.KEY_LOCALE));
    buffer.append("<div id=\"o_qti_hints\"><a href=\"#\" onclick=\"b_togglebox('o_qti_hints_inner', this);\" onkeypress=\"b_togglebox('o_qti_hints_inner', this);\">");
    buffer.append(translator.translate("render.hint"));
    buffer.append("</a><div id=\"o_qti_hints_inner\" style=\"display:none\"><div><div class=\"b_important\">");
    super.render(buffer, ri);
    buffer.append("</div></div></div></div>");
  }
 
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

      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

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.