Smuggli has submitted this change and it was merged.

Change subject: Implemented changes for translatewiki
......................................................................


Implemented changes for translatewiki

Moved to Json i18n files
Fixed escaped linebreaks
Corrected some messages
All keys lowercase

Change-Id: I8407e91ee7751ae6116ab5befa634de683c8fbd0
---
M ShoutBox/ShoutBox.setup.php
A ShoutBox/i18n/de-formal.json
A ShoutBox/i18n/de.json
A ShoutBox/i18n/en.json
A ShoutBox/i18n/qqq.json
M ShoutBox/languages/ShoutBox.i18n.php
M ShoutBox/resources/bluespice.shoutBox.js
M ShoutBox/views/view.ShoutBox.php
8 files changed, 155 insertions(+), 119 deletions(-)

Approvals:
  Smuggli: Verified; Looks good to me, approved
  Siebrand: Looks good to me, but someone else must approve



diff --git a/ShoutBox/ShoutBox.setup.php b/ShoutBox/ShoutBox.setup.php
index 92fc639..0aa0c97 100644
--- a/ShoutBox/ShoutBox.setup.php
+++ b/ShoutBox/ShoutBox.setup.php
@@ -2,6 +2,8 @@
 
 BsExtensionManager::registerExtension('ShoutBox', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
 
+$wgMessagesDirs['ShoutBox'] = __DIR__ . '/i18n';
+
 $wgExtensionMessagesFiles['ShoutBox'] = __DIR__ . 
'/languages/ShoutBox.i18n.php';
 $wgExtensionMessagesFiles['ShoutBoxMagic'] = __DIR__ . 
'/languages/ShoutBox.i18n.magic.php';
 
@@ -17,13 +19,14 @@
                'bs-shoutbox-confirm-text',
                'bs-shoutbox-confirm-title',
                'bs-shoutbox-entermessage',
-               'bs-shoutbox-too-early'
+               'bs-shoutbox-too-early',
+               'bs-shoutbox-charactersleft'
        ),
        'position' => 'bottom'
 ) + $aResourceModuleTemplate;
 
 $wgResourceModules['ext.bluespice.shoutbox.styles'] = array(
-       'styles'  => 'bluespice.shoutBox.css',
+       'styles' => 'bluespice.shoutBox.css',
 ) + $aResourceModuleTemplate;
 
 unset( $aResourceModuleTemplate );
