Skip to content
Snippets Groups Projects
Commit 3dbefb76 authored by uhensler's avatar uhensler
Browse files

OO-4207: Wording

parent ce5c8447
No related branches found
No related tags found
No related merge requests found
......@@ -428,6 +428,7 @@ nodeEdit.links=Link auf diesen Kursbaustein setzen
nodeEdit.linksIntro=Um von ausserhalb des Kurses auf diesen Kursbaustein zu verweisen, verwenden Sie den externen Link. Um innerhalb des Kurses Links zu setzen, verwenden Sie den internen Link.
other=Andere
condition.accessibility.title=Zugang
pane.tab.accessibility=Zugang
pane.tab.general=Titel und Beschreibung
pane.tab.visibility=Sichtbarkeit
password.field=$org.olat.course.condition.additionalconditions\:password.field
......
......@@ -70,7 +70,8 @@ public class LearningPathListController extends FormBasicController {
FlexiCellRenderer nodeRenderer = new TreeNodeFlexiCellRenderer(intendedNodeRenderer);
columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(LearningPathCols.node, nodeRenderer));
columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(LearningPathCols.start));
columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(LearningPathCols.obligation));
FlexiCellRenderer obligationRenderer = new ObligationCellRenderer(getLocale());
columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(LearningPathCols.obligation, obligationRenderer));
columnsModel.addFlexiColumnModel(new DefaultFlexiColumnModel(LearningPathCols.duration));
DefaultFlexiColumnModel firstVisitColumnModel = new DefaultFlexiColumnModel(LearningPathCols.firstVisit);
firstVisitColumnModel.setDefaultVisible(false);
......
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a>
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Initial code contributed and copyrighted by<br>
* frentix GmbH, http://www.frentix.com
* <p>
*/
package org.olat.course.learningpath.ui;
import java.util.Locale;
import org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiCellRenderer;
import org.olat.core.gui.components.form.flexible.impl.elements.table.FlexiTableComponent;
import org.olat.core.gui.render.Renderer;
import org.olat.core.gui.render.StringOutput;
import org.olat.core.gui.render.URLBuilder;
import org.olat.core.gui.translator.Translator;
import org.olat.core.util.Util;
import org.olat.modules.assessment.model.AssessmentObligation;
/**
*
* Initial date: 25 Nov 2019<br>
* @author uhensler, urs.hensler@frentix.com, http://www.frentix.com
*
*/
public class ObligationCellRenderer implements FlexiCellRenderer {
private final Translator trans;
public ObligationCellRenderer(Locale locale) {
trans = Util.createPackageTranslator(LearningPathListController.class, locale);
}
@Override
public void render(Renderer renderer, StringOutput target, Object cellValue, int row, FlexiTableComponent source,
URLBuilder ubu, Translator translator) {
if (cellValue instanceof AssessmentObligation) {
AssessmentObligation obligation = (AssessmentObligation)cellValue;
switch (obligation) {
case mandatory: target.append(trans.translate("config.obligation.mandatory")); break;
case optional: target.append(trans.translate("config.obligation.optional")); break;
default: // nothing
}
}
}
}
error.course.locked=Dieser Kurs wird bereits von jemand anderem bearbeitet. Diese Einstellun kann nicht g\u00E4ndert werden.
error.positiv.int=$org.olat.course.learningpath.ui\:error.positiv.int
settings.completion.type.confirmation.duration=$org.olat.course.learningpath.ui\:config.duration
settings.completion.type.confirmation.info=Wollen Sie den Lernfortschritt wirklich anhand der gesch\u00E4tztden Zeitdauer der einzelnen Kurselemente berechnen? In diesem Fall muss in jedem Kurselement die gesch\u00E4tzte Dauer definiert sein. Geben Sie hier einen Initialwert ein, welcher bei Kurselemnten ohne gesch\u00E4tzte Dauer eingetragen wird.
settings.completion.type.confirmation.info=Wollen Sie den Lernfortschritt wirklich anhand der gesch\u00E4tztden Zeitdauer der einzelnen Kurselemente berechnen? In diesem Fall muss in jedem Kurselement die gesch\u00E4tzte Dauer definiert sein. Geben Sie hier einen Initialwert ein, welcher bei Kurselementen ohne gesch\u00E4tzte Dauer eingetragen wird.
settings.completion.type.confirmation.title=Berechnungsmethode des Lernfortschrittes
settings.completion.type.duration=Anhand der gesch\u00E4tzten Dauer der Kurselemente
settings.completion.type.number.of.nodes=Anhand der Anzahl der Kurselemente
......
......@@ -26,6 +26,7 @@ import org.olat.core.gui.components.form.flexible.impl.FormBaseComponentImpl;
import org.olat.core.gui.translator.Translator;
import org.olat.core.util.Util;
import org.olat.modules.assessment.model.AssessmentEntryStatus;
import org.olat.modules.assessment.ui.AssessedIdentityListController;
/**
*
......@@ -46,7 +47,7 @@ public class LearningProgressComponent extends FormBaseComponentImpl {
public LearningProgressComponent(String name, Locale locale) {
super(name);
setDomReplacementWrapperRequired(false);
translator = Util.createPackageTranslator(AbstractLearningProgressCellRenderer.class, locale);
translator = Util.createPackageTranslator(AssessedIdentityListController.class, locale);
setTranslator(translator);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment