From 1c0daf9828ca6bc87931c1659f6f0307adc9c218 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 5 Aug 2023 17:27:09 +0200 Subject: [PATCH] module de traduction --- tools/translate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/translate.php b/tools/translate.php index a0ac6ab..de778fa 100644 --- a/tools/translate.php +++ b/tools/translate.php @@ -2,7 +2,7 @@ $langSource = 'fr_FR'; -$langTarget = 'el'; +$langTarget = 'de'; $folderTargetArray = [ '../', /* @@ -16,7 +16,7 @@ $folderTargetArray = [ ]; foreach ($folderTargetArray as $keyFolder => $folderTarget) { if (file_exists($folderTarget . $langSource . '.json')) { - $sourceData = json_decode(file_get_contents($folderTarget . $langSource . '-2.json'), true); + $sourceData = json_decode(file_get_contents($folderTarget . $langSource . '.json'), true); foreach ($sourceData as $originText => $targetText) { if (empty($targetText)) { echo '

';