diff --git a/ShoutBox/i18n/de-formal.json b/ShoutBox/i18n/de-formal.json
new file mode 100644
index 0000000..d4d1853
--- /dev/null
+++ b/ShoutBox/i18n/de-formal.json
@@ -0,0 +1,11 @@
+{
+    "@metadata": {
+        "authors": [
+            "Stephan Muggli <[email protected]>"
+        ]
+    },
+    "bs-shoutbox-archive-failure": "Beim Löschen des Eintrags ist ein Fehler 
aufgetreten, bitte versuchen Sie es erneut.",
+    "bs-shoutbox-confirm-text": "Möchten Sie diesen Eintrag wirklich löschen?",
+    "bs-shoutbox-entermessage": "Bitte geben Sie eine Nachricht ein.",
+    "bs-shoutbox-too-early": "Bitte warten Sie ein paar Sekunden, bevor Sie 
den nächsten Eintrag abschicken."
+}
diff --git a/ShoutBox/i18n/de.json b/ShoutBox/i18n/de.json
new file mode 100644
index 0000000..7c44e6a
--- /dev/null
+++ b/ShoutBox/i18n/de.json
@@ -0,0 +1,30 @@
+{
+    "@metadata": {
+        "authors": [
+            "Stephan Muggli <[email protected]>"
+        ]
+    },
+    "bs-shoutbox-desc": "Stellt eine Shoutbox unterhalb jeder Seite bereit",
+    "prefs-shoutbox": "Shoutbox",
+    "bs-shoutbox-title": "Shoutbox",
+    "bs-shoutbox-message": "Mitteilung",
+    "bs-shoutbox-shout": "Schicken",
+    "bs-shoutbox-no-entries": "Bisher wurden keine Mitteilungen gesendet.",
+    "bs-shoutbox-loading": "Lade...",
+    "bs-shoutbox-pref-committimeinterval": "Zeit zwischen zwei Eintragungen 
(Sekunden):",
+    "bs-shoutbox-pref-maxmessagelength": "Maximale Länge der Mittelungen",
+    "bs-shoutbox-pref-numberofshouts": "Anzahl der dargestellten Mitteilungen",
+    "bs-shoutbox-pref-showage": "Alter der Mitteilung anzeigen",
+    "bs-shoutbox-pref-showuser": "Sender der Mitteilung anzeigen",
+    "bs-shoutbox-pref-allowarchive": "Benutzer können ihre eigenen Einträge 
löschen",
+    "bs-shoutbox-archive-success": "Eintrag wurde erfolgreich gelöscht.",
+    "bs-shoutbox-archive-failure": "Beim Löschen des Eintrags ist ein Fehler 
aufgetreten, bitte versuche es erneut.",
+    "bs-shoutbox-archive-failure-user": "Einträge können nur von deren Autor 
gelöscht werden.",
+    "bs-shoutbox-switch-description": "Shoutbox wird auf dieser Seite nicht 
angezeigt",
+    "bs-shoutbox-pref-show": "Shoutbox anzeigen",
+    "bs-shoutbox-charactersleft": "$1 Zeichen übrig",
+    "bs-shoutbox-confirm-text": "Möchtest du diesen Eintrag wirklich löschen?",
+    "bs-shoutbox-confirm-title": "Bestätigen",
+    "bs-shoutbox-entermessage": "Bitte gib eine Nachricht ein.",
+    "bs-shoutbox-too-early": "Bitte warte ein paar Sekunden, bevor du den 
nächsten Eintrag abschickst."
+}
diff --git a/ShoutBox/i18n/en.json b/ShoutBox/i18n/en.json
new file mode 100644
index 0000000..3cffd82
--- /dev/null
+++ b/ShoutBox/i18n/en.json
@@ -0,0 +1,30 @@
+{
+    "@metadata": {
+        "authors": [
+            "Stephan Muggli <[email protected]>"
+        ]
+    },
+    "bs-shoutbox-desc": "Adds a shoutbox after the content of a page",
+    "prefs-shoutbox": "Shoutbox",
+    "bs-shoutbox-title": "Shoutbox",
+    "bs-shoutbox-message": "Message",
+    "bs-shoutbox-shout": "Shout it",
+    "bs-shoutbox-no-entries": "Nothing here yet.",
+    "bs-shoutbox-loading": "Loading...",
+    "bs-shoutbox-pref-committimeinterval": "Time between two messages (in 
seconds):",
+    "bs-shoutbox-pref-maxmessagelength": "Maximum length of a message:",
+    "bs-shoutbox-pref-numberofshouts": "Number of messages shown:",
+    "bs-shoutbox-pref-showage": "Show creation date of a message",
+    "bs-shoutbox-pref-showuser": "Show author of a message",
+    "bs-shoutbox-pref-allowarchive": "User are able to delete their own 
entries",
+    "bs-shoutbox-pref-show": "Display shoutbox",
+    "bs-shoutbox-archive-success": "Entry deleted.",
+    "bs-shoutbox-archive-failure": "An error occurred while trying to delete 
the entry, please try again.",
+    "bs-shoutbox-archive-failure-user": "Entries can only be deleted by their 
author.",
+    "bs-shoutbox-switch-description": "Hides shoutbox on this page",
+    "bs-shoutbox-charactersleft": "$1 character{{PLURAL:$1||s}} left",
+    "bs-shoutbox-confirm-text": "Do you really want to delete this entry?",
+    "bs-shoutbox-confirm-title": "Confirm",
+    "bs-shoutbox-entermessage": "Please enter a message.",
+    "bs-shoutbox-too-early": "Please wait a few seconds before submitting the 
next entry."
+}
diff --git a/ShoutBox/i18n/qqq.json b/ShoutBox/i18n/qqq.json
new file mode 100644
index 0000000..393bdf9
--- /dev/null
+++ b/ShoutBox/i18n/qqq.json
@@ -0,0 +1,30 @@
+{
+    "@metadata": {
+        "authors": [
+            "Stephan Muggli <[email protected]>"
+        ]
+    },
+    "bs-shoutbox-desc": "Used in [[Special:Wiki_Admin&mode=ExtensionInfo]], 
description of shoutbox extension",
+    "prefs-shoutbox": "Used in [[Special:Wiki_Admin&mode=Preferences]], 
headline for shout box section in preferences. \n {{Identical|Shoutbox}}",
+    "bs-shoutbox-title": "Fieldset legend for shoutbox",
+    "bs-shoutbox-message": "Default text in textarea for message",
+    "bs-shoutbox-shout": "Shout it",
+    "bs-shoutbox-no-entries": "Text for nothing here yet.",
+    "bs-shoutbox-loading": "Text for loading...",
+    "bs-shoutbox-pref-committimeinterval": "Used in 
[[Special:Wiki_Admin&mode=Preferences]], label for time between two messages 
(in seconds):",
+    "bs-shoutbox-pref-maxmessagelength": "Used in 
[[Special:Wiki_Admin&mode=Preferences]], label for maximum length of a 
message:",
+    "bs-shoutbox-pref-numberofshouts": "Used in 
[[Special:Wiki_Admin&mode=Preferences]], label for number of messages shown:",
+    "bs-shoutbox-pref-showage": "Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for show creation date 
of a message",
+    "bs-shoutbox-pref-showuser": "Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for show author of a 
message",
+    "bs-shoutbox-pref-allowarchive": "Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for user are able to 
delete their own entries",
+    "bs-shoutbox-pref-show": "Used in [[Special:Wiki_Admin&mode=Preferences]], 
checkbox label for display shoutbox",
+    "bs-shoutbox-archive-success": "Text for entry deleted.",
+    "bs-shoutbox-archive-failure": "Text for an error occurred while trying to 
delete the entry, please try again.",
+    "bs-shoutbox-archive-failure-user": "Text for entries can only be deleted 
by their author.",
+    "bs-shoutbox-switch-description": "Used in InsertMagic extension, tag 
description for hides shoutbox on this page",
+    "bs-shoutbox-charactersleft": "Text for $1 character{{PLURAL:$1||s}} \n $1 
is the number of characters left, also use this for PLURAL distinction",
+    "bs-shoutbox-confirm-text": "Text for do you really want to delete this 
entry?",
+    "bs-shoutbox-confirm-title": "Window title for confirm",
+    "bs-shoutbox-entermessage": "Text for please enter a message.",
+    "bs-shoutbox-too-early": "Please wait a few seconds before submitting the 
next entry."
+}
diff --git a/ShoutBox/languages/ShoutBox.i18n.php 
b/ShoutBox/languages/ShoutBox.i18n.php
index 534da33..2287dfc 100644
--- a/ShoutBox/languages/ShoutBox.i18n.php
+++ b/ShoutBox/languages/ShoutBox.i18n.php
@@ -1,100 +1,35 @@
 <?php
 /**
- * Internationalisation file for Shoutbox
+ * This is a backwards-compatibility shim, generated by:
+ * 
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
  *
- * Part of BlueSpice for MediaWiki
+ * Beginning with MediaWiki 1.23, translation strings are stored in json files,
+ * and the EXTENSION.i18n.php file only exists to provide compatibility with
+ * older releases of MediaWiki. For more information about this migration, see:
+ * https://www.mediawiki.org/wiki/Requests_for_comment/Localisation_format
  *
- * @author     Stephan Muggli <[email protected]>
- * @package    BlueSpice_Extensions
- * @subpackage Shoutbox
- * @copyright  Copyright (C) 2012 Hallo Welt! - Medienwerkstatt GmbH, All 
rights reserved.
- * @license    http://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
- * @filesource
+ * This shim maintains compatibility back to MediaWiki 1.17.
  */
