Package org.olat.core.gui.translator

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


  public ChooseStepsController(final UserRequest ureq, final WindowControl control,  final RepositoryEntry addedEntry, String modus) {
    super(control);
    this.addedEntry = addedEntry;
    // translator for this class
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    descVC = new VelocityContainer("vcDesc", VELOCITY_ROOT + "/csc_main.html", translator, this);
    descVC.contextPut("disabledforwardreason", translator.translate("disabledforwardreason"));
    // chooser form
    chooser = new ChooseStepsForm("chooser", translator, modus);
View Full Code Here


  public ChooseStepsController(final UserRequest ureq, final WindowControl control,
      final RepositoryEntry addedEntry) {
    super(control);
    this.addedEntry = addedEntry;
    // translator for this class
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    descVC = new VelocityContainer("vcDesc", VELOCITY_ROOT + "/csc_main.html", translator, this);
    descVC.contextPut("disabledforwardreason", translator.translate("disabledforwardreason"));
    // chooser form
    chooser = new ChooseStepsForm("chooser", translator);
View Full Code Here

   * @param learningObjectives The learning objective
   * @param ureq The user request
   * @return the wrapper component
   */
  public static Component createLearningObjectivesComponent(String learningObjectives, UserRequest ureq) {
    VelocityContainer vc = new VelocityContainer("learningObjs", VELOCITY_ROOT + "/objectives.html", new PackageTranslator(PACKAGE, ureq
        .getLocale()), null);
    vc.contextPut("learningObjectives", learningObjectives);
    return vc;
  }
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_cp");
  }
View Full Code Here

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

    Boolean canDelete = (Boolean) BaseSecurityModule.getConfiguration().get(BaseSecurityModule.CONFIG_USERMANAGER_CAN_DELETE_USER);
    if ( canDelete.booleanValue() || ureq.getUserSession().getRoles().isOLATAdmin() ) {
      myContent = new VelocityContainer("deleteTabbedPane", VELOCITY_ROOT + "/deleteTabbedPane.html", translator, this);
      initTabbedPane(ureq);
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_tu");
  }
View Full Code Here

   * @param ureq
   * @param wControl
   * @param cancelbutton
   */
  public StatusController(UserRequest ureq, WindowControl wControl) {   
    super(ureq, wControl, new PackageTranslator(PACKAGE_USER_SEARCH, ureq.getLocale()));
    //  use the PropertyHandlerTranslator  as tableCtr translator
    propertyHandlerTranslator = UserManager.getInstance().getPropertyHandlerTranslator(getTranslator());
   
    myContent = this.createVelocityContainer("deletestatus");
   
View Full Code Here

  /**
   * @param args
   */
  public static TableController createController(ExtendedIdentitiesTableDataModel dataModel, UserRequest ureq, WindowControl wControl, ControllerEventListener listeningController, boolean actionEnabled) {
    Locale loc = ureq.getLocale();
    Translator trans = new PackageTranslator(PACKAGE, loc);
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setDownloadOffered(true);
    tableConfig.setPreferencesOffered(true, "ExtendedIdentitiesTable");   
    tableConfig.setTableEmptyMessage(trans.translate("error.no.user.found"));

    trans = UserManager.getInstance().getPropertyHandlerTranslator(trans);
    TableController tableCtr = new TableController(tableConfig, ureq, wControl, trans, listeningController);
    dataModel.addColumnDescriptors(tableCtr, trans);
    tableCtr.setTableDataModel(dataModel);
View Full Code Here

    isAuthor = isAdmin | ureq.getUserSession().getRoles().isAuthor();
   
    owners = new ArrayList<Identity>();
    repoEntries = new ArrayList<RepositoryEntry>();
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    mainVc = new VelocityContainer("import", VELOCITY_ROOT + "/wizard.html", translator, this);
    LinkFactory.createLinkBack(mainVc, this);
    panel = new Panel("panel");
    // step 1
    buildStep1(ureq);
View Full Code Here

    super(wControl);
   
    this.sourceEntry = sourceEntry;
    this.newEntry = null;
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    securityManager = ManagerFactory.getManager();
   
    mainContainer = new VelocityContainer("vcCopy", VELOCITY_ROOT + "/copy.html", translator, this);
    cancelButton = LinkFactory.createButton("cmd.cancel", mainContainer, this);
    forwardButton = LinkFactory.createButton("cmd.forward", mainContainer, this);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.translator.PackageTranslator

Copyright © 2018 www.massapicom. 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.