diff options
author | Haru <haru@dotalux.com> | 2019-10-18 13:29:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-18 13:29:03 +0200 |
commit | ef60d6c53db89a6a932618895acf4ee194b3f2e3 (patch) | |
tree | 5683ad48dd74af701b463a5aeaad7b7f58f95705 /src/map/script.h | |
parent | 1e6580e56850adb241261c33bffca60f934294fb (diff) | |
parent | ae22cb6f20091e290cf6c30c049400535d6f1aca (diff) | |
download | hercules-ef60d6c53db89a6a932618895acf4ee194b3f2e3.tar.gz hercules-ef60d6c53db89a6a932618895acf4ee194b3f2e3.tar.bz2 hercules-ef60d6c53db89a6a932618895acf4ee194b3f2e3.tar.xz hercules-ef60d6c53db89a6a932618895acf4ee194b3f2e3.zip |
Merge pull request #2492 from dastgirp/huld/split
Split HULD translations to per NPC file instead of one large file
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/script.h b/src/map/script.h index 57652e77a..1cec02b97 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -1039,12 +1039,13 @@ struct script_interface { int (*string_dup) (char *str); void (*load_translations) (void); bool (*load_translation_addstring) (const char *file, uint8 lang_id, const char *msgctxt, const struct script_string_buf *msgid, const struct script_string_buf *msgstr); - int (*load_translation) (const char *file, uint8 lang_id); + int (*load_translation_file) (const char *file, uint8 lang_id); + int (*load_translation) (const char *directory, uint8 lang_id); int (*translation_db_destroyer) (union DBKey key, struct DBData *data, va_list ap); void (*clear_translations) (bool reload); int (*parse_cleanup_timer) (int tid, int64 tick, int id, intptr_t data); uint8 (*add_language) (const char *name); - const char *(*get_translation_file_name) (const char *file); + const char *(*get_translation_dir_name) (const char *directory); void (*parser_clean_leftovers) (void); void (*run_use_script) (struct map_session_data *sd, struct item_data *data, int oid); void (*run_item_equip_script) (struct map_session_data *sd, struct item_data *data, int oid); |