Search in sources :

Example 66 with Translator

use of org.olat.core.gui.translator.Translator in project OpenOLAT by OpenOLAT.

the class EdubaseCourseNodeConfiguration method getLinkText.

@Override
public String getLinkText(Locale locale) {
    Translator fallback = Util.createPackageTranslator(CourseNodeConfiguration.class, locale);
    Translator translator = Util.createPackageTranslator(this.getClass(), locale, fallback);
    return translator.translate("link.text");
}
Also used : Translator(org.olat.core.gui.translator.Translator)

Example 67 with Translator

use of org.olat.core.gui.translator.Translator in project OpenOLAT by OpenOLAT.

the class CheckListCourseNodeConfiguration method getLinkText.

@Override
public String getLinkText(Locale locale) {
    Translator fallback = Util.createPackageTranslator(CourseNodeConfiguration.class, locale);
    Translator translator = Util.createPackageTranslator(this.getClass(), locale, fallback);
    return translator.translate("title_checklist");
}
Also used : Translator(org.olat.core.gui.translator.Translator)

Example 68 with Translator

use of org.olat.core.gui.translator.Translator in project OpenOLAT by OpenOLAT.

the class COCourseNodeConfiguration method getLinkText.

@Override
public String getLinkText(Locale locale) {
    Translator fallback = Util.createPackageTranslator(CourseNodeConfiguration.class, locale);
    Translator translator = Util.createPackageTranslator(this.getClass(), locale, fallback);
    return translator.translate("title_co");
}
Also used : Translator(org.olat.core.gui.translator.Translator)

Example 69 with Translator

use of org.olat.core.gui.translator.Translator in project OpenOLAT by OpenOLAT.

the class BGConfigResourcesStepController method initForm.

@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    addResource = uifactory.addFormLink("cmd.addresource", formLayout, Link.BUTTON);
    Translator resourceTrans = Util.createPackageTranslator(RepositoryTableModel.class, getLocale(), getTranslator());
    TableGuiConfiguration tableConfig = new TableGuiConfiguration();
    tableConfig.setTableEmptyMessage(translate("config.resources.noresources"));
    resourcesCtr = new TableController(tableConfig, ureq, getWindowControl(), resourceTrans);
    listenTo(resourcesCtr);
    repoTableModel = new RepositoryTableModel(getLocale());
    repoTableModel.addColumnDescriptors(resourcesCtr, false, false, true, true);
    resourcesCtr.setTableDataModel(repoTableModel);
    ((FormLayoutContainer) formLayout).put("resources", resourcesCtr.getInitialComponent());
}
Also used : RepositoryTableModel(org.olat.repository.ui.RepositoryTableModel) Translator(org.olat.core.gui.translator.Translator) TableController(org.olat.core.gui.components.table.TableController) FormLayoutContainer(org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer) TableGuiConfiguration(org.olat.core.gui.components.table.TableGuiConfiguration)

Example 70 with Translator

use of org.olat.core.gui.translator.Translator in project OpenOLAT by OpenOLAT.

the class GroupsPortlet method createInstance.

/**
 * @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<String, String> configuration) {
    Translator translator = Util.createPackageTranslator(BGControllerFactory.class, ureq.getLocale());
    GroupsPortlet p = new GroupsPortlet();
    p.setName(this.getName());
    p.setConfiguration(configuration);
    p.setDefaultMaxEntries(getDefaultMaxEntries());
    p.setTranslator(translator);
    return p;
}
Also used : Translator(org.olat.core.gui.translator.Translator)

Aggregations

Translator (org.olat.core.gui.translator.Translator)586 Identity (org.olat.core.id.Identity)62 Date (java.util.Date)54 Controller (org.olat.core.gui.control.Controller)54 RepositoryEntry (org.olat.repository.RepositoryEntry)54 Locale (java.util.Locale)52 PackageTranslator (org.olat.core.gui.translator.PackageTranslator)46 ArrayList (java.util.ArrayList)40 TabbableController (org.olat.core.gui.control.generic.tabbable.TabbableController)40 NodeEditController (org.olat.course.editor.NodeEditController)40 TitleItem (org.olat.core.commons.services.notifications.model.TitleItem)36 Roles (org.olat.core.id.Roles)36 NodeRunConstructionResult (org.olat.course.run.navigation.NodeRunConstructionResult)36 SubscriptionListItem (org.olat.core.commons.services.notifications.model.SubscriptionListItem)32 Publisher (org.olat.core.commons.services.notifications.Publisher)30 SubscriptionInfo (org.olat.core.commons.services.notifications.SubscriptionInfo)30 FormLayoutContainer (org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer)30 MailBundle (org.olat.core.util.mail.MailBundle)28 ICourse (org.olat.course.ICourse)26 UserPropertyHandler (org.olat.user.propertyhandlers.UserPropertyHandler)26