Smuggli has submitted this change and it was merged.

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


Implemented changes for translatewiki

Moved php i18n file into languages folder
Moved to Json i18n files
Changed message and added GENDER support
Improved some messages

Change-Id: I51a1f429ca4b518cbcad4ac732baeb9871cd5d7b
---
M RSSStandards/RSSStandards.class.php
D RSSStandards/RSSStandards.i18n.php
M RSSStandards/RSSStandards.setup.php
A RSSStandards/i18n/de.json
A RSSStandards/i18n/en.json
A RSSStandards/i18n/qqq.json
A RSSStandards/languages/RSSStandards.i18n.php
7 files changed, 127 insertions(+), 96 deletions(-)

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



diff --git a/RSSStandards/RSSStandards.class.php 
b/RSSStandards/RSSStandards.class.php
index fb4c49d..b7a889d 100644
--- a/RSSStandards/RSSStandards.class.php
+++ b/RSSStandards/RSSStandards.class.php
@@ -76,7 +76,7 @@
        public function onBSRSSFeederGetRegisteredFeeds( $aFeeds ) {
                RSSFeeder::registerFeed('recentchanges',
                        wfMessage( 'bs-rssfeeder-recent-changes' )->plain(),
-                       wfMessage( 'bs-rssstandards-description_rc' )->plain(),
+                       wfMessage( 'bs-rssstandards-desc-rc' )->plain(),
                        $this,
                        NULL,
                        NULL,
@@ -84,8 +84,8 @@
                );
 
                RSSFeeder::registerFeed('followOwn',
-                       wfMessage( 'bs-rssstandards-title_own' )->plain(),
-                       wfMessage( 'bs-rssstandards-description_own' )->plain(),
+                       wfMessage( 'bs-rssstandards-title-own' )->plain(),
+                       wfMessage( 'bs-rssstandards-desc-own' )->plain(),
                        $this,
                        'buildRssOwn',
                        array('u'),
@@ -93,8 +93,8 @@
                );
 
                RSSFeeder::registerFeed('followPage',
-                       wfMessage( 'bs-rssstandards-title_page' )->plain(),
-                       wfMessage( 'bs-rssstandards-description_page' 
)->plain(),
+                       wfMessage( 'bs-rssstandards-title-page' )->plain(),
+                       wfMessage( 'bs-rssstandards-desc-page' )->plain(),
                        $this,
                        'buildRssPage',
                        array('p', 'ns'),
@@ -102,8 +102,8 @@
                );
 
                RSSFeeder::registerFeed('namespace',
-                       wfMessage( 'bs-rssstandards-title_ns' )->plain(),
-                       wfMessage( 'bs-rssstandards-description_ns' )->plain(),
+                       wfMessage( 'bs-ns' )->plain(),
+                       wfMessage( 'bs-rssstandards-desc-ns' )->plain(),
                        $this,
                        'buildRssNs',
                        array('ns'),
@@ -111,8 +111,8 @@
                );
 
                RSSFeeder::registerFeed( 'category',
-                       wfMessage( 'bs-rssstandards-title_cat' )->plain(),
-                       wfMessage( 'bs-rssstandards-description_cat' )->plain(),
+                       wfMessage( 'bs-rssstandards-title-cat' )->plain(),
+                       wfMessage( 'bs-rssstandards-desc-cat' )->plain(),
                        $this,
                        'buildRssCat',
                        array('cat'),
@@ -120,8 +120,8 @@
                );
 
                RSSFeeder::registerFeed('watchlist',
-                       wfMessage( 'bs-rssstandards-title_watch' )->plain(),
-                       wfMessage( 'bs-rssstandards-description_watch' 
)->plain(),
+                       wfMessage( 'bs-rssstandards-title-watch' )->plain(),
+                       wfMessage( 'bs-rssstandards-desc-watch' )->plain(),
                        $this,
                        'buildRssWatch',
                        array('days'),
@@ -159,11 +159,11 @@
                        )
                );
 
