summaryrefslogtreecommitdiff
path: root/npc/functions/asklanguage.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/asklanguage.txt')
-rw-r--r--npc/functions/asklanguage.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/functions/asklanguage.txt b/npc/functions/asklanguage.txt
index 3782e5316..d10f5534f 100644
--- a/npc/functions/asklanguage.txt
+++ b/npc/functions/asklanguage.txt
@@ -5,6 +5,21 @@
// Description:
// Function setting the player language
+function script languagecode {
+ switch (Lang) {
+ case LANG_PTBR:
+ return "pt-BR";
+ case LANG_FR:
+ return "fr";
+ case LANG_DE:
+ return "de";
+ case LANG_ES:
+ return "es";
+ default:
+ return "en";
+ }
+}
+
function script asklanguage {
switch (getarg(0, LANG_IN_SHIP))