Add FR translation

This commit is contained in:
2025-06-11 11:35:39 +02:00
parent ecb7fc2757
commit 17be9df64b
14 changed files with 66 additions and 30 deletions

View File

@ -113,11 +113,26 @@ function preLocalizeConfig() {
Hooks.once("ready", function () {
console.info("CTHULHU ETERNAL | Ready")
if (typeof Babele !== 'undefined') {
console.info("CTHULHU ETERNAL | Babele detected, setting up translations")
Babele.get().setSystemTranslationsDir("compendiums");
}
if (game.user.isGM) {
ClassCounter.registerUsageCount("fvtt-cthulhu-eternal", {})
}
preLocalizeConfig()
if (game.user.isGM && game.i18n.lang === 'fr' && !game.modules.find(m => m.id == "babele")) {
ChatMessage.create({
user: game.user.id,
whisper: [game.user.id],
content: `<div ><span class="">
<strong>ATTENTION ! Français détecte, mais le module Babele n'est pas installé !<br>Installez Babele pour bénéficier de la traduction des compendiums`
})
}
})
Hooks.on("renderChatMessageHTML", (message, html, data) => {

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000036
MANIFEST-000061

View File

@ -1,7 +1,7 @@
2025/05/18-22:05:58.774845 7f89057fa6c0 Recovering log #34
2025/05/18-22:05:58.784751 7f89057fa6c0 Delete type=3 #32
2025/05/18-22:05:58.784813 7f89057fa6c0 Delete type=0 #34
2025/05/18-22:06:27.441454 7f8667fff6c0 Level-0 table #39: started
2025/05/18-22:06:27.441484 7f8667fff6c0 Level-0 table #39: 0 bytes OK
2025/05/18-22:06:27.447800 7f8667fff6c0 Delete type=0 #37
2025/05/18-22:06:27.447999 7f8667fff6c0 Manual compaction at level-0 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)
2025/06/11-11:25:40.891028 7f629e7fc6c0 Recovering log #58
2025/06/11-11:25:40.901584 7f629e7fc6c0 Delete type=3 #56
2025/06/11-11:25:40.901688 7f629e7fc6c0 Delete type=0 #58
2025/06/11-11:34:39.362599 7f5ffffff6c0 Level-0 table #64: started
2025/06/11-11:34:39.362680 7f5ffffff6c0 Level-0 table #64: 0 bytes OK
2025/06/11-11:34:39.369767 7f5ffffff6c0 Delete type=0 #62
2025/06/11-11:34:39.390553 7f5ffffff6c0 Manual compaction at level-0 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)

View File

@ -1,7 +1,11 @@
2025/05/14-23:46:13.953928 7fa2e5ffb6c0 Recovering log #29
2025/05/14-23:46:13.965264 7fa2e5ffb6c0 Delete type=3 #27
2025/05/14-23:46:13.965329 7fa2e5ffb6c0 Delete type=0 #29
2025/05/14-23:53:27.523831 7fa2e57fa6c0 Level-0 table #35: started
2025/05/14-23:53:27.523897 7fa2e57fa6c0 Level-0 table #35: 0 bytes OK
2025/05/14-23:53:27.564827 7fa2e57fa6c0 Delete type=0 #33
2025/05/14-23:53:27.634207 7fa2e57fa6c0 Manual compaction at level-0 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)
2025/06/11-11:12:44.800199 7f629d7fa6c0 Delete type=3 #1
2025/06/11-11:25:35.582848 7f5ffffff6c0 Level-0 table #59: started
2025/06/11-11:25:35.582878 7f5ffffff6c0 Level-0 table #59: 0 bytes OK
2025/06/11-11:25:35.589418 7f5ffffff6c0 Delete type=0 #57
2025/06/11-11:25:35.602703 7f5ffffff6c0 Manual compaction at level-0 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at '!items!zVFfp3o0G0Zg3Ia4' @ 52 : 1
2025/06/11-11:25:35.602717 7f5ffffff6c0 Compacting 1@0 + 0@1 files
2025/06/11-11:25:35.607145 7f5ffffff6c0 Generated table #60@0: 26 keys, 60964 bytes
2025/06/11-11:25:35.607193 7f5ffffff6c0 Compacted 1@0 + 0@1 files => 60964 bytes
2025/06/11-11:25:35.613510 7f5ffffff6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2025/06/11-11:25:35.613660 7f5ffffff6c0 Delete type=2 #31
2025/06/11-11:25:35.622974 7f5ffffff6c0 Manual compaction at level-0 from '!items!zVFfp3o0G0Zg3Ia4' @ 52 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000200
MANIFEST-000225