-
 $messages = array();
+if ( !function_exists( 'wfJsonI18nShima9d7b38adaf9a3ce' ) ) {
+       function wfJsonI18nShima9d7b38adaf9a3ce( $cache, $code, &$cachedData ) {
+               $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
+               foreach ( $codeSequence as $csCode ) {
+                       $fileName = dirname( __FILE__ ) . 
"/../i18n/$csCode.json";
+                       if ( is_readable( $fileName ) ) {
+                               $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
+                               foreach ( array_keys( $data ) as $key ) {
+                                       if ( $key === '' || $key[0] === '@' ) {
+                                               unset( $data[$key] );
+                                       }
+                               }
+                               $cachedData['messages'] = array_merge( $data, 
$cachedData['messages'] );
+                       }
 
-$messages['en'] = array(
-       'bs-shoutbox-desc' => 'Adds a parser function for embedding your own 
shoutbox.',
-       'prefs-shoutbox' => 'Shoutbox',
-       'bs-shoutbox-title'=> 'Shoutbox',
-       'bs-shoutbox-message' => 'Message',
-       'bs-shoutbox-shout' => 'Shout it',
-       'bs-shoutbox-no-entries' => 'Nothing here yet.',
-       'bs-shoutbox-loading' => 'Loading...',
-       'bs-shoutbox-pref-committimeinterval' => 'Time between two messages:',
-       'bs-shoutbox-pref-maxmessagelength' => 'Maximum length of a message:',
-       'bs-shoutbox-pref-numberofshouts' => 'Number of messages shown:',
-       'bs-shoutbox-pref-showage' => 'Show creation date of a message',
-       'bs-shoutbox-pref-ShowUser' => 'Show author of a message',
-       'bs-shoutbox-pref-allowarchive' => 'User are able to delete their own 
entries',
-       'bs-shoutbox-pref-show' => 'Display Shoutbox',
-       'bs-shoutbox-archive-success' => 'Entry successfully deleted.',
-       'bs-shoutbox-archive-failure' => 'An error occurred while trying to 
delete the entry, please try again.',
-       'bs-shoutbox-archive-failure-user' => 'Entries can only be deleted by 
their author.',
-       'bs-shoutbox-switch-description' => 'Hides shoutbox on this page',
-       'bs-shoutbox-charactersleft' => 'characters left',
-       'bs-shoutbox-confirm-text' => 'Do you really want to delete this 
entry?',
-       'bs-shoutbox-confirm-title' => 'Confirm',
-       'bs-shoutbox-entermessage' => 'Please enter a message.',
-       'bs-shoutbox-too-early' => 'Please wait a few seconds before submitting 
the next entry.'
-);
+                       $cachedData['deps'][] = new FileDependency( $fileName );
+               }
+               return true;
+       }
 
-$messages['de'] = array(
-       'bs-shoutbox-desc' => 'Unterhalb von Seiten wird eine Shoutbox für 
unmittelbare Kommentare bereitgestellt.',
-       'prefs-shoutbox' => 'Shoutbox',
-       'bs-shoutbox-title' => 'Shoutbox',
-       'bs-shoutbox-message' => 'Mitteilung',
-       'bs-shoutbox-shout' => 'Schicken',
-       'bs-shoutbox-no-entries' => 'Bisher wurden keine Mitteilungen 
gesendet.',
-       'bs-shoutbox-loading' => 'Lade...',
-       'bs-shoutbox-pref-committimeinterval' => 'Zeit zwischen zwei 
Eintragungen in Sekunden <i>(Spamschutz)</i> (<b>15</b>)',
-       'bs-shoutbox-pref-maxmessagelength' => 'Maximale Länge der Mittelungen',
-       'bs-shoutbox-pref-numberofshouts' => 'Anzahl der dargestellten 
Mitteilungen',
-       'bs-shoutbox-pref-showage' => 'Alter der Mitteilung anzeigen',
-       'bs-shoutbox-pref-showuser' => 'Sender der Mitteilung anzeigen',
-       'bs-shoutbox-pref-allowarchive' => 'Benutzer können ihre eigenen 
Einträge löschen',
-       'bs-shoutbox-archive-success' => 'Eintrag wurde erfolgreich gelöscht.',
-       'bs-shoutbox-archive-failure' => 'Beim Löschen des Eintrags ist ein 
Fehler aufgetreten, bitte versuche es erneut.',
-       'bs-shoutbox-archive-failure-user' => 'Einträge können nur von deren 
Autor gelöscht werden.',
-       'bs-shoutbox-switch-description' => 'Shoutbox wird auf dieser Seite 
nicht angezeigt',
-       'bs-shoutbox-pref-show' => 'Shoutbox anzeigen',
-       'bs-shoutbox-charactersleft' => 'übrige Zeichen',
-       'bs-shoutbox-confirm-text' => 'Möchtest du diesen Eintrag wirklich 
löschen?',
-       'bs-shoutbox-confirm-title' => 'Bestätigen',
-       'bs-shoutbox-entermessage' => 'Bitte gib eine Nachricht ein.',
-       'bs-shoutbox-too-early' => 'Bitte warte ein paar Sekunden, bevor du den 
nächsten Eintrag abschickst.'
-);
-
-$messages['de-formal'] = array(
-       'bs-shoutbox-archive-failure' => 'Beim Löschen des Eintrags ist ein 
Fehler aufgetreten, bitte versuchen Sie es erneut.',
-       'bs-shoutbox-confirm-text' => 'Möchten Sie diesen Eintrag wirklich 
löschen?',
-       'bs-shoutbox-entermessage' => 'Bitte geben Sie eine Nachricht ein.',
-       'bs-shoutbox-too-early' => 'Bitte warten Sie ein paar Sekunden, bevor 
Sie den nächsten Eintrag abschicken.'
-);
-
-$messages['qqq'] = array(
-       'bs-shoutbox-desc' => 'Used in 
[[Special:Wiki_Admin&mode=ExtensionInfo]], description of shoutbox extension.',
-       'prefs-shoutbox' => 'Used in [[Special:Wiki_Admin&mode=Preferences]], 
headline for shout box section in preferences. \n {{Identical|Shoutbox}}',
-       'bs-shoutbox-title'=> 'Fieldset legend for shoutbox',
-       'bs-shoutbox-message' => 'Default text in textarea for message',
-       'bs-shoutbox-shout' => 'Shout it',
-       'bs-shoutbox-no-entries' => 'Text for nothing here yet.',
-       'bs-shoutbox-loading' => 'Text for loading...',
-       'bs-shoutbox-pref-committimeinterval' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], label for time between two messages:',
-       'bs-shoutbox-pref-maxmessagelength' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], label for maximum length of a 
message:',
-       'bs-shoutbox-pref-numberofshouts' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], label for number of messages shown:',
-       'bs-shoutbox-pref-showage' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for show creation date 
of a message',
-       'bs-shoutbox-pref-ShowUser' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for show author of a 
message',
-       'bs-shoutbox-pref-allowarchive' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for user are able to 
delete their own entries',
-       'bs-shoutbox-pref-show' => 'Used in 
[[Special:Wiki_Admin&mode=Preferences]], checkbox label for display shoutbox',
-       'bs-shoutbox-archive-success' => 'Text for entry successfully deleted.',
-       'bs-shoutbox-archive-failure' => 'Text for an error occurred while 
trying to delete the entry, please try again.',
-       'bs-shoutbox-archive-failure-user' => 'Text for entries can only be 
deleted by their author.',
-       'bs-shoutbox-switch-description' => 'Used in InsertMagic extension, tag 
description for hides shoutbox on this page',
-       'bs-shoutbox-charactersleft' => 'Text for characters left',
-       'bs-shoutbox-confirm-text' => 'Text for do you really want to delete 
this entry?',
-       'bs-shoutbox-confirm-title' => 'Window title for confirm',
-       'bs-shoutbox-entermessage' => 'Text for please enter a message.',
-       'bs-shoutbox-too-early' => 'Please wait a few seconds before submitting 
the next entry.'
-);
\ No newline at end of file
+       $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShima9d7b38adaf9a3ce';
+}
diff --git a/ShoutBox/resources/bluespice.shoutBox.js 
b/ShoutBox/resources/bluespice.shoutBox.js
index 691630b..0db5d5e 100644
--- a/ShoutBox/resources/bluespice.shoutBox.js
+++ b/ShoutBox/resources/bluespice.shoutBox.js
@@ -9,7 +9,7 @@
  * @author     Markus Glaser <[email protected]>
  * @author     Karl Waldmanstetter
  * @version    1.1.0
