Fix babele issue + new translation stuff

This commit is contained in:
2020-06-03 18:30:03 +02:00
parent 7be54e833a
commit 500701fc3b
4 changed files with 62 additions and 31 deletions

View File

@ -65,6 +65,10 @@ const _manage_inn_roll = async (content, msg) => {
}
}
/************************************************************************************/
const setup_wfrp4e_tables = () => {
}
/************************************************************************************/
/* Hook for specific command */
Hooks.on("chatMessage", (html, content, msg) => {
@ -80,6 +84,7 @@ Hooks.on("chatMessage", (html, content, msg) => {
Hooks.once('ready', () => {
_patch_eis();
setup_wfrp4e_tables();
const lang = game.settings.get('core', 'language');
if ( lang == "fr" ) {
@ -104,8 +109,8 @@ Hooks.once('ready', () => {
"entries": [
]
};
console.log("Actor compendium has been replaced !!!!");
newpack = new TranslatedCompendium(pack, translations);
console.log("Actor compendium has been replaced !!!!", newpack);
}
pack_array.push( [name, newpack ] );
} );