diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-16 13:41:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-16 13:41:18 -0300 |
commit | 30f3713fda64dd90305fe2742324e6fe612f0b04 (patch) | |
tree | feac8ce15e1f4fae9a09e667d1f0f420372b9f06 | |
parent | 575709ea46d4bb8b21b4bf0cfaece42f6b0d3d55 (diff) | |
download | serverdata-30f3713fda64dd90305fe2742324e6fe612f0b04.tar.gz serverdata-30f3713fda64dd90305fe2742324e6fe612f0b04.tar.bz2 serverdata-30f3713fda64dd90305fe2742324e6fe612f0b04.tar.xz serverdata-30f3713fda64dd90305fe2742324e6fe612f0b04.zip |
Remove some hardcoded language numerical codes
-rw-r--r-- | db/constants.conf | 10 | ||||
-rw-r--r-- | npc/functions/string.txt | 4 |
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) } } |