- 
+
  * @package    Bluespice_Extensions
  * @subpackage ShoutBox
  * @copyright  Copyright (C) 2011 Hallo Welt! - Medienwerkstatt GmbH, All 
rights reserved.
@@ -37,7 +37,7 @@
        textField: null,
        /**
         * Default value of message field, taken from message input box
-        * @var string 
+        * @var string
         */
        defaultMessage: '',
        /**
@@ -47,17 +47,17 @@
        msgList: null,
        /**
         * Reference to the send button
-        * @var jQuery 
+        * @var jQuery
         */
        btnSend: null,
        /**
         * Reference to the ajax loader gif
-        * @var jQuery 
+        * @var jQuery
         */
        ajaxLoader: null,
        /**
         * Reference to the caracter counter
-        * @var jQuery 
+        * @var jQuery
         */
        characterCounter: null,
        /**
@@ -65,19 +65,18 @@
         * @param sblimit int Maximum number of shouts before more link is 
displayed
         */
        updateShoutbox: function(sblimit) {
-               if (typeof (sblimit) == 'undefined')
-                       sblimit = 0;
+               if ( typeof (sblimit) == 'undefined' ) sblimit = 0;
                BsShoutBox.ajaxLoader.fadeIn();
 
                this.msgList.load(
-                       bs.util.getAjaxDispatcherUrl('ShoutBox::getShouts', 
[wgArticleId, sblimit]),
+                       bs.util.getAjaxDispatcherUrl( 'ShoutBox::getShouts', [ 
wgArticleId, sblimit ] ),
                        function(data) {
                                BsShoutBox.msgList.slideDown();
                                
BsShoutBox.btnSend.blur().removeAttr('disabled'); //reactivate the send button
                                
BsShoutBox.textField.val(BsShoutBox.defaultMessage);
                                
BsShoutBox.textField.blur().removeAttr('disabled');
                                BsShoutBox.ajaxLoader.fadeOut();
-                               
BsShoutBox.characterCounter.text(BsShoutBox.textField.attr('maxlength'));
+                               BsShoutBox.characterCounter.text( mw.message( 
'bs-shoutbox-charactersleft', BsShoutBox.textField.attr( 'maxlength' ) ).text() 
);
                        }
                );
        },
