summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-19 19:01:30 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-19 19:01:30 -0300
commitdf8c51fd591c450d8d4062a7d725eee5718b79ae (patch)
tree3c185afd72f78fd8c03faedf51c3684400f204ff /npc/functions
parentcd21408fe9cc185978e53d1cde26ba095b73ae70 (diff)
downloadserverdata-df8c51fd591c450d8d4062a7d725eee5718b79ae.tar.gz
serverdata-df8c51fd591c450d8d4062a7d725eee5718b79ae.tar.bz2
serverdata-df8c51fd591c450d8d4062a7d725eee5718b79ae.tar.xz
serverdata-df8c51fd591c450d8d4062a7d725eee5718b79ae.zip
Add a new command: @translate <npc file>
This will return you a clickable link which will set Transifex in advance, so you can jump straight to translating.
Diffstat (limited to 'npc/functions')
-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))