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
- help translation
- source translation
2021.09.02.1 - dev
- [ ] help 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
* Fixed PSR-2 Coding Style
* Move settings to _config file
- Fixed PSR-2 Coding Style
- Move settings to config file
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
* Modifs localisation
- Modifs localisation
2018.02.14 - Pierre Van Glabeke
* Suppression ?> en fin de lang.php
- Suppression ?> en fin de lang.php
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
* Ajout Pluriel dans po
* Ajout favori
- Ajout Pluriel dans po
- Ajout favori
2016.07.08 - Pierre Van Glabeke
* Modifs localisation
- Modifs localisation
2013.05.11
* Rewrited proposal tools
* Added Microsoft translation tool
* Updated Google translation tool
* Removed permissions, now required superadmin
* Fixed page title and messages and contents
* Moved all sub-pages into one page
- Rewrited proposal tools
- Added Microsoft translation tool
- Updated Google translation tool
- Removed permissions, now required superadmin
- Fixed page title and messages and contents
- Moved all sub-pages into one page
1.5 20100901
* Added option to set defaut tab (closes #552)
* Fixed occurrences count (closes #551)
* Fixed regxep (closes #550)
* Cleaned design (thanks to osku)
1.5 - 2010.09.01
- Added option to set defaut tab (closes #552)
- Fixed occurrences count (closes #551)
- Fixed regxep (closes #550)
- Cleaned design (thanks to osku)
1.4.2 20100901
* Tried to fix crash with regexp on parsing .po file
1.4.2 - 2010.09.01
- Tried to fix crash with regexp on parsing .po file
1.4.1 20100626
* Fixed crash on .po files
* Fixed toggle function
* Fixed admin crash on non 2.2
* Fixed minor bugs
* Added option to hide default modules of Dotclear
1.4.1 - 2010.06.26
- Fixed crash on .po files
- Fixed toggle function
- Fixed admin crash on non 2.2
- Fixed minor bugs
- Added option to hide default modules of Dotclear
1.4 20100605
* Switched to DC 2.2
* Added toogle list of existing translation
* Fixed google translate (now uses Google ajax API)
* Removed "simple mode"
* Changed admin interface (easy, light, fast)
1.4 - 2010.06.05
- Switched to DC 2.2
- Added toogle list of existing translation
- Fixed google translate (now uses Google ajax API)
- Removed "simple mode"
- Changed admin interface (easy, light, fast)
1.3 20091025
* Added babelfish help
* Added behaviors on files writing
* Fixed regexp again
* Changed priority to .po files instead of .lang.php files
1.3 - 2009.10.25
- Added babelfish help
- Added behaviors on files writing
- Fixed regexp again
- Changed priority to .po files instead of .lang.php files
1.2 20091010
* Added direct text copy and paste
* Added grouping file change
* Fixed some typo
1.2 - 2009.10.10
- Added direct text copy and paste
- Added grouping file change
- Fixed some typo
1.1 20091002
* Added the proposed translation
* Rewrited settings system
* Speed up expert mode
1.1 - 2009.10.02
- Added the proposed translation
- Rewrited settings system
- Speed up expert mode
1.0 20090928
* Added translation of template files. closes #250
1.0 - 2009.09.28
- Added translation of template files. closes #250
0.9 20090923
* Fixed bug on translate escape string
* Added _uninstall.php support
0.9 - 2009.09.23
- Fixed bug on translate escape string
- Added _uninstall.php support
0.8 20090816
* Fixed php 5.3 compatibility
0.8 - 2009.08.16
- Fixed php 5.3 compatibility
0.7
* Fixed some l10n
* Fixed ''xhtml strict'' validation
- Fixed some l10n
- Fixed ''xhtml strict'' validation
0.6
* Added ''author'' to langs files
* Added ''two-cols'' option
* Added ''sort option'' on array of translations
* Fixed ''bugs'' with no theme
* Fixed ''bugs'' with folder perms
* Fixed ''nothing to update" in simple mode
* Fixed ''bugs'' in Import/export
* Fixed ''html >'' like DC changset 2385
* Fixed ''xhtml strict'' validation
- Added ''author'' to langs files
- Added ''two-cols'' option
- Added ''sort option'' on array of translations
- Fixed ''bugs'' with no theme
- Fixed ''bugs'' with folder perms
- Fixed ''nothing to update" in simple mode
- Fixed ''bugs'' in Import/export
- Fixed ''html >'' like DC changset 2385
- Fixed ''xhtml strict'' validation
0.5
* Fixed ''admin url''
* Added user perm check
* Fixed ''bugs'' with bad strings (close #166)
- Fixed ''admin url''
- Added user perm check
- Fixed ''bugs'' with bad strings (close #166)
0.4
* Changed default tab to plugin
* Replaced list of modules in select box rather than in help
* Fixed wrong message when nothing to export
* Added help in helpBlock
- Changed default tab to plugin
- Replaced list of modules in select box rather than in help
- Fixed wrong message when nothing to export
- 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
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of translater, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
/**
* @brief translater, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis & contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_ADMIN')) {
return;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,15 +1,15 @@
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of translater, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
/**
* @brief translater, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis & contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_ADMIN')) {
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']['Translate your Dotclear plugins and themes'] = 'Traduire vos plugins et thèmes pour Dotclear';