-               $oChannel = RSSCreator::createChannel(RSSCreator::xmlEncode( 
$wgSitename . ' - ' . $sPageName), 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-description_page' )->plain() );
+               $oChannel = RSSCreator::createChannel(RSSCreator::xmlEncode( 
$wgSitename . ' - ' . $sPageName), 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-desc-page' )->plain() );
                while( $row = $res->fetchObject() ) {
                        $title = Title::makeTitle( $row->rc_namespace, 
$row->rc_title );
                        $entry = RSSItemCreator::createItem(
-                               wfMessage( 'bs-rssstandards-changes_from' 
)->plain().$row->rc_user_text,
+                               wfMessage( 'bs-rssstandards-changes-from', 
$row->rc_user_text )->text(),
                                $title->getFullURL( 'diff=' . 
$row->rc_this_oldid . '&oldid=prev' ),
                                FeedUtils::formatDiff( $row )
                        );
@@ -201,12 +201,12 @@
                        $res = false;
                }
 
-               $channel = RSSCreator::createChannel(RSSCreator::xmlEncode( 
$wgSitename . ' - ' . wfMessage( 'bs-rssstandards-title_own' )->plain() ), 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-description_own' )->plain() );
+               $channel = RSSCreator::createChannel(RSSCreator::xmlEncode( 
$wgSitename . ' - ' . wfMessage( 'bs-rssstandards-title-own' )->plain() ), 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-desc-own' )->plain() );
                if ( $res ) {
                        while ( $obj = $res->fetchObject() ) {
                                $title = Title::makeTitle( $obj->rc_namespace, 
$obj->rc_title );
                                $entry = RSSItemCreator::createItem(
-                                       wfMessage( 
'bs-rssstandards-changes_from' )->plain().$obj->rc_user_text,
+                                       wfMessage( 
'bs-rssstandards-changes-from', $obj->rc_user_text )->text(),
                                        $title->getFullURL( 'diff=' . 
$obj->rc_this_oldid . '&oldid=prev' ),
                                        FeedUtils::formatDiff($obj)
                                );
@@ -228,7 +228,7 @@
 
                $cat = $wgRequest->getVal( 'cat', '' );
 
-               $channel = RSSCreator::createChannel($wgSitename . ' - ' . 
wfMessage( 'bs-rssstandards-title_cat' )->plain() . ' ' . addslashes( $cat ), 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-description_cat' )->plain() );
+               $channel = RSSCreator::createChannel($wgSitename . ' - ' . 
wfMessage( 'bs-rssstandards-title-cat' )->plain() . ' ' . addslashes( $cat ), 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-desc-cat' )->plain() );
 
                $res = $dbr->query( "select cl_from FROM 
".$wgDBprefix."categorylinks WHERE cl_to = '".addslashes( $cat )."'" );
 
@@ -287,7 +287,7 @@
 
                $aNamespaces = $wgLang->getNamespaces();
 
-               $channel = RSSCreator::createChannel( $wgSitename . ' - ' . 
wfMessage( 'bs-rssstandards-title_ns' )->plain() . ' ' . $aNamespaces[$ns], 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-description_ns' )->plain() );
+               $channel = RSSCreator::createChannel( $wgSitename . ' - ' . 
wfMessage( 'bs-ns' )->plain() . ' ' . $aNamespaces[$ns], 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-desc-ns' )->plain() );
 
                $res = $dbr->query( "select page_id from ".$wgDBprefix."page 
where page_namespace = ".$ns );
 
@@ -530,7 +530,7 @@
 
                $list = ChangesList::newFromContext( $skin->getContext() ); 
//Thanks to Bartosz Dziewoński (https://gerrit.wikimedia.org/r/#/c/94082/)
 
-               $channel = RSSCreator::createChannel( SpecialPage::getTitleFor( 
'Watchlist' ).' ('.$user->getName().')', 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-description_watch' )->plain() );
+               $channel = RSSCreator::createChannel( SpecialPage::getTitleFor( 
'Watchlist' ).' ('.$user->getName().')', 
'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'], wfMessage( 
'bs-rssstandards-desc-watch' )->plain() );
 
                $html = $list->beginRecentChangesList();
                $counter = 1;
@@ -601,7 +601,7 @@
                $label = new ViewFormElementLabel();
                $label->useAutoWidth();
                $label->setFor( 'btnFeedRc' );
-               $label->setText( wfMessage( 'bs-rssstandards-description_rc' 
)->plain() );
+               $label->setText( wfMessage( 'bs-rssstandards-desc-rc' 
)->plain() );
 
                $btn = new ViewFormElementButton();
                $btn->setId('btnFeedRc');
@@ -625,7 +625,7 @@
 
        public function buildLinksPage() {
                $set = new ViewFormElementFieldset();
-               $set->setLabel( wfMessage( 'bs-rssstandards-title_page' 
)->plain() );
+               $set->setLabel( wfMessage( 'bs-rssstandards-title-page' 
)->plain() );
 
                $div = new ViewTagElement();
                $div->setAutoElement( 'div' );
@@ -645,12 +645,12 @@
        public function buildLinksOwn() {
                global $wgUser;
                $set = new ViewFormElementFieldset();
-               $set->setLabel( wfMessage( 'bs-rssstandards-title_own' 
)->plain() );
+               $set->setLabel( wfMessage( 'bs-rssstandards-title-own' 
)->plain() );
 
                $label = new ViewFormElementLabel();
                $label->useAutoWidth();
                $label->setFor( 'btnFeedOwn' );
-               $label->setText( wfMessage( 'bs-rssstandards-description_own' 
)->plain() );
+               $label->setText( wfMessage( 'bs-rssstandards-desc-own' 
)->plain() );
 
                $oSpecialRSS = SpecialPage::getTitleFor( 'RSSFeeder' );
                $sUserName   = $wgUser->getName();
@@ -679,7 +679,7 @@
        public function buildLinksNs() {
                global $wgUser;
                $set = new ViewFormElementFieldset();
-               $set->setLabel( wfMessage( 'bs-rssstandards-title_ns' 
)->plain() );
+               $set->setLabel( wfMessage( 'bs-ns' )->plain() );
 
                $select = new ViewFormElementSelectbox();
                $select->setId( 'selFeedNs' );
@@ -721,12 +721,12 @@
                global $wgUser;
 
                $set = new ViewFormElementFieldset();
-               $set->setLabel( wfMessage( 'bs-rssstandards-title_cat' 
)->plain() );
+               $set->setLabel( wfMessage( 'bs-rssstandards-title-cat' 
)->plain() );
 
                $select = new ViewFormElementSelectbox();
                $select->setId( 'selFeedCat' );
                $select->setName( 'selFeedCat' );
-               $select->setLabel( wfMessage( 'bs-rssstandards-field_title_cat' 
)->plain() );
+               $select->setLabel( wfMessage( 'bs-rssstandards-title-cat' 
)->plain() );
 
                $dbr = wfGetDB( DB_SLAVE );
                $res = $dbr->select(
@@ -776,12 +776,12 @@
                $aRssWatchlistDays = array(1, 3, 5, 7, 14, 30, 60, 90, 180, 
365);
 
                $set = new ViewFormElementFieldset();
-               $set->setLabel( wfMessage( 'bs-rssstandards-title_watch' 
)->plain() );
+               $set->setLabel( wfMessage( 'bs-rssstandards-title-watch' 
)->plain() );
 
                $select = new ViewFormElementSelectbox();
                $select->setId( 'selFeedWatch' );
                $select->setName( 'selFeedWatch' );
-               $select->setLabel( wfMessage( 
'bs-rssstandards-field_title_watch' )->plain() );
+               $select->setLabel( wfMessage( 'bs-rssstandards-title-watch' 
)->plain() );
 
                $oSpecialRSS = SpecialPage::getTitleFor( 'RSSFeeder' );
                $sUserName   = $wgUser->getName();
@@ -797,7 +797,7 @@
                                                        'h'    => $sUserToken
                                                )
                                        ),
-                                       'label' => sprintf( wfMessage( 
'bs-rssstandards-link_text_watch' )->plain(), $day )
+                                       'label' => wfMessage( 
'bs-rssstandards-link-text-watch', $day )->text(),
                                )
                        );
                }
diff --git a/RSSStandards/RSSStandards.i18n.php 
b/RSSStandards/RSSStandards.i18n.php
deleted file mode 100644
index 84a28fb..0000000
--- a/RSSStandards/RSSStandards.i18n.php
+++ /dev/null
@@ -1,66 +0,0 @@
-<?php
-/**
- * Internationalisation file for HideTitle
- *
- * Part of BlueSpice for MediaWiki
- *
- * @author     Stephan Muggli <mug...@hallowelt.biz>
-
- * @package    BlueSpice_Extensions
- * @subpackage HideTitle
- * @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
- */
-
-$messages = array();
-
-$messages['en'] = array(
-       'bs-rssstandards-extension-description' => 'Builds rss feeds based on 
different options.',
-       'bs-rssstandards-description_rss'       => '<b>RSS (Rich Site 
Summary)</b> is a web feed format used to publish frequently updated works. It 
includes a headline and a short summary.<br /><br />To subscribe to an RSS 
feed, click on the Show-button, copy the according link URL and add it to your 
favourite RSS feed reader.<br /><br />You can subscribe to the following RSS 
feeds:',
-       'bs-rssstandards-description_rc'        => 'Overview of the recent 
changes in the Wiki',
-       'bs-rssstandards-title_page'            => 'Page',
-       'bs-rssstandards-field_title_page'      => 'Pagename',
-       'bs-rssstandards-description_page'      => 'Feed with an overview of 
recent changes in the Wiki',
-       'bs-rssstandards-title_own'             => 'Own contributions',
-       'bs-rssstandards-field_title_own'       => 'Own contributions',
-       'bs-rssstandards-description_own'       => 'Feed with an overview of 
your own contributions to the Wiki.',
-       'bs-rssstandards-title_cat'             => 'Category',
-       'bs-rssstandards-field_title_cat'       => 'Category',
-       'bs-rssstandards-description_cat'       => 'Feed with an overview of 
recent changes in a category.',
-       'bs-rssstandards-title_watch'           => 'Watchlist',
-       'bs-rssstandards-field_title_watch'     => 'Watchlist',
-       'bs-rssstandards-description_watch'     => 'Feed with an overview of 
your own watched pages.',
-       'bs-rssstandards-link_text_watch'       => 'Recent changes of the last 
%d days',
-       'bs-rssstandards-title_ns'              => 'Namespace',
-       'bs-rssstandards-description_ns'        => 'Feed with an overview of 
the recent changes in a namespace.',
-       'bs-rssstandards-changes_from'          => 'Changes from '
-);
-
-$messages['de'] = array(
-       'bs-rssstandards-extension-description' => 'Bietet RSS-Feeds zu 
verschiedenen Bereichen des Wikis an, z.B. letzte Änderungen.',
-       'bs-rssstandards-description_rss'       => '<b>RSS (Rich Site 
Summary)</b> ist ein abonnierbarer Ticker, der von entsprechenden Programmen in 
regelmäßigen Abständen abgerufen wird und neben einer Überschrift einen kurzen 
Textanriss liefert.<br /><br />Um einen RSS-Feed zu abonnieren, klicke auf den 
Anzeigen-Button und übertrage die URL aus der Adresszeile in Ihr 
RSS-Programm.<br /><br />Folgende RSS-Feeds stehen zur Verfügung:',
-       'bs-rssstandards-description_rc'        => 'Überblick über die letzten 
Änderungen des Wikis',
-       'bs-rssstandards-title_page'            => 'Seite',
-       'bs-rssstandards-field_title_page'      => 'Seite',
-       'bs-rssstandards-description_page'      => 'Feed mit einem Überblick 
der letzten Änderungen auf einer Seite.',
-       'bs-rssstandards-title_own'             => 'Eigene Beiträge',
-       'bs-rssstandards-field_title_own'       => 'Eigene Beiträge',
-       'bs-rssstandards-description_own'       => 'Feed mit einem Überblick 
der letzten Änderungen von eigenen Beiträgen.',
-       'bs-rssstandards-title_cat'             => 'Kategorie',
-       'bs-rssstandards-field_title_cat'       => 'Kategorie',
-       'bs-rssstandards-description_cat'       => 'Feed mit einem Überblick 
der letzten Änderungen in einer Kategorie.',
-       'bs-rssstandards-title_watch'           => 'Watchlist',
-       'bs-rssstandards-field_title_watch'     => 'Watchlist',
-       'bs-rssstandards-description_watch'     => 'Feed mit einem Überblick 
ihrer beobachteten Seiten.',
-       'bs-rssstandards-link_text_watch'       => 'Änderungen der letzten %d 
Tage',
-       'bs-rssstandards-title_ns'              => 'Namensraum',
-       'bs-rssstandards-description_ns'        => 'Feed mit einem Überblick 
der letzten Änderungen in einem Namespace.',
-       'bs-rssstandards-changes_from'          => 'Änderung durch '
-);
-
-$messages['de-formal'] = array(
-       'bs-rssstandards-description_rss'   => '<b>RSS (Rich Site Summary)</b> 
ist ein abonnierbarer Ticker, der von entsprechenden Programmen in regelmäßigen 
Abständen abgerufen wird und neben einer Überschrift einen kurzen Textanriss 
liefert.<br /><br />Um einen RSS-Feed zu abonnieren, klicken Sie auf den 
Anzeigen-Button und übertragen Sie die URL aus der Adresszeile in Ihr 
RSS-Programm.<br /><br />Folgende RSS-Feeds stehen zur Verfügung:',
-);
-
-$messages['qqq'] = array();
\ No newline at end of file
diff --git a/RSSStandards/RSSStandards.setup.php 
b/RSSStandards/RSSStandards.setup.php
index dc203db..9c85165 100644
--- a/RSSStandards/RSSStandards.setup.php
+++ b/RSSStandards/RSSStandards.setup.php
@@ -1,8 +1,10 @@
 <?php
 
-BsExtensionManager::registerExtension('RSSStandards',                    
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
+BsExtensionManager::registerExtension('RSSStandards', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
 
-$wgExtensionMessagesFiles['RSSStandards'] = __DIR__ . '/RSSStandards.i18n.php';
+$wgMessagesDirs['RSSStandards'] = __DIR__ . '/i18n';
+
+$wgExtensionMessagesFiles['RSSStandards'] = __DIR__ . 
'/languages/RSSStandards.i18n.php';
 
 $wgResourceModules['ext.bluespice.rssStandards'] = array(
        'scripts' => 'bluespice.rssStandards.js',
diff --git a/RSSStandards/i18n/de.json b/RSSStandards/i18n/de.json
new file mode 100644
index 0000000..10e6504
--- /dev/null
+++ b/RSSStandards/i18n/de.json
@@ -0,0 +1,20 @@
+{
+       "@metadata": {
+               "authors": [
+                       "Stephan Muggli <mug...@hallowelt.biz>"
+               ]
+       },
+       "bs-rssstandards-desc": "RSS-Feeds zu verschiedenen Bereichen des 
Wikis",
+       "bs-rssstandards-desc-rc": "Überblick über die letzten Änderungen des 
Wikis.",
+       "bs-rssstandards-title-page": "Seite",
+       "bs-rssstandards-desc-page": "Feed mit einem Überblick der letzten 
Änderungen auf einer Seite.",
+       "bs-rssstandards-title-own": "Eigene Beiträge",
+       "bs-rssstandards-desc-own": "Feed mit einem Überblick der letzten 
Änderungen von eigenen Beiträgen.",
+       "bs-rssstandards-title-cat": "Kategorie",
+       "bs-rssstandards-desc-cat": "Feed mit einem Überblick der letzten 
Änderungen in einer Kategorie.",
+       "bs-rssstandards-title-watch": "Beobachtungsliste",
+       "bs-rssstandards-desc-watch": "Feed mit einem Überblick ihrer 
beobachteten Seiten.",
+       "bs-rssstandards-link-text-watch": "Änderungen {{PLURAL:$1|des letzten 
Tages|der letzten $1 Tage}}",
+       "bs-rssstandards-desc-ns": "Feed mit einem Überblick der letzten 
Änderungen in einem Namespace.",
+       "bs-rssstandards-changes-from": "Änderung {{GENDER:$1|von}}: $1"
+}
diff --git a/RSSStandards/i18n/en.json b/RSSStandards/i18n/en.json
new file mode 100644
index 0000000..8555c0a
--- /dev/null
+++ b/RSSStandards/i18n/en.json
@@ -0,0 +1,20 @@
+{
+       "@metadata": {
+               "authors": [
+                       "Stephan Muggli <mug...@hallowelt.biz>"
+               ]
+       },
+       "bs-rssstandards-desc": "Builds RSS feeds based on different options",
+       "bs-rssstandards-desc-rc": "Feed with an overview over the recent 
changes in the wiki",
+       "bs-rssstandards-title-page": "Page",
+       "bs-rssstandards-desc-page": "Feed with an overview over recent changes 
of a page.",
+       "bs-rssstandards-title-own": "Own contributions",
+       "bs-rssstandards-desc-own": "Feed with an overview over your own made 
contributions to the wiki.",
+       "bs-rssstandards-title-cat": "Category",
+       "bs-rssstandards-desc-cat": "Feed with an overview over recent changes 
in a category.",
+       "bs-rssstandards-title-watch": "Watchlist",
+       "bs-rssstandards-desc-watch": "Feed with an overview over your watched 
pages.",
+       "bs-rssstandards-link-text-watch": "Recent changes of the last 
{{PLURAL:$1|day|$1 days}}.",
+       "bs-rssstandards-desc-ns": "Feed with an overview over the recent 
changes in a namespace.",
+       "bs-rssstandards-changes-from": "Changes {{GENDER:$1|by}}: $1"
+}
diff --git a/RSSStandards/i18n/qqq.json b/RSSStandards/i18n/qqq.json
new file mode 100644
index 0000000..df661ed
--- /dev/null
+++ b/RSSStandards/i18n/qqq.json
@@ -0,0 +1,20 @@
+{
+       "@metadata": {
+               "authors": [
+                       "Stephan Muggli <mug...@hallowelt.biz>"
+               ]
+       },
+       "bs-rssstandards-desc": "Used in 
[{{canonicalurl:Special:WikiAdmin|mode=ExtensionInfo}} 
Special:WikiAdmin?mode=ExtensionInfo], description of rss standars extension",
+       "bs-rssstandards-desc-rc": "Description of recent changes RSS feed from 
this wiki.",
+       "bs-rssstandards-title-page": "Headline for page RSS 
feed\\n{{Identical|Page}}",
+       "bs-rssstandards-desc-page": "Description of recent changes RSS feed 
from one specific page.",
+       "bs-rssstandards-title-own": "Headline for own contributions RSS 
feed\\n{{Identical|Own contributions}}",
+       "bs-rssstandards-desc-own": "Description of RSS feed for your own made 
contributions to the wiki.",
+       "bs-rssstandards-title-cat": "Headline for category RSS 
feed\\n{{Identical|Category}}",
+       "bs-rssstandards-desc-cat": "Description of recent changes RSS feed 
from one specific category.",
+       "bs-rssstandards-title-watch": "Headline for watchlist RSS 
feed\\n{{Identical|Watchlist}}",
+       "bs-rssstandards-desc-watch": "Description of RSS feed of your watchted 
pages.",
+       "bs-rssstandards-link-text-watch": "Option for recent changes RSS feed 
to specify the date range of the feed\\n*$1 is timespan in days till now 
(starting from 1 day till 365 days in steps)",
+       "bs-rssstandards-desc-ns": "Description of recent changes RSS feed from 
one specific namespace.",
+       "bs-rssstandards-changes-from": "Text message for changes by: $1\\n*$1 
is the username of the user who made the changes - use for GENDER distinction"
+}
diff --git a/RSSStandards/languages/RSSStandards.i18n.php 
b/RSSStandards/languages/RSSStandards.i18n.php
new file mode 100644
index 0000000..f0a67d9
--- /dev/null
+++ b/RSSStandards/languages/RSSStandards.i18n.php
@@ -0,0 +1,35 @@
+<?php
+/**
+ * This is a backwards-compatibility shim, generated by:
+ * 
https://git.wikimedia.org/blob/mediawiki%2Fcore.git/HEAD/maintenance%2FgenerateJsonI18n.php
+ *
+ * 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
+ *
+ * This shim maintains compatibility back to MediaWiki 1.17.
+ */
+$messages = array();
+if ( !function_exists( 'wfJsonI18nShim4fab10bb555a80e9' ) ) {
+       function wfJsonI18nShim4fab10bb555a80e9( $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'] );
+                       }
+
+                       $cachedData['deps'][] = new FileDependency( $fileName );
+               }
+               return true;
+       }
+
+       $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShim4fab10bb555a80e9';
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I51a1f429ca4b518cbcad4ac732baeb9871cd5d7b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Smuggli <mug...@hallowelt.biz>
Gerrit-Reviewer: Mglaser <gla...@hallowelt.biz>
Gerrit-Reviewer: Pigpen <reym...@hallowelt.biz>
Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Smuggli <mug...@hallowelt.biz>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to