summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java
diff options
context:
space:
mode:
authorMürsel Türk2020-08-05 21:26:53 +0200
committerMürsel Türk2020-08-05 21:26:53 +0200
commit02b3c2866b024a02cdbc16270834e2a54a1c6ec6 (patch)
tree8e251336ed6175a8604882da29f171f04f0f81c7 /dozentenmodul/src/main/java/org/openslx/dozmod/Config.java
parent[client] Add turkish translation for wizard (diff)
downloadtutor-module-02b3c2866b024a02cdbc16270834e2a54a1c6ec6.tar.gz
tutor-module-02b3c2866b024a02cdbc16270834e2a54a1c6ec6.tar.xz
tutor-module-02b3c2866b024a02cdbc16270834e2a54a1c6ec6.zip
[client] Add combobox for choosing language
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/Config.java')
-rwxr-xr-xdozentenmodul/src/main/java/org/openslx/dozmod/Config.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java
index 904d0693..a0e41689 100755
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java
@@ -458,6 +458,24 @@ public class Config {
}
/**
+ * Set the language which should be used
+ *
+ * @param value the language consists of language and country
+ */
+ public static void setPreferredLanguage(String value) {
+ setString("gui.language", value);
+ }
+
+ /**
+ * Get the language preferred by the user
+ *
+ * @return the saved language, null otherwise
+ */
+ public static String getPreferredLanguage() {
+ return getString("gui.language", null);
+ }
+
+ /**
* Gets the boolean from the given key.
* If nothing is found, return the given default value
*