diff options
author | Haru <haru@dotalux.com> | 2019-01-03 23:46:03 +0100 |
---|---|---|
committer | Dastgir <dastgirp@gmail.com> | 2019-10-02 12:15:36 +0530 |
commit | 953efc5da879df5048e42265fa30c4aaae58288c (patch) | |
tree | 6f9a4e4876a19f3f9366e5eac5538b40e04af541 /src/map/script.h | |
parent | ddb11b5ea7997173128f00796b1b90a0b1985c9e (diff) | |
download | hercules-953efc5da879df5048e42265fa30c4aaae58288c.tar.gz hercules-953efc5da879df5048e42265fa30c4aaae58288c.tar.bz2 hercules-953efc5da879df5048e42265fa30c4aaae58288c.tar.xz hercules-953efc5da879df5048e42265fa30c4aaae58288c.zip |
Load translations from a directory rather than a 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 62950ba8d..2aefaba4e 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -1005,12 +1005,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); |