cosmetics

This commit is contained in:
Jean-Christian Denis 2021-11-05 01:21:33 +01:00
parent ce6b10dd3c
commit 6ba756800d
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
5 changed files with 29 additions and 29 deletions

View file

@ -1,7 +1,9 @@
2021.09.25.1 - dev
dev
- [ ] help translation
- [ ] source translation
- [ ] fix third-party API (temp removed)
- sort modules by id
- fix extra whitespace in exported files
2021.09.28
- Fix help (thx Pierre Van Glabeke)

View file

@ -15,67 +15,67 @@ if (!defined('DC_CONTEXT_ADMIN')) {
}
$this->addUserAction(
/* type */
/* type */
'settings',
/* action */
/* action */
'delete_all',
/* ns */
/* ns */
'translater',
/* description */
/* description */
__('delete all settings')
);
$this->addUserAction(
/* type */
/* type */
'plugins',
/* action */
/* action */
'delete',
/* ns */
/* ns */
'translater',
/* description */
/* description */
__('delete plugin files')
);
$this->addUserAction(
/* type */
/* type */
'versions',
/* action */
/* action */
'delete',
/* ns */
/* ns */
'translater',
/* description */
/* description */
__('delete the version number')
);
$this->addDirectAction(
/* type */
/* type */
'settings',
/* action */
/* action */
'delete_all',
/* ns */
/* ns */
'translater',
/* description */
/* description */
sprintf(__('delete all %s settings'), 'translater')
);
$this->addDirectAction(
/* type */
/* type */
'plugins',
/* action */
/* action */
'delete',
/* ns */
/* ns */
'translater',
/* description */
/* description */
sprintf(__('delete %s plugin files'), 'translater')
);
$this->addDirectAction(
/* type */
/* type */
'versions',
/* action */
/* action */
'delete',
/* ns */
/* ns */
'translater',
/* description */
/* description */
sprintf(__('delete %s version number'), 'translater')
);

View file

@ -412,7 +412,7 @@ class dcTranslaterModule
$is_file = preg_match('/^(.*?)\/locales\/(.*?)\/(.*?)(.po|.lang.php)$/', $file, $f);
if ($is_file) {
$module = $f[1] == $this->prop['id'] ?$f[1] : false;
$module = $f[1] == $this->prop['id'] ? $f[1] : false;
$lang = l10n::isCode($f[2]) ? $f[2] : false;
$group = in_array($f[3], dctranslater::$allowed_l10n_groups) ? $f[3] : false;
$ext = dctranslater::isLangphpFile($f[4]) || dctranslater::isPoFile($f[4]) ? $f[4] : false;

View file

@ -10,7 +10,6 @@
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
/**
* Translater proposal tools container.
*/

View file

@ -10,7 +10,6 @@
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
/**
* Translater proposal tool.
*
@ -80,7 +79,7 @@ abstract class translaterProposalTool
*/
final protected function setActive($active)
{
$this->active = (boolean) $active;
$this->active = (bool) $active;
}
/**