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");
}
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");
}
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");
}
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());
}
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;
}
Aggregations