Enable gnome and new translations

This commit is contained in:
2021-05-06 21:51:06 +02:00
parent e78938ce68
commit d6346b2859
11 changed files with 45 additions and 22 deletions

View File

@ -140,7 +140,7 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
});
}
if ( name == "wfrp4e-rnhd2" && module.active ) {
if ( name == "wfrp4e-rnhd" && module.active ) {
game.wfrp4e.tables.career.name = "Carrières aléatoires";
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
@ -148,8 +148,8 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
if ( file.match("career.json") ) {
fetch(file).then(r=>r.json()).then(records => {
let mycareer = records;
for (let k=0; k<game.wfrp4e.config.career.rows.length; k++) {
WFRP_Tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
for (let k=0; k<game.wfrp4e.tables.career.rows.length; k++) {
game.wfrp4e.tables.career.rows[k].name = mycareer.rows[k].name; // Patch !!!
}
});
}