In previous version of WCF, the progress was calculated upon a known amount of steps. This is no longer valid and the calculation within the real ACP-based installation is independent. Since the WCFSetup itself is not performing the installation itself, this behavior was changed to reflect the preparation progress.
* @param integer $currentStep
*/
protected function calcProgress($currentStep) {
- // count delivered packages
- $packages = 1; // one for wcf setup
- $tar = new Tar(SETUP_FILE);
- foreach ($tar->getContentList() as $file) {
- if ($file['type'] != 'folder' && StringUtil::indexOf($file['filename'], 'install/packages/') === 0) {
- $packages++;
- }
- }
- $tar->close();
-
- // calculate part of total install
- $part = 100 / $packages;
-
// calculate progress
- $progress = round($part / 11 * $currentStep, 0);
+ $progress = round((100 / 12) * ++$currentStep, 0);
self::getTPL()->assign(array('progress' => $progress));
}
<category name="wcf.global">
<item name="wcf.global.pageTitle"><![CDATA[{$setupPackageName} Installation]]></item>
<item name="wcf.global.title"><![CDATA[{$setupPackageName}]]></item>
- <item name="wcf.global.title.subtitle"><![CDATA[Installation]]></item>
+ <item name="wcf.global.title.subtitle"><![CDATA[Vorbereiten der Installation]]></item>
<item name="wcf.global.pageDirection"><![CDATA[ltr]]></item>
<item name="wcf.global.locale.unix"><![CDATA[de_DE]]></item>
<item name="wcf.global.locale.win"><![CDATA[deu_deu]]></item>
<category name="wcf.global">
<item name="wcf.global.pageTitle"><![CDATA[{$setupPackageName} installation]]></item>
<item name="wcf.global.title"><![CDATA[{$setupPackageName}]]></item>
- <item name="wcf.global.title.subtitle"><![CDATA[Installation]]></item>
+ <item name="wcf.global.title.subtitle"><![CDATA[Prepairing installation]]></item>
<item name="wcf.global.pageDirection"><![CDATA[ltr]]></item> <!-- system variable; do not translate -->
<item name="wcf.global.locale.unix"><![CDATA[en_US]]></item> <!-- system variable; do not translate -->
<item name="wcf.global.locale.win"><![CDATA[english]]></item> <!-- system variable; do not translate -->