cosmetics

master
Jean-Christian Paul 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 - [ ] help translation
- [ ] source translation - [ ] source translation
- [ ] fix third-party API (temp removed) - [ ] fix third-party API (temp removed)
- sort modules by id
- fix extra whitespace in exported files
2021.09.28 2021.09.28
- Fix help (thx Pierre Van Glabeke) - Fix help (thx Pierre Van Glabeke)

View File

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

View File

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

View File

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

View File

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