summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMürsel Türk2020-12-31 19:34:10 +0100
committerMürsel Türk2020-12-31 19:34:10 +0100
commit2ea3a39910575c7773e8a378d25b07688aa6922b (patch)
treebe7f1cff821dbfe6effc56bceae491a17e5225ef
parent[client] I18n of search in description feature (diff)
downloadtutor-module-2ea3a39910575c7773e8a378d25b07688aa6922b.tar.gz
tutor-module-2ea3a39910575c7773e8a378d25b07688aa6922b.tar.xz
tutor-module-2ea3a39910575c7773e8a378d25b07688aa6922b.zip
[client] I18n of LocationSelector
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java5
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/I18n.java2
-rw-r--r--dozentenmodul/src/main/properties/i18n/control.properties7
-rw-r--r--dozentenmodul/src/main/properties/i18n/control_de_DE.properties7
-rw-r--r--dozentenmodul/src/main/properties/i18n/control_tr_TR.properties7
5 files changed, 22 insertions, 6 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java
index 863028f0..706a7d13 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/LocationSelector.java
@@ -26,6 +26,7 @@ import org.openslx.dozmod.gui.changemonitor.AbstractControlWrapper;
import org.openslx.dozmod.gui.changemonitor.DialogChangeMonitor;
import org.openslx.dozmod.gui.control.JCheckBoxTree.CheckChangeEventListener;
import org.openslx.dozmod.gui.helper.GridManager;
+import org.openslx.dozmod.gui.helper.I18n;
import org.openslx.dozmod.thrift.Session;
import org.openslx.dozmod.thrift.cache.MetaDataCache;
import org.openslx.thrifthelper.Comparators;
@@ -70,9 +71,9 @@ public class LocationSelector extends JPanel {
*/
public LocationSelector() {
btnLimitToLocations = new JRadioButton(
- "Veranstaltung ausschließlich in den ausgewählten Räumen anzeigen");
+ I18n.CONTROL.getString("LocationSelector.RadioButton.limitToLocations.text"));
btnPrioritizeInLocations = new JRadioButton(
- "Veranstaltung mit höherer Priorität in den ausgewählten Räumen anzeigen");
+ I18n.CONTROL.getString("LocationSelector.RadioButton.prioritizeInLocations.text"));
btnPrioritizeInLocations.setSelected(true);
grpLocationExclusive = new ButtonGroup();
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/I18n.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/I18n.java
index b69aa8d6..7c76d870 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/I18n.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/helper/I18n.java
@@ -36,7 +36,7 @@ public enum I18n {
/**
* Returns i18n value for a given key and format the output at the appropriate places for (a) given parameter(s).
- * If no key is found, return the key.
+ * If no value found for the given key, return the key.
* @param key to get value
* @param params to get formatted output
* @return value represented by key or key on error
diff --git a/dozentenmodul/src/main/properties/i18n/control.properties b/dozentenmodul/src/main/properties/i18n/control.properties
index 349d51be..ea6d8c22 100644
--- a/dozentenmodul/src/main/properties/i18n/control.properties
+++ b/dozentenmodul/src/main/properties/i18n/control.properties
@@ -74,4 +74,9 @@ ImageListViewer.Label.imageCount.text=Visible:
ImageListViewer.CheckBox.searchInDescription.text=Search in Description
# PersonLabel
-PersonLabel.Label.toolTipText=Click to send a mail to this person \ No newline at end of file
+PersonLabel.Label.toolTipText=Click to send a mail to this person
+
+# LocationSelector
+LocationSelector.RadioButton.limitToLocations.text=Show lecture exclusively in the selected rooms
+LocationSelector.RadioButton.prioritizeInLocations.text=Show lecture with higher priority in the \
+ selected rooms \ No newline at end of file
diff --git a/dozentenmodul/src/main/properties/i18n/control_de_DE.properties b/dozentenmodul/src/main/properties/i18n/control_de_DE.properties
index cf46b7c5..8c228018 100644
--- a/dozentenmodul/src/main/properties/i18n/control_de_DE.properties
+++ b/dozentenmodul/src/main/properties/i18n/control_de_DE.properties
@@ -74,4 +74,9 @@ ImageListViewer.Label.imageCount.text=Sichtbar:
ImageListViewer.CheckBox.searchInDescription.text=Suche in Beschreibung
# PersonLabel
-PersonLabel.Label.toolTipText=Klicken, um eine Mail an diese Person zu senden \ No newline at end of file
+PersonLabel.Label.toolTipText=Klicken, um eine Mail an diese Person zu senden
+
+# LocationSelector
+LocationSelector.RadioButton.limitToLocations.text=Veranstaltung ausschließlich in den ausgewählten Räumen anzeigen
+LocationSelector.RadioButton.prioritizeInLocations.text=Veranstaltung mit höherer Priorität in den \
+ ausgewählten Räumen anzeigen \ No newline at end of file
diff --git a/dozentenmodul/src/main/properties/i18n/control_tr_TR.properties b/dozentenmodul/src/main/properties/i18n/control_tr_TR.properties
index 1158685f..3dc4d689 100644
--- a/dozentenmodul/src/main/properties/i18n/control_tr_TR.properties
+++ b/dozentenmodul/src/main/properties/i18n/control_tr_TR.properties
@@ -74,4 +74,9 @@ ImageListViewer.Label.imageCount.text=Görüntülenen:
ImageListViewer.CheckBox.searchInDescription.text=Açıklamada ara
# PersonLabel
-PersonLabel.Label.toolTipText=Bu kişiye e-posta göndermek için tıklayın \ No newline at end of file
+PersonLabel.Label.toolTipText=Bu kişiye e-posta göndermek için tıklayın
+
+# LocationSelector
+LocationSelector.RadioButton.limitToLocations.text=Etkinliği yalnızca seçili odalarda göster
+LocationSelector.RadioButton.prioritizeInLocations.text=Etkinliği yüksek öncelikle \
+ seçili odalarda göster \ No newline at end of file