Pfad ersetzt

This commit is contained in:
2025-05-07 16:23:45 +02:00
parent d8e7de7e10
commit dcd48348c2
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
}
],
"url": "https://gitea.palmenalzer.de/alzer/wfrp-4e-de",
"version": "8.5.0",
"version": "8.5.1",
"esmodules": [
"modules/babele-register.js",
"modules/addon-register.js",
+6 -6
View File
@@ -94,7 +94,7 @@ const _manage_inn_roll = async (content, msg) => {
if (command[0] == "/auberge" && command[1]) {
msg["type"] = 0;
msg["rollMode"] = "gmroll";
var compendium = game.packs.get('wh4-fr-translation.plats-dauberges')
var compendium = game.packs.get('wh4-de-translation.plats-dauberges')
const pack = game.packs.get(compendium);
let rollList = await compendium.getDocuments()
//console.log("AUBERGE", rollList)
@@ -164,7 +164,7 @@ const __create_translation_tables = async (compmod) => {
* */
const __auto_patch_translation_journal_compendium = async (compmod) => {
if (game.user.isGM) {
let compData = game.packs.get("WH4-fr-translation.tables-des-traductions");
let compData = game.packs.get("wh4-de-translation.tables-des-traductions");
compData.locked = false;
let translEntries = await compData.getContent();
for (let entryData of translEntries) {
@@ -194,7 +194,7 @@ const patch_core_tables = (tableList) => {
if (game.version) { // v9 and above
return;
}
FilePicker.browse("data", "modules/WH4-fr-translation/tables/").then(resp => {
FilePicker.browse("data", "modules/wh4-de-translation/tables/").then(resp => {
for (var file of resp.files) {
let filename = file.substring(file.lastIndexOf("/") + 1, file.indexOf(".json"))
if (tableList[filename] == 1) { // Matching table name -> patch !
@@ -211,7 +211,7 @@ const patch_core_tables = (tableList) => {
/************************************************************************************/
const patch_trade_gazeteer = () => {
if (game.wfrp4e.config.trade?.gazetteer) {
fetch("modules/wh4-fr-translation/trade/gazetteer_dotr.json").then(r => r.json()).then(records => {
fetch("modules/wh4-de-translation/trade/gazetteer_dotr.json").then(r => r.json()).then(records => {
game.wfrp4e.config.trade.gazetteer = records;
});
}
@@ -390,8 +390,8 @@ Hooks.on('ready', () => {
if (game.user.isGM) {
game.wfrp4e.warnDialog = new Dialog({
title: "Chargement de la traduction FR - Merci d'attendre",
content: `<img src="modules/wh4-fr-translation/images/warhammer-v1-logo.webp"><p class="wfrp4-fr-message">
title: "Übersetzung laden - Danke fürs Warten",
content: `<img src="modules/wh4-de-translation/images/warhammer-v1-logo.webp"><p class="wfrp4-fr-message">
Die Diener Sigmars der Risikogruppe bereiten zusammen mit den bretonischen Rattenfängern die Übersetzung dieser Welt vor...</h3> <p class="wfrp4-fr-message">Bitte warte , bis diese Nachricht verschwunden ist, bevor du dich im Reich bewegst.</p><p class="wfrp4-fr-message">Wenn ein Segen von Shallya im Chat erscheint, ist alles gut gelaufen.</p>
Les moines de l'ordre de l'Enclume, associés aux légistes de Talabaheim, préparent la traduction Bretonnienne de ce monde...<p >Merci d'attendre la disparition de ce message pour vaquer dans l'Empire.</p> <p>Si une bénédiction de Shallya apparait dans le tchat, c'est que tout s'est bien passé.</p>`,
buttons: {
+2 -2
View File
@@ -221,7 +221,7 @@ Hooks.once('init', () => {
if (game.babele !== 'undefined') {
game.babele.register({
module: 'wh4-fr-translation',
module: 'wh4-de-translation',
lang: 'de',
dir: 'compendium'
},
@@ -684,7 +684,7 @@ Hooks.once('ready', () => {
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter => {
console.log("ClassCounter loaded", moduleCounter)
moduleCounter.ClassCounter.registerUsageCount("wh4-fr-translation")
moduleCounter.ClassCounter.registerUsageCount("wh4-de-translation")
}).catch(err =>
console.log("No stats available, giving up.")
)