Skip to content

Commit

Permalink
Dev Translation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 11, 2020
1 parent 38942b6 commit 19fe6b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions application/libraries/ExtensionInstaller/ExtensionUpdater.php
Expand Up @@ -245,13 +245,13 @@ public function convertExtensionType($type)
{
switch ($type) {
case 'p':
return gT('plugin');
return gT('Plugin');
case 't':
return gT('theme');
return gT('Theme');
case 's':
return gT('survey template');
return gT('Survey template');
case 'q':
return gT('question template');
return gT('Question template');
default:
throw new \Exception();
}
Expand Down
Expand Up @@ -50,7 +50,7 @@ public function move($destdir)

$tempdir = $this->getTempdir();
if (empty($tempdir)) {
throw new \Exception(gT('No temporary folder set, cannot move files.'));
throw new \Exception(gT('Temporary folder cannot be determined.'));
}

if (!file_exists($tempdir)) {
Expand All @@ -62,7 +62,7 @@ public function move($destdir)
}

if (file_exists($destdir) && !rmdirr($destdir)) {
throw new \Exception('Could not clear old files.');
throw new \Exception('Could not remove old files.');
}

return @rename($tempdir, $destdir);
Expand Down Expand Up @@ -193,7 +193,7 @@ protected function checkZipBom()
// Check zip bomb.
\Yii::import('application.helpers.common_helper', true);
if (isZipBomb($_FILES['the_file']['name'])) {
throw new \Exception(gT('Unzipped file is superior to upload_max_filesize or to post_max_size'));
throw new \Exception(gT('Unzipped file is too big.'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion application/libraries/PluginManager/PluginManager.php
Expand Up @@ -109,7 +109,7 @@ public function installUploadedPlugin($destdir)
$configFile = $destdir . '/config.xml';
$extensionConfig = \ExtensionConfig::loadConfigFromFile($configFile);
if (empty($extensionConfig)) {
return [false, gT('Could not parse the plugin config.xml into a configuration object')];
return [false, gT('Could not parse config.xml file.')];
} else {
return $this->installPlugin($extensionConfig, 'upload');
}
Expand Down

0 comments on commit 19fe6b3

Please sign in to comment.