Prepare transation

This commit is contained in:
2022-02-06 17:48:39 +01:00
parent 2b4e637eea
commit a5f857fab0
4 changed files with 52 additions and 10 deletions

View File

@ -7,7 +7,7 @@ const __compFolderTranslation = [
{source: 'Aircraft', translation: 'Avions' },
{source: 'Civilian', translation: 'Civils' },
{source: 'Modern Military Aircraft', translation: 'Avions Militaires Modernes' },
{source: 'World War II Military Aircraft', translation: 'Avions Militaires Seconde Guerre Mondiale' },
{source: 'World War II Military Aircraft', translation: 'Avions Seconde Guerre Mondiale' },
]
}
]
@ -20,7 +20,7 @@ class FolderTranslate {
let pack = game.packs.get(tData.compendium);
let wasLocked = false;
if (pack.locked) {
pack.configure({locked: false})
await pack.configure({locked: false})
wasLocked = true;
}
let folders = await game.CF.FICFolderAPI.loadFolders(tData.compendium);
@ -32,7 +32,7 @@ class FolderTranslate {
}
}
if ( wasLocked) {
pack.configure({locked: true})
await pack.configure({locked: true})
}
}
}
@ -138,6 +138,6 @@ const subFolder = { 'Social Edges': 'Atouts sociaux', 'Background Edges': 'Atout
/************************************************************************************/
Hooks.once('ready', () => {
FolderTranslate.translateFolders()
//FolderTranslate.translateFolders()
});