clean up and release

master
Jean-Christian Paul Denis 2021-09-02 23:44:01 +02:00
parent d5ba4e1298
commit 6277dbc7ce
18 changed files with 483 additions and 429 deletions

View File

@ -1,109 +1,115 @@
x.x xxxxxxxx 2021.09.02.1 - dev
- help translation - [ ] help translation
- source translation - [ ] source translation
- [ ] fix constante for official modules
- [ ] fix third-party API (all are broken)
- [ ] add dashboard icon
2021.09.02
- clean up code and fix typo
2021.08.18 2021.08.18
* Fixed PSR-2 Coding Style - Fixed PSR-2 Coding Style
* Move settings to _config file - Move settings to config file
2018.10.26 - Pierre Van Glabeke 2018.10.26 - Pierre Van Glabeke
* Bug avec php 7.2 (https://forum.dotclear.org/viewtopic.php?pid=342810#p342810) - Bug avec php 7.2 (https://forum.dotclear.org/viewtopic.php?pid=342810#p342810)
2018.10.18 - Pierre Van Glabeke 2018.10.18 - Pierre Van Glabeke
* Modifs localisation - Modifs localisation
2018.02.14 - Pierre Van Glabeke 2018.02.14 - Pierre Van Glabeke
* Suppression ?> en fin de lang.php - Suppression ?> en fin de lang.php
2017.05.10 - Pierre Van Glabeke 2017.05.10 - Pierre Van Glabeke
* Suppression ligne 614 de "continue" dans \inc\class.dc.translater.php - Suppression ligne 614 de "continue" dans \inc\class.dc.translater.php
2016.08.20 - Pierre Van Glabeke 2016.08.20 - Pierre Van Glabeke
* Ajout Pluriel dans po - Ajout Pluriel dans po
* Ajout favori - Ajout favori
2016.07.08 - Pierre Van Glabeke 2016.07.08 - Pierre Van Glabeke
* Modifs localisation - Modifs localisation
2013.05.11 2013.05.11
* Rewrited proposal tools - Rewrited proposal tools
* Added Microsoft translation tool - Added Microsoft translation tool
* Updated Google translation tool - Updated Google translation tool
* Removed permissions, now required superadmin - Removed permissions, now required superadmin
* Fixed page title and messages and contents - Fixed page title and messages and contents
* Moved all sub-pages into one page - Moved all sub-pages into one page
1.5 20100901 1.5 - 2010.09.01
* Added option to set defaut tab (closes #552) - Added option to set defaut tab (closes #552)
* Fixed occurrences count (closes #551) - Fixed occurrences count (closes #551)
* Fixed regxep (closes #550) - Fixed regxep (closes #550)
* Cleaned design (thanks to osku) - Cleaned design (thanks to osku)
1.4.2 20100901 1.4.2 - 2010.09.01
* Tried to fix crash with regexp on parsing .po file - Tried to fix crash with regexp on parsing .po file
1.4.1 20100626 1.4.1 - 2010.06.26
* Fixed crash on .po files - Fixed crash on .po files
* Fixed toggle function - Fixed toggle function
* Fixed admin crash on non 2.2 - Fixed admin crash on non 2.2
* Fixed minor bugs - Fixed minor bugs
* Added option to hide default modules of Dotclear - Added option to hide default modules of Dotclear
1.4 20100605 1.4 - 2010.06.05
* Switched to DC 2.2 - Switched to DC 2.2
* Added toogle list of existing translation - Added toogle list of existing translation
* Fixed google translate (now uses Google ajax API) - Fixed google translate (now uses Google ajax API)
* Removed "simple mode" - Removed "simple mode"
* Changed admin interface (easy, light, fast) - Changed admin interface (easy, light, fast)
1.3 20091025 1.3 - 2009.10.25
* Added babelfish help - Added babelfish help
* Added behaviors on files writing - Added behaviors on files writing
* Fixed regexp again - Fixed regexp again
* Changed priority to .po files instead of .lang.php files - Changed priority to .po files instead of .lang.php files
1.2 20091010 1.2 - 2009.10.10
* Added direct text copy and paste - Added direct text copy and paste
* Added grouping file change - Added grouping file change
* Fixed some typo - Fixed some typo
1.1 20091002 1.1 - 2009.10.02
* Added the proposed translation - Added the proposed translation
* Rewrited settings system - Rewrited settings system
* Speed up expert mode - Speed up expert mode
1.0 20090928 1.0 - 2009.09.28
* Added translation of template files. closes #250 - Added translation of template files. closes #250
0.9 20090923 0.9 - 2009.09.23
* Fixed bug on translate escape string - Fixed bug on translate escape string
* Added _uninstall.php support - Added _uninstall.php support
0.8 20090816 0.8 - 2009.08.16
* Fixed php 5.3 compatibility - Fixed php 5.3 compatibility
0.7 0.7
* Fixed some l10n - Fixed some l10n
* Fixed ''xhtml strict'' validation - Fixed ''xhtml strict'' validation
0.6 0.6
* Added ''author'' to langs files - Added ''author'' to langs files
* Added ''two-cols'' option - Added ''two-cols'' option
* Added ''sort option'' on array of translations - Added ''sort option'' on array of translations
* Fixed ''bugs'' with no theme - Fixed ''bugs'' with no theme
* Fixed ''bugs'' with folder perms - Fixed ''bugs'' with folder perms
* Fixed ''nothing to update" in simple mode - Fixed ''nothing to update" in simple mode
* Fixed ''bugs'' in Import/export - Fixed ''bugs'' in Import/export
* Fixed ''html >'' like DC changset 2385 - Fixed ''html >'' like DC changset 2385
* Fixed ''xhtml strict'' validation - Fixed ''xhtml strict'' validation
0.5 0.5
* Fixed ''admin url'' - Fixed ''admin url''
* Added user perm check - Added user perm check
* Fixed ''bugs'' with bad strings (close #166) - Fixed ''bugs'' with bad strings (close #166)
0.4 0.4
* Changed default tab to plugin - Changed default tab to plugin
* Replaced list of modules in select box rather than in help - Replaced list of modules in select box rather than in help
* Fixed wrong message when nothing to export - Fixed wrong message when nothing to export
* Added help in helpBlock - Added help in helpBlock

38
README.md 100644
View File

@ -0,0 +1,38 @@
# README
## WHAT IS TRANSLATER ?
_translater_ is a plugins for the open-source
web publishing software called Dotclear.
It helps dev to translate plugin and theme.
## REQUIREMENTS
_translater_ requires:
* administrator permissions
* Dotclear 2.19
* Custom templates if default theme is not used.
## USAGE
First install _translater_, mannualy from a zip package or from
Dotaddict repository. (See Dotclear's documentation to know how do this)
Go to ''plugins manager'', expand _translater_ information then
go to ''configure plugin'', fill in form.
Once it's done you can manage your plugins and themes languages from menu
''Translater'' on sidebar menu.
## MORE
* License : GNU GPL v2
* Source & contribution : [GitHub Page](https://github.com/JcDenis/saba)
* Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/saba)
## CONTRIBUTORS
* Jean-Chritian Denis
* Pierre Van Glabeke

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_MODULE')) { if (!defined('DC_CONTEXT_MODULE')) {
return null; return null;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return; return;
@ -21,10 +21,11 @@ $this->registerModule(
'Jean-Christian Denis & contributors', 'Jean-Christian Denis & contributors',
'2021.08.18', '2021.08.18',
[ [
'requires' => [['core', '2.19']],
'permissions' => 'usage,contentadmin,admin', 'permissions' => 'usage,contentadmin,admin',
'type' => 'plugin', 'type' => 'plugin',
'dc_min' => '2.18',
'support' => 'http://forum.dotclear.org/viewtopic.php?id=39220', 'support' => 'http://forum.dotclear.org/viewtopic.php?id=39220',
'details' => 'https://plugins.dotaddict.org/dc2/details/translater' 'details' => 'https://plugins.dotaddict.org/dc2/details/translater',
'repository' => 'https://raw.githubusercontent.com/JcDenis/translater/master/dcstore.xml'
] ]
); );

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_RC_PATH')) { if (!defined('DC_RC_PATH')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;
@ -36,7 +36,6 @@ $this->addUserAction(
/* description */ __('delete the version number') /* description */ __('delete the version number')
); );
$this->addDirectAction( $this->addDirectAction(
/* type */ 'settings', /* type */ 'settings',
/* action */ 'delete_all', /* action */ 'delete_all',

11
dcstore.xml 100644
View File

@ -0,0 +1,11 @@
<modules xmlns:da="http://dotaddict.org/da/">
<module id="translater">
<name>Traducteur</name>
<version>2021.08.18</version>
<author>Jean-Christian Denis &amp; contributors</author>
<desc>Translate your Dotclear plugins and themes</desc>
<file>https://github.com/JcDenis/translater/releases/download/v2021.08.18/plugin-translater.zip</file>
<da:details>https://plugins.dotaddict.org/dc2/details/translater</da:details>
<da:support>http://forum.dotclear.org/viewtopic.php?id=39220</da:support>
</module>
</modules>

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
/** /**
* Translater proposal tools container. * Translater proposal tools container.

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
/** /**
* Translater proposal tool. * Translater proposal tool.

View File

@ -1,15 +1,15 @@
<?php <?php
# -- BEGIN LICENSE BLOCK ---------------------------------- /**
# * @brief translater, a plugin for Dotclear 2
# This file is part of translater, a plugin for Dotclear 2. *
# * @package Dotclear
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors * @subpackage Plugin
# *
# Licensed under the GPL version 2.0 license. * @author Jean-Christian Denis & contributors
# A copy of this license is available in LICENSE file or at *
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * @copyright Jean-Christian Denis
# * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------ */
if (!defined('DC_CONTEXT_ADMIN')) { if (!defined('DC_CONTEXT_ADMIN')) {
return; return;

View File

@ -417,4 +417,3 @@ $GLOBALS['__l10n']['Enable menu on themes page'] = 'Activer le menu sur la page
$GLOBALS['__l10n']['translater'] = 'Traducteur'; $GLOBALS['__l10n']['translater'] = 'Traducteur';
$GLOBALS['__l10n']['Translate your Dotclear plugins and themes'] = 'Traduire vos plugins et thèmes pour Dotclear'; $GLOBALS['__l10n']['Translate your Dotclear plugins and themes'] = 'Traduire vos plugins et thèmes pour Dotclear';