Add FR translation
This commit is contained in:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user