From 0246b1812f22b49d9dd8f4913273ca0c5b8d42cd Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 2 Aug 2013 12:31:57 +0200 Subject: [PATCH] cke upd before sync - automate revision note --- serendipity_event_ckeditor/UTF-8/lang_cs.inc.php | 5 ----- serendipity_event_ckeditor/UTF-8/lang_cz.inc.php | 5 ----- serendipity_event_ckeditor/UTF-8/lang_de.inc.php | 6 +----- serendipity_event_ckeditor/UTF-8/lang_en.inc.php | 6 +----- serendipity_event_ckeditor/lang_cs.inc.php | 5 ----- serendipity_event_ckeditor/lang_cz.inc.php | 5 ----- serendipity_event_ckeditor/lang_de.inc.php | 6 +----- serendipity_event_ckeditor/lang_en.inc.php | 6 +----- .../serendipity_event_ckeditor.php | 13 +++++++++++++ 9 files changed, 17 insertions(+), 40 deletions(-) diff --git a/serendipity_event_ckeditor/UTF-8/lang_cs.inc.php b/serendipity_event_ckeditor/UTF-8/lang_cs.inc.php index aa81cb8a..ff03f348 100644 --- a/serendipity_event_ckeditor/UTF-8/lang_cs.inc.php +++ b/serendipity_event_ckeditor/UTF-8/lang_cs.inc.php @@ -18,11 +18,6 @@
  • Abyste umožnili ostatním uživatelům použití CKEditoru, umístěte tento plugin (CKEditor) blízko konce seznamu pluginů.
  • Ujistěte se, že máte v osobním nastavení zapnuto použití WYSIWYG módu.
  • -

    Plugin obsahuje

    -

    Aktualizace

    Tento plugin bude čas od času umožňovat aktualizace pomocí pluginu Spartacus.


    diff --git a/serendipity_event_ckeditor/UTF-8/lang_cz.inc.php b/serendipity_event_ckeditor/UTF-8/lang_cz.inc.php index 025957dd..f9fb04a3 100644 --- a/serendipity_event_ckeditor/UTF-8/lang_cz.inc.php +++ b/serendipity_event_ckeditor/UTF-8/lang_cz.inc.php @@ -18,11 +18,6 @@
  • Abyste umožnili ostatním uživatelům použití CKEditoru, umístěte tento plugin (CKEditor) blízko konce seznamu pluginů.
  • Ujistěte se, že máte v osobním nastavení zapnuto použití WYSIWYG módu.
  • -

    Plugin obsahuje

    -

    Aktualizace

    Tento plugin bude čas od času umožňovat aktualizace pomocí pluginu Spartacus.


    diff --git a/serendipity_event_ckeditor/UTF-8/lang_de.inc.php b/serendipity_event_ckeditor/UTF-8/lang_de.inc.php index 7d3a8bc1..83b4685d 100644 --- a/serendipity_event_ckeditor/UTF-8/lang_de.inc.php +++ b/serendipity_event_ckeditor/UTF-8/lang_de.inc.php @@ -8,6 +8,7 @@ @define('PLUGIN_EVENT_CKEDITOR_NAME', 'CKEditor'); @define('PLUGIN_EVENT_CKEDITOR_DESC', 'Nutzt CKEditor als den Standard WYSIWYG Editor. Dieser ist zur Zeit der state-of-the-art Editor im Internet. Benutzung: Empfohlen! Nach der Installation, lies die Plugin Konfigurations Seite für weitere Informationen.'); +@define('PLUGIN_EVENT_CKEDITOR_REVISION_TITLE', '

    Das Plugin enthält:

    '); @define('PLUGIN_EVENT_CKEDITOR_INSTALL', '

    Installation

    1. Gebe den relativen HTTP Pfad des "ckeditor" Verzeichnisses in die Plugin Konfiguration ein. @@ -19,11 +20,6 @@
    2. Um anderen Plugins Zugriff auf das Plugin oder dessen Hook zu gewähren, plaziere das (CKEditor) Plugin nahe dem Ende deiner Pluginliste.
    3. Versichere dich, dass der WYSIWYG Modus in den "Persönlichen Einstellungen" eingeschaltet ist.
    -

    Das Plugin enthält

    -

    Manuelle Erweiterungen mit CKEDITOR Plugins

      diff --git a/serendipity_event_ckeditor/UTF-8/lang_en.inc.php b/serendipity_event_ckeditor/UTF-8/lang_en.inc.php index 94b48f8f..f3dee9a9 100644 --- a/serendipity_event_ckeditor/UTF-8/lang_en.inc.php +++ b/serendipity_event_ckeditor/UTF-8/lang_en.inc.php @@ -8,6 +8,7 @@ @define('PLUGIN_EVENT_CKEDITOR_NAME', 'CKEditor'); @define('PLUGIN_EVENT_CKEDITOR_DESC', 'Uses CKEditor as the default WYSIWYG editor. This currently is the state-of-the-art Editor itself. Usage: Recommended! After installation, go to the configuration screen of this plugin for further instructions.'); +@define('PLUGIN_EVENT_CKEDITOR_REVISION_TITLE', '

      This Plugin includes:

      '); @define('PLUGIN_EVENT_CKEDITOR_INSTALL', '

      Installation

      1. Enter the relative HTTP path to the "ckeditor" directory in plugin configuration. @@ -19,11 +20,6 @@
      2. To allow other plugins to use or hook into the editor, place this (CKEditor) plugin near the end of your plugin list.
      3. Make sure to enable WYSIWYG mode in your personal preferences.
      -

      Plugin includes

      -

      Manually extending with CKEDITOR Plugins

        diff --git a/serendipity_event_ckeditor/lang_cs.inc.php b/serendipity_event_ckeditor/lang_cs.inc.php index 6c771131..974a9d69 100644 --- a/serendipity_event_ckeditor/lang_cs.inc.php +++ b/serendipity_event_ckeditor/lang_cs.inc.php @@ -18,11 +18,6 @@
      1. Abyste umonili ostatnm uivatelm pouit CKEditoru, umstte tento plugin (CKEditor) blzko konce seznamu plugin.
      2. Ujistte se, e mte v osobnm nastaven zapnuto pouit WYSIWYG mdu.
      -

      Plugin obsahuje

      -

      Aktualizace

      Tento plugin bude as od asu umoovat aktualizace pomoc pluginu Spartacus.


      diff --git a/serendipity_event_ckeditor/lang_cz.inc.php b/serendipity_event_ckeditor/lang_cz.inc.php index 839bbc84..86685aff 100644 --- a/serendipity_event_ckeditor/lang_cz.inc.php +++ b/serendipity_event_ckeditor/lang_cz.inc.php @@ -18,11 +18,6 @@
    1. Abyste umonili ostatnm uivatelm pouit CKEditoru, umstte tento plugin (CKEditor) blzko konce seznamu plugin.
    2. Ujistte se, e mte v osobnm nastaven zapnuto pouit WYSIWYG mdu.
    -

    Plugin obsahuje

    -

    Aktualizace

    Tento plugin bude as od asu umoovat aktualizace pomoc pluginu Spartacus.


    diff --git a/serendipity_event_ckeditor/lang_de.inc.php b/serendipity_event_ckeditor/lang_de.inc.php index a907d9ed..1d74d5e5 100644 --- a/serendipity_event_ckeditor/lang_de.inc.php +++ b/serendipity_event_ckeditor/lang_de.inc.php @@ -8,6 +8,7 @@ @define('PLUGIN_EVENT_CKEDITOR_NAME', 'CKEditor'); @define('PLUGIN_EVENT_CKEDITOR_DESC', 'Nutzt CKEditor als den Standard WYSIWYG Editor. Dieser ist zur Zeit der state-of-the-art Editor im Internet. Benutzung: Empfohlen! Nach der Installation, lies die Plugin Konfigurations Seite fr weitere Informationen.'); +@define('PLUGIN_EVENT_CKEDITOR_REVISION_TITLE', '

    Das Plugin enthlt:

    '); @define('PLUGIN_EVENT_CKEDITOR_INSTALL', '

    Installation

    1. Gebe den relativen HTTP Pfad des "ckeditor" Verzeichnisses in die Plugin Konfiguration ein. @@ -19,11 +20,6 @@
    2. Um anderen Plugins Zugriff auf das Plugin oder dessen Hook zu gewhren, plaziere das (CKEditor) Plugin nahe dem Ende deiner Pluginliste.
    3. Versichere dich, dass der WYSIWYG Modus in den "Persnlichen Einstellungen" eingeschaltet ist.
    -

    Das Plugin enthlt

    -

    Manuelle Erweiterungen mit CKEDITOR Plugins

      diff --git a/serendipity_event_ckeditor/lang_en.inc.php b/serendipity_event_ckeditor/lang_en.inc.php index de903222..18e69a55 100644 --- a/serendipity_event_ckeditor/lang_en.inc.php +++ b/serendipity_event_ckeditor/lang_en.inc.php @@ -7,6 +7,7 @@ */ @define('PLUGIN_EVENT_CKEDITOR_NAME', 'CKEditor'); @define('PLUGIN_EVENT_CKEDITOR_DESC', 'Uses CKEditor as the default WYSIWYG editor. This currently is the state-of-the-art Editor itself. Usage: Recommended! After installation, go to the configuration screen of this plugin for further instructions.'); +@define('PLUGIN_EVENT_CKEDITOR_REVISION_TITLE', '

      This Plugin includes:

      '); @define('PLUGIN_EVENT_CKEDITOR_INSTALL', '

      Installation

      1. Enter the relative HTTP path to the "ckeditor" directory in plugin configuration. @@ -18,11 +19,6 @@
      2. To allow other plugins to use or hook into the editor, place this (CKEditor) plugin near the end of your plugin list.
      3. Make sure to enable WYSIWYG mode in your personal preferences.
      -

      Plugin includes

      -

      Manually extending with CKEDITOR Plugins

        diff --git a/serendipity_event_ckeditor/serendipity_event_ckeditor.php b/serendipity_event_ckeditor/serendipity_event_ckeditor.php index e93338cf..b7d9a5ac 100644 --- a/serendipity_event_ckeditor/serendipity_event_ckeditor.php +++ b/serendipity_event_ckeditor/serendipity_event_ckeditor.php @@ -57,6 +57,15 @@ class serendipity_event_ckeditor extends serendipity_event */ protected $checkUpdateVersion = array('ckeditor:4.1.3', 'kcfinder:2.52-2'); + /** + * Access property revisionPackage + * Note revisions of ckeditor, kcfinder and plugin additions to lang files + * @var array + */ + protected $revisionPackage = array("
      1. CKEditor 4.1.3 (revision 1baa4c5, standard package, 2013-07-18)
      2. \n", + "
      3. KCFinder 2.52-dev (git package, 2013-05-04)
      4. \n", + "
      5. Ckeditor-Plugin: mediaembed, author Fabian Vogelsteller [frozeman.de] (git package, 2013-07-25)
      6. \n"); + function install() { global $serendipity; @@ -169,6 +178,10 @@ class serendipity_event_ckeditor extends serendipity_event $installer = $this->get_config('installer'); // Can't use method return value in write context in '' with substr(), get_config() and isset() $parts = explode(':', $this->checkUpdateVersion[0]); // this is ckeditor only + echo PLUGIN_EVENT_CKEDITOR_REVISION_TITLE; + // hook this as a scalar value into this plugins lang files + echo "\n
          \n" . implode('', $this->revisionPackage) . "
        \n\n"; + if( isset($installer) && !empty($installer) ) { switch ($installer[0]) { case '4': // this won't happen, since case 2 is true - just a fake