@@ -118,8 +117,9 @@
        });
 
        BsShoutBox.textField.bind("input propertychange", function (e) {
-               var currCharLen = $(this).val() == BsShoutBox.defaultMessage ? 
$(this).attr('maxlength') : $(this).val().length
-               BsShoutBox.characterCounter.text($(this).attr('maxlength') - 
$(this).val().length);
+               var currCharLen = $( this ).attr( 'maxlength' ) - $( this 
).val().length;
+
+               BsShoutBox.characterCounter.text( mw.message( 
'bs-shoutbox-charactersleft', currCharLen ).text() );
        });
 
        $("#bs-sb-form").submit(function() {
diff --git a/ShoutBox/views/view.ShoutBox.php b/ShoutBox/views/view.ShoutBox.php
index fa9a221..ecb4c18 100644
--- a/ShoutBox/views/view.ShoutBox.php
+++ b/ShoutBox/views/view.ShoutBox.php
@@ -53,16 +53,13 @@
 
                $aOut = array();
                $aOut[] = '<form id="bs-sb-form" class="clearfix">';
-               $aOut[] =   '<textarea id="bs-sb-message" 
maxlength="'.BsConfig::get( 'MW::ShoutBox::MaxMessageLength' ).'">' . 
wfMessage( 'bs-shoutbox-message' )->plain() . '</textarea>';
-               $aOut[] = '  <br />';
-               $aOut[] = '  <img id="bs-sb-loading" 
src="'.$wgScriptPath.'/extensions/BlueSpiceFoundation/resources/bluespice/images/bs-ajax-loader-bar-blue.gif"
 alt="Loading..."/>';
-               $aOut[] = '  <input id="bs-sb-send" type="submit" value="' . 
wfMessage( 'bs-shoutbox-shout' )->plain() . '" />';
-               $aOut[] =   '<p class="bs-sb-textarea-additionalinfo">';
-               $aOut[] =   wfMessage('bs-shoutbox-charactersleft')->plain().': 
';
-               $aOut[] =   '<span id="bs-sb-charactercounter">';
-               $aOut[] =     BsConfig::get( 'MW::ShoutBox::MaxMessageLength' );
-               $aOut[] =   '</span>';
-               $aOut[] =   '</p>';
+               $aOut[] = '<textarea id="bs-sb-message" 
maxlength="'.BsConfig::get( 'MW::ShoutBox::MaxMessageLength' ).'">' . 
wfMessage( 'bs-shoutbox-message' )->plain() . '</textarea>';
+               $aOut[] = '<br />';
+               $aOut[] = '<img id="bs-sb-loading" 
src="'.$wgScriptPath.'/extensions/BlueSpiceFoundation/resources/bluespice/images/bs-ajax-loader-bar-blue.gif"
 alt="Loading..."/>';
+               $aOut[] = '<input id="bs-sb-send" type="submit" value="' . 
wfMessage( 'bs-shoutbox-shout' )->plain() . '" />';
+               $aOut[] = '<p class="bs-sb-textarea-additionalinfo">';
+               $aOut[] = '<span id="bs-sb-charactercounter"></span>';
+               $aOut[] = '</p>';
                $aOut[] = '</form>';
 
                return implode( "\n" , $aOut );
@@ -76,11 +73,11 @@
        protected function wrapAll( $innerText ) {
                $aOut = array();
                $aOut[] = '<div class="bs-sb">';
-               $aOut[] = '  <fieldset>';
-               $aOut[] = '    <legend>' . wfMessage( 'bs-shoutbox-title' 
)->plain() . '</legend>';
+               $aOut[] = '<fieldset>';
+               $aOut[] = '<legend>' . wfMessage( 'bs-shoutbox-title' 
)->plain() . '</legend>';
                $aOut[] = $innerText;
-               $aOut[] = '    <div id="bs-sb-content" 
style="display:none;"></div>';
-               $aOut[] = '  </fieldset>';
+               $aOut[] = '<div id="bs-sb-content" 
style="display:none;"></div>';
+               $aOut[] = '</fieldset>';
                $aOut[] = '</div>';
 
                return implode( "\n" , $aOut );

-- 
To view, visit https://gerrit.wikimedia.org/r/139831
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8407e91ee7751ae6116ab5befa634de683c8fbd0
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Smuggli <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pigpen <[email protected]>
Gerrit-Reviewer: Raimond Spekking <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: Smuggli <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to