Fixes for language files2.

This commit is contained in:
tracer 2023-05-29 15:53:23 +02:00
parent c8b88021ed
commit 46e90bd798
1 changed files with 4 additions and 2 deletions

View File

@ -158,9 +158,10 @@ class UpdateController
if (!file_exists(filename: $langDeDuTarget)) { if (!file_exists(filename: $langDeDuTarget)) {
echo " Downloading $languageFile" . PHP_EOL; echo " Downloading $languageFile" . PHP_EOL;
$filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile"; $filePath = "https://downloads.phpbb.de/pakete/deutsch/$major.$minor/$availableUpdate/$languageFile" .PHP_EOL;
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2
echo "File path: $filePath"; echo "File path: $filePath";
die();
if (file_exists(filename: $filePath)) { if (file_exists(filename: $filePath)) {
$phpBBtbz = file_get_contents(filename: $filePath); $phpBBtbz = file_get_contents(filename: $filePath);
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz); file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
@ -175,6 +176,7 @@ class UpdateController
echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL; echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL;
} }
die();
$useLangDeSie = false; $useLangDeSie = false;
if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) { if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) {
$useLangDeSie = true; $useLangDeSie = true;