removed debug stuff
This commit is contained in:
parent
a1b030e463
commit
2fd033a8c5
|
@ -151,25 +151,21 @@ class UpdateController
|
||||||
$useLangDeDu = false;
|
$useLangDeDu = false;
|
||||||
if (file_exists(filename: $phpBBRootPath . 'language/de')) {
|
if (file_exists(filename: $phpBBRootPath . 'language/de')) {
|
||||||
$useLangDeDu = true;
|
$useLangDeDu = true;
|
||||||
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de-3.3.10.tar.bz2
|
|
||||||
$languageFile = "phpBB_lang_de-$availableUpdate.tar.bz2";
|
$languageFile = "phpBB_lang_de-$availableUpdate.tar.bz2";
|
||||||
echo "Language file: $languageFile.";
|
|
||||||
$langDeDuTarget = "dist/$languageFile";
|
$langDeDuTarget = "dist/$languageFile";
|
||||||
|
|
||||||
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";
|
||||||
// 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";
|
|
||||||
if ($phpBBtbz = file_get_contents(filename: $filePath)) {
|
if ($phpBBtbz = file_get_contents(filename: $filePath)) {
|
||||||
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
|
file_put_contents(filename: $langDeDuTarget, data: $phpBBtbz);
|
||||||
} else {
|
} else {
|
||||||
echo "Language file $languageFile does not exist." . PHP_EOL;
|
echo " Language file $languageFile does not exist." . PHP_EOL;
|
||||||
$useLangDeDu = false;
|
$useLangDeDu = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo 'Language file ' . $languageFile . ' already exists' . PHP_EOL;
|
echo ' Language file ' . $languageFile . ' already exists' . PHP_EOL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL;
|
echo 'Language Deutsch "Du" ist not installed, skipping' . PHP_EOL;
|
||||||
|
@ -179,23 +175,20 @@ class UpdateController
|
||||||
if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) {
|
if (file_exists(filename: $phpBBRootPath . 'language/de_x_sie')) {
|
||||||
$useLangDeSie = true;
|
$useLangDeSie = true;
|
||||||
$languageFile = "phpBB_lang_de_x_sie-$availableUpdate.tar.bz2";
|
$languageFile = "phpBB_lang_de_x_sie-$availableUpdate.tar.bz2";
|
||||||
echo "Language file: $languageFile.";
|
|
||||||
$langDeSieTarget = "dist/$languageFile";
|
$langDeSieTarget = "dist/$languageFile";
|
||||||
|
|
||||||
if (!file_exists(filename: $langDeSieTarget)) {
|
if (!file_exists(filename: $langDeSieTarget)) {
|
||||||
echo " Downloading language $languageFile" . PHP_EOL;
|
echo " Downloading language $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";
|
||||||
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de_x_sie-3.3.10.tar.bz2
|
|
||||||
// https://downloads.phpbb.de/pakete/deutsch/3.3/3.3.10/phpBB_lang_de_x_sie-3.3.10.tar.bz2
|
|
||||||
|
|
||||||
if ($phpBBtbz = file_get_contents(filename: $filePath)) {
|
if ($phpBBtbz = file_get_contents(filename: $filePath)) {
|
||||||
file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz);
|
file_put_contents(filename: $langDeSieTarget, data: $phpBBtbz);
|
||||||
} else {
|
} else {
|
||||||
echo 'Language file ' . $languageFile . ' does not exist' . PHP_EOL;
|
echo ' Language file ' . $languageFile . ' does not exist' . PHP_EOL;
|
||||||
$useLangDeSie = false;
|
$useLangDeSie = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo 'Language file ' . $languageFile . ' already exists' . PHP_EOL;
|
echo ' Language file ' . $languageFile . ' already exists' . PHP_EOL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo 'Language Deutsch "Sie" ist not installed, skipping' . PHP_EOL;
|
echo 'Language Deutsch "Sie" ist not installed, skipping' . PHP_EOL;
|
||||||
|
|
Loading…
Reference in New Issue