View File

@ -1,7 +1,14 @@
2025/05/18-22:05:58.759366 7f8904ff96c0 Recovering log #198
2025/05/18-22:05:58.769708 7f8904ff96c0 Delete type=3 #196
2025/05/18-22:05:58.769762 7f8904ff96c0 Delete type=0 #198
2025/05/18-22:06:27.422044 7f8667fff6c0 Level-0 table #203: started
2025/05/18-22:06:27.422086 7f8667fff6c0 Level-0 table #203: 0 bytes OK
2025/05/18-22:06:27.428820 7f8667fff6c0 Delete type=0 #201
2025/05/18-22:06:27.447959 7f8667fff6c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)
2025/06/11-11:25:40.877366 7f629e7fc6c0 Recovering log #222
2025/06/11-11:25:40.887016 7f629e7fc6c0 Delete type=3 #220
2025/06/11-11:25:40.887092 7f629e7fc6c0 Delete type=0 #222
2025/06/11-11:34:39.341305 7f5ffffff6c0 Level-0 table #228: started
2025/06/11-11:34:39.344612 7f5ffffff6c0 Level-0 table #228: 2195 bytes OK
2025/06/11-11:34:39.352292 7f5ffffff6c0 Delete type=0 #226
2025/06/11-11:34:39.376167 7f5ffffff6c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at '!items!lYvFQf5CE8fr9XeX' @ 1285 : 0
2025/06/11-11:34:39.376182 7f5ffffff6c0 Compacting 1@0 + 1@1 files
2025/06/11-11:34:39.383122 7f5ffffff6c0 Generated table #229@0: 547 keys, 311861 bytes
2025/06/11-11:34:39.383202 7f5ffffff6c0 Compacted 1@0 + 1@1 files => 311861 bytes
2025/06/11-11:34:39.389950 7f5ffffff6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2025/06/11-11:34:39.390142 7f5ffffff6c0 Delete type=2 #224
2025/06/11-11:34:39.390392 7f5ffffff6c0 Delete type=2 #228
2025/06/11-11:34:39.405744 7f5ffffff6c0 Manual compaction at level-0 from '!items!lYvFQf5CE8fr9XeX' @ 1285 : 0 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)

View File

@ -1,7 +1,11 @@
2025/05/14-23:46:13.940336 7fa2e67fc6c0 Recovering log #193
2025/05/14-23:46:13.950153 7fa2e67fc6c0 Delete type=3 #191
2025/05/14-23:46:13.950214 7fa2e67fc6c0 Delete type=0 #193
2025/05/14-23:53:27.493872 7fa2e57fa6c0 Level-0 table #199: started
2025/05/14-23:53:27.493910 7fa2e57fa6c0 Level-0 table #199: 0 bytes OK
2025/05/14-23:53:27.523581 7fa2e57fa6c0 Delete type=0 #197
2025/05/14-23:53:27.634194 7fa2e57fa6c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)
2025/06/11-11:12:44.772978 7f629e7fc6c0 Delete type=3 #1
2025/06/11-11:25:35.576631 7f5ffffff6c0 Level-0 table #223: started
2025/06/11-11:25:35.576676 7f5ffffff6c0 Level-0 table #223: 0 bytes OK
2025/06/11-11:25:35.582717 7f5ffffff6c0 Delete type=0 #221
2025/06/11-11:25:35.589553 7f5ffffff6c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at '!items!zvoUByzWSWZ87fxA' @ 1281 : 1
2025/06/11-11:25:35.589562 7f5ffffff6c0 Compacting 1@0 + 0@1 files
2025/06/11-11:25:35.596271 7f5ffffff6c0 Generated table #224@0: 548 keys, 312922 bytes
2025/06/11-11:25:35.596300 7f5ffffff6c0 Compacted 1@0 + 0@1 files => 312922 bytes
2025/06/11-11:25:35.602280 7f5ffffff6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2025/06/11-11:25:35.602447 7f5ffffff6c0 Delete type=2 #195
2025/06/11-11:25:35.622955 7f5ffffff6c0 Manual compaction at level-0 from '!items!zvoUByzWSWZ87fxA' @ 1281 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@ -47,6 +47,12 @@
"name": "Anglais",
"path": "lang/en.json",
"flags": {}
},
{
"lang": "fr",
"name": "Français",
"path": "lang/fr.json",
"flags": {}
}
],
"documentTypes": {