summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf10
-rw-r--r--npc/functions/string.txt4
2 files changed, 12 insertions, 2 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 25b7951ed..8bd5221b6 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4439,6 +4439,16 @@ constants_db: {
comment__: "Language function constants"
LANG_ON_SEA: 1
LANG_IN_SHIP: 2
+ // Language specs
+ LANG_ENUS: 0
+ LANG_FR: 1
+ LANG_RU: 2
+ LANG_ES: 3
+ LANG_PTBR: 4
+ LANG_DE: 5
+ LANG_PL: 6
+ LANG_IT: 7
+ LANG_ES: 8
comment__: "Configuration constants"
MAX_CYCLE_PC: 40
diff --git a/npc/functions/string.txt b/npc/functions/string.txt
index fba5e776d..22630c45d 100644
--- a/npc/functions/string.txt
+++ b/npc/functions/string.txt
@@ -104,8 +104,8 @@ function script format_number {
if (getargcount() < 2 && playerattached()) {
// get from user language
switch (Lang) {
- case 1: .@separator$ = " "; break; // French
- case 4: .@separator$ = "."; break; // Brazilian
+ case LANG_FR: .@separator$ = " "; break; // French
+ case LANG_PTBR: .@separator$ = "."; break; // Brazilian
default: .@separator$ = ","; // English (default)
}
}