Examples of PackageTranslator


Examples of org.olat.core.gui.translator.PackageTranslator

   */
  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;
  }
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

  private HashMap colorLinks;
  private Link cancelButton;

  public CalendarColorChooserController(Locale locale, WindowControl wControl, String currentCssSelection) {
    super(wControl);
    translator = new PackageTranslator(PACKAGE, locale);
   
    colorVC = new VelocityContainer("calEdit", VELOCITY_ROOT + "/calColor.html", translator, this);
    cancelButton = LinkFactory.createButton("cancel", colorVC, this);
   
    colorLinks = new HashMap();
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

  private Translator translator;
  private VelocityContainer colorVC;

  public CalendarExportController(Locale locale, WindowControl wControl, String icalFeedLink) {
    super(wControl);
    translator = new PackageTranslator(PACKAGE, locale);
   
    colorVC = new VelocityContainer("calEdit", VELOCITY_ROOT + "/calIcalFeed.html", translator, this);
    colorVC.contextPut("icalFeedLink", icalFeedLink);
   
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

 
 
  CalendarImportByUrlController(UserRequest ureq, Locale locale, WindowControl wControl) {
    super(ureq, wControl);
   
    translator = new PackageTranslator(PACKAGE, locale);
    importVC = new VelocityContainer("calmanage", VELOCITY_ROOT + "/calImportByUrl.html", translator, this);
   
    importUrlForm = new CalendarImportUrlForm("calImportName", translator);
    importUrlForm.addListener(this);
   
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   */
  public SharedFolderDisplayController(UserRequest ureq, WindowControl wControl, VFSContainer sharedFolder, OLATResourceable ores, boolean previewBackground) {
    super(wControl);
    addLoggingResourceable(LoggingResourceable.wrap(ores, OlatResourceableType.genRepoEntry));
    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LEARNING_RESOURCE_OPEN, getClass());
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    vcDisplay = new VelocityContainer("main", VELOCITY_ROOT + "/display.html", translator, this);

    VFSItem item = null;
    item = sharedFolder.resolve(INDEXDOTHTML);
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   * @param wControl
   */
  public SharedFolderEditorController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    super(wControl);
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    vcEdit = new VelocityContainer("main", VELOCITY_ROOT + "/index.html", translator, this);
    previewButton = LinkFactory.createButtonSmall("command.preview", vcEdit, this);
   
    re = RepositoryManager.getInstance().lookupRepositoryEntry(res, true);
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   */
  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

Examples of org.olat.core.gui.translator.PackageTranslator

   */
  public NoAccessExplEditController(UserRequest ureq, WindowControl wControl, String noAccessExplanation) {
    super(ureq, wControl);
    this.noAccessExplanation = noAccessExplanation;

    trans = new PackageTranslator(PACKAGE, ureq.getLocale());

    // Main component is a velocity container. It has a name choosen by the
    // controller who
    // called this constructor
    myContent = new VelocityContainer("noAccessExplanationComp", VELOCITY_ROOT + "/noAccessExplEdit.html", trans, this);
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   * @see org.olat.gui.control.generic.portal.AbstractPortlet#createInstance(org.olat.core.gui.control.WindowControl, org.olat.core.gui.UserRequest, java.util.Map)
   */
  public Portlet createInstance(WindowControl wControl, UserRequest ureq, Map configuration) {
    Portlet p = new MacartneyPortlet();
    p.setConfiguration(configuration);
    p.setTranslator(new PackageTranslator(Util.getPackageName(MacartneyPortlet.class), ureq.getLocale()));
    return p;
  }
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

  /**
   * @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
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.