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 - [ ] 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

@ -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;
} }
/** /**