Smuggli has uploaded a new change for review.
https://gerrit.wikimedia.org/r/148987
Change subject: Implemented changes for translatewiki
......................................................................
Implemented changes for translatewiki
Moved to Json i18n files
Change-Id: Id6bbf0788f23bf017159d5f7be4e93a392860dc6
---
M Statistics/Statistics.class.php
M Statistics/Statistics.setup.php
A Statistics/i18n/de-formal.json
A Statistics/i18n/de.json
A Statistics/i18n/en.json
A Statistics/i18n/qqq.json
M Statistics/includes/DiagramEditsPerUser.class.php
M Statistics/includes/DiagramNumberOfArticles.class.php
M Statistics/includes/DiagramNumberOfEdits.class.php
M Statistics/includes/DiagramNumberOfPages.class.php
M Statistics/includes/DiagramNumberOfUsers.class.php
M Statistics/includes/DiagramSearches.class.php
M Statistics/includes/FilterCategory.class.php
M Statistics/includes/FilterNamespace.class.php
M Statistics/includes/FilterSearchScope.class.php
M Statistics/includes/FilterUsers.class.php
M Statistics/includes/MultiSelectFilter.class.php
M Statistics/languages/Statistics.i18n.php
M Statistics/resources/BS.Statistics/Filter.js
M Statistics/resources/BS.Statistics/Panel.js
M Statistics/resources/BS.Statistics/StatisticsPortletConfig.js
M Statistics/resources/BS.Statistics/StatisticsPortletNumberOfArticles.js
M Statistics/resources/BS.Statistics/StatisticsPortletNumberOfEdits.js
M Statistics/resources/BS.Statistics/StatisticsPortletNumberOfPages.js
M Statistics/resources/BS.Statistics/StatisticsPortletNumberOfUsers.js
25 files changed, 308 insertions(+), 314 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions
refs/changes/87/148987/1
diff --git a/Statistics/Statistics.class.php b/Statistics/Statistics.class.php
index 1152a61..1862a19 100644
--- a/Statistics/Statistics.class.php
+++ b/Statistics/Statistics.class.php
@@ -101,21 +101,14 @@
$this->setHook( 'BSDashboardsUserDashboardPortalConfig' );
$this->setHook( 'BSDashboardsUserDashboardPortalPortlets' );
- //BsConfig::registerVar( 'MW::Statistics::DiagramDir',
'images/statistics', BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_STRING,
'bs-statistics-pref-DiagramDir' );
- //BsConfig::registerVar( 'MW::Statistics::DiagramWidth',
700, BsConfig::LEVEL_USER|BsConfig::TYPE_INT,
'bs-statistics-pref-DiagramWidth', 'int' );
- //BsConfig::registerVar( 'MW::Statistics::DiagramHeight',
500, BsConfig::LEVEL_USER|BsConfig::TYPE_INT,
'bs-statistics-pref-DiagramHeight', 'int' );
- //BsConfig::registerVar( 'MW::Statistics::DiagramType',
'line', BsConfig::LEVEL_USER|BsConfig::TYPE_STRING,
$this->mI18N );
- //BsConfig::registerVar( 'MW::Statistics::DiagramType',
'line',
BsConfig::LEVEL_USER|BsConfig::TYPE_STRING|BsConfig::USE_PLUGIN_FOR_PREFS,
'bs-statistics-pref-DiagramType', 'select' );
- //BsConfig::registerVar( 'MW::Statistics::DefaultFrom',
'01 January 2010', BsConfig::LEVEL_USER|BsConfig::TYPE_STRING,
'bs-statistics-pref-DefaultFrom' );
- //BsConfig::registerVar( 'MW::Statistics::DisableCache',
true, BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_BOOL,
'bs-statistics-pref-DisableCache', 'toggle' );
+ BsConfig::registerVar( 'MW::Statistics::ExcludeUsers', array(
'WikiSysop' ), BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_ARRAY_STRING,
'bs-statistics-pref-excludeusers', 'multiselectplusadd' );
+ BsConfig::registerVar( 'MW::Statistics::MaxNumberOfIntervals',
36, BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_INT,
'bs-statistics-pref-maxnumberofintervals', 'int' );
- BsConfig::registerVar( 'MW::Statistics::ExcludeUsers',
array( 'WikiSysop' ), BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_ARRAY_STRING,
'bs-statistics-pref-ExcludeUsers', 'multiselectplusadd' );
- BsConfig::registerVar( 'MW::Statistics::MaxNumberOfIntervals',
36, BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_INT,
'bs-statistics-pref-MaxNumberOfIntervals', 'int' );
$aAvailableGrains = array(
- 'Y' => 'bs-statistics-Y',
- 'm' => 'bs-statistics-m',
- 'W' => 'bs-statistics-W',
- 'd' => 'bs-statistics-d',
+ 'Y' => 'bs-statistics-year',
+ 'm' => 'bs-statistics-month',
+ 'W' => 'bs-statistics-week',
+ 'd' => 'bs-statistics-day',
);
BsConfig::registerVar( 'MW::Statistics::AvailableGrains',
$aAvailableGrains, BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_ARRAY_MIXED,
'bs-statistics-pref-AvailableGrains');
@@ -232,9 +225,9 @@
* @param Skin $oSkin
*/
public function onBeforePageDisplay( &$oOutputPage, &$oSkin ) {
- if( !$oSkin->getTitle()->isSpecial( 'AdminDashboard' )
- && !$oSkin->getTitle()->isSpecial( 'WikiAdmin' )
- && !$oSkin->getTitle()->isSpecial( 'UserDashboard' )
+ if(
!$oSkin->getTitle()->equals(SpecialPage::getTitleFor('AdminDashboard'))
+ &&
!$oSkin->getTitle()->equals(SpecialPage::getTitleFor('SpecialWikiAdmin'))
+ &&
!$oSkin->getTitle()->equals(SpecialPage::getTitleFor('UserDashboard'))
) return true;
$oOutputPage->addModules('ext.bluespice.statisticsPortlets');
@@ -388,7 +381,7 @@
return json_encode($aResult);
}
- //$aCategories[wfMsg( 'bs-statistics-all-categories' )] =
'(all)';
+ //$aCategories[wfMsg( 'bs-ns_all' )] = '(all)';
$oDbr = wfGetDB( DB_SLAVE );
$rRes = $oDbr->select('categorylinks', 'distinct cl_to', '',
'', array('ORDER BY' => 'cl_to ASC') );
while ( $oRow = $rRes->fetchObject() ) {
@@ -476,28 +469,28 @@
$aPortalConfig[1][] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfUsers',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfUsers' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofusers' )->plain(),
'inputPeriod' => 'week',
)
);
$aPortalConfig[1][] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfEdits',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfEdits' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofedits' )->plain(),
'inputPeriod' => 'week',
)
);
$aPortalConfig[2][] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfArticles',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfArticles' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofpages' )->plain(),
'inputPeriod' => 'week',
)
);
$aPortalConfig[2][] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfPages',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfPages' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofpages' )->plain(),
'inputPeriod' => 'week',
)
);
@@ -509,38 +502,38 @@
$aPortlets[] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfUsers',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfUsers' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofusers' )->plain(),
'inputPeriod' => 'week',
),
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfUsers' )->plain(),
- 'description' => wfMessage(
'bs-statistics-portlet-NumberOfUsersdesc' )->plain()
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofusers' )->plain(),
+ 'description' => wfMessage(
'bs-statistics-portlet-numberofusersdesc' )->plain()
);
$aPortlets[] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfEdits',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfEdits' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofedits' )->plain(),
'inputPeriod' => 'week',
),
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfEdits' )->plain(),
- 'description' => wfMessage(
'bs-statistics-portlet-NumberOfEditsdesc' )->plain()
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofedits' )->plain(),
+ 'description' => wfMessage(
'bs-statistics-portlet-numberofeditsdesc' )->plain()
);
$aPortlets[] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfArticles',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfArticles' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofpages' )->plain(),
'inputPeriod' => 'week',
),
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfArticles' )->plain(),
- 'description' => wfMessage(
'bs-statistics-portlet-NumberOfArticlesdesc' )->plain()
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofpages' )->plain(),
+ 'description' => wfMessage(
'bs-statistics-portlet-numberofpagesdesc' )->plain()
);
$aPortlets[] = array(
'type' =>
'BS.Statistics.StatisticsPortletNumberOfPages',
'config' => array(
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfPages' )->plain(),
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofpages' )->plain(),
'inputPeriod' => 'week',
),
- 'title' => wfMessage(
'bs-statistics-portlet-NumberOfPages' )->plain(),
- 'description' => wfMessage(
'bs-statistics-portlet-NumberOfPagesdesc' )->plain()
+ 'title' => wfMessage(
'bs-statistics-portlet-numberofpages' )->plain(),
+ 'description' => wfMessage(
'bs-statistics-portlet-numberofpagesdesc' )->plain()
);
return true;
diff --git a/Statistics/Statistics.setup.php b/Statistics/Statistics.setup.php
index 60d6066..9649a71 100644
--- a/Statistics/Statistics.setup.php
+++ b/Statistics/Statistics.setup.php
@@ -1,6 +1,8 @@
<?php
BsExtensionManager::registerExtension('Statistics',
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
+$wgMessagesDirs['Statistcs'] = __DIR__ . '/i18n';
+
$wgExtensionMessagesFiles['Statistcs'] = __DIR__ .
'/languages/Statistics.i18n.php';
$aResourceModuleTemplate = array(
@@ -17,40 +19,37 @@
),
'messages' => array(
'bs-statistics-filters',
- 'bs-statistics-continue-step-3',
+ 'bs-statistics-finish',
'bs-statistics-diagram',
'bs-statistics-from',
'bs-statistics-to',
'bs-statistics-filter-user',
'bs-statistics-filter-searchscope',
- 'bs-statistics-filter-namespace',
+ 'bs-ns',
'bs-statistics-filter-category',
'bs-statistics-mode',
'bs-statistics-absolute',
'bs-statistics-aggregated',
'bs-statistics-list',
'bs-statistics-grain',
- 'bs-statistics-Y',
- 'bs-statistics-m',
- 'bs-statistics-W',
- 'bs-statistics-d',
- 'bs-statistics-label-count',
- 'bs-statistics-loadingMessage',
+ 'bs-statistics-year',
+ 'bs-statistics-month',
+ 'bs-statistics-week',
+ 'bs-statistics-day',
+ 'bs-statistics-label-count'
)
) + $aResourceModuleTemplate;
$wgResourceModules['ext.bluespice.statisticsPortlets'] = array(
'messages' => array(
'bs-statistics-label-count',
- 'bs-statistics-portlet-NumberOfUsers',
- 'bs-statistics-portlet-NumberOfEdits',
- 'bs-statistics-portlet-NumberOfArticles',
- 'bs-statistics-portlet-NumberOfPages',
- 'bs-statistics-portletconfig-periodlabel',
- 'bs-statistics-portletconfig-periodlabel',
+ 'bs-statistics-portlet-numberofusers',
+ 'bs-statistics-portlet-numberofedits',
+ 'bs-statistics-portlet-numberofpages',
+ 'bs-extjs-portal-timespan',
'bs-statistics-portletconfig-periodday',
- 'bs-statistics-portletconfig-periodweek',
- 'bs-statistics-portletconfig-periodmonth',
+ 'bs-statistics-week',
+ 'bs-statistics-month',
)
) + $aResourceModuleTemplate;
diff --git a/Statistics/i18n/de-formal.json b/Statistics/i18n/de-formal.json
new file mode 100644
index 0000000..1123893
--- /dev/null
+++ b/Statistics/i18n/de-formal.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-statistics-not-allowed": "Sie sind nicht berechtigt, diese Seite zu
nutzen."
+}
diff --git a/Statistics/i18n/de.json b/Statistics/i18n/de.json
new file mode 100644
index 0000000..b22c776
--- /dev/null
+++ b/Statistics/i18n/de.json
@@ -0,0 +1,58 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-statistics-desc": "Fügt erweiterte Statistik-Funktionalität hinzu",
+ "prefs-statistics": "Erweiterte Statistik",
+ "extendedstatistics": "Extended statistics",
+ "bs-statistics-diagram": "Datenbasis",
+ "bs-statistics-from": "Von",
+ "bs-statistics-to": "Bis",
+ "bs-statistics-grain": "Intervall",
+ "bs-statistics-mode": "Modus",
+ "bs-statistics-aggregated": "aggregiert",
+ "bs-statistics-absolute": "absolut",
+ "bs-statistics-year": "Jahr",
+ "bs-statistics-month": "Monat",
+ "bs-statistics-week": "Kalenderwoche",
+ "bs-statistics-day": "Tag",
+ "bs-statistics-list": "als Liste",
+ "bs-statistics-not-allowed": "Du bist nicht berechtigt, diese Seite zu
nutzen.",
+ "bs-statistics-finish": "Diagramm erstellen",
+ "bs-statistics-filters": "Filter",
+ "bs-statistics-interval-too-big": "Das Intervall ist zu groß gewählt.
Es darf maximal 35 Intervall-Schritte enthalten.",
+ "bs-statistics-diag-number-of-users": "Anzahl der Nutzer",
+ "bs-statistics-diag-number-of-users-desc": "Zeigt die Zahl der Nutzer,
die sich im ausgewählten Zeitraum registriert haben.",
+ "bs-statistics-label-name": "Name",
+ "bs-statistics-label-registration": "Registrierung",
+ "bs-statistics-diag-number-of-pages": "Anzahl der Seiten",
+ "bs-statistics-diag-number-of-pages-desc": "Zeigt die Zahl aller
Seiten, die im ausgewählten Zeitraum im Wiki erstellt wurden.",
+ "bs-statistics-diag-number-of-pages-mw": "Anzahl der Artikel",
+ "bs-statistics-diag-number-of-pages-mw-desc": "Zeigt die Zahl aller
Seiten, die als Artikel gewertet werden und im ausgewählten Zeitraum im Wiki
erstellt wurden. Ein Artikel befindet sich in einem auswertbaren Namespace und
hat mindestens einen internen Link.",
+ "bs-statistics-label-page": "Artikel",
+ "bs-statistics-label-creator": "Ersteller",
+ "bs-statistics-diag-number-of-edits": "Anzahl der Bearbeitungen",
+ "bs-statistics-diag-number-of-edits-desc": "Zeigt die Zahl aller
Bearbeitungen, die im ausgewählten Zeitraum getätigt wurden.",
+ "bs-statistics-diag-edits-per-user": "Bearbeitungen pro Nutzer",
+ "bs-statistics-diag-edits-per-user-desc": "Zahl der Bearbeitungen, die
ein Nutzer im ausgewählten Zeitraum durchschnittlich getätigt hat.",
+ "bs-statistics-diag-search-queries": "Suchanfragen",
+ "bs-statistics-diag-search-queries-desc": "Zahl der Suchanfragen im
ausgewählten Zeitraum",
+ "bs-statistics-label-searchterm": "Suchbegriff",
+ "bs-statistics-label-count": "Anzahl",
+ "bs-statistics-label-maxhits": "Max. Treffer",
+ "bs-statistics-label-time": "Zeit",
+ "bs-statistics-filter-category": "Kategorie",
+ "bs-statistics-filter-searchscope": "Suchraum",
+ "bs-statistics-filter-user": "Ausgeschlossene Benutzer",
+ "bs-statistics-pref-excludeusers": "Diese Benutzer aus Statistiken
entfernen:",
+ "bs-statistics-pref-maxnumberofintervals": "Maximale Anzahl von
Intervall-Schritten:",
+ "bs-statistics-portlet-numberofusers": "Anzahl der Benutzer",
+ "bs-statistics-portlet-numberofedits": "Anzahl der Bearbeitungen",
+ "bs-statistics-portlet-numberofpages": "Anzahl der Seiten",
+ "bs-statistics-portlet-numberofusersdesc": "Statistik der Anzahl der
Benutzer.",
+ "bs-statistics-portlet-numberofeditsdesc": "Statistik der Anzahl der
Bearbeitungen.",
+ "bs-statistics-portlet-numberofpagesdesc": "Statistik der Anzahl der
Seiten.",
+ "bs-statistics-portletconfig-periodday": "Gestern"
+}
diff --git a/Statistics/i18n/en.json b/Statistics/i18n/en.json
new file mode 100644
index 0000000..f63f72f
--- /dev/null
+++ b/Statistics/i18n/en.json
@@ -0,0 +1,58 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-statistics-desc": "Adds extended statistics functionality",
+ "prefs-statistics": "Extended statistics",
+ "extendedstatistics": "Extended statistics",
+ "bs-statistics-diagram": "Query",
+ "bs-statistics-from": "From",
+ "bs-statistics-to": "To",
+ "bs-statistics-grain": "Interval",
+ "bs-statistics-mode": "Mode",
+ "bs-statistics-aggregated": "aggregated",
+ "bs-statistics-absolute": "absolute",
+ "bs-statistics-year": "Year",
+ "bs-statistics-month": "Month",
+ "bs-statistics-week": "Calender week",
+ "bs-statistics-day": "Day",
+ "bs-statistics-list": "List",
+ "bs-statistics-not-allowed": "You are not allowed to use this page.",
+ "bs-statistics-finish": "Create diagram",
+ "bs-statistics-filters": "Filters",
+ "bs-statistics-interval-too-big": "The interval is too big. It should
not contain more than 35 interval steps.",
+ "bs-statistics-diag-number-of-users": "Number of users",
+ "bs-statistics-diag-number-of-users-desc": "Dispalys the number of
users which were created within the chosen period.",
+ "bs-statistics-label-name": "Name",
+ "bs-statistics-label-registration": "Registration",
+ "bs-statistics-diag-number-of-pages": "Number of pages",
+ "bs-statistics-diag-number-of-pages-desc": "Dispalys the total number
of pages that were created within the chosen period.",
+ "bs-statistics-diag-number-of-pages-mw": "Number of content pages",
+ "bs-statistics-diag-number-of-pages-mw-desc": "Dispalys the number of
content pages that were created within the chosen period.",
+ "bs-statistics-label-page": "Page",
+ "bs-statistics-label-creator": "Creator",
+ "bs-statistics-diag-number-of-edits": "Number of edits",
+ "bs-statistics-diag-number-of-edits-desc": "Dispalys the total number
of edits that were done within the chosen period.",
+ "bs-statistics-diag-edits-per-user": "Edits per user",
+ "bs-statistics-diag-edits-per-user-desc": "Dispalys the average number
of edits one user did within the chosen period.",
+ "bs-statistics-diag-search-queries": "Search queries",
+ "bs-statistics-diag-search-queries-desc": "Dispalys the number of
search queries within the chosen period.",
+ "bs-statistics-label-searchterm": "Search term",
+ "bs-statistics-label-count": "Count",
+ "bs-statistics-label-maxhits": "Maximum results",
+ "bs-statistics-label-time": "Time",
+ "bs-statistics-filter-category": "Category",
+ "bs-statistics-filter-searchscope": "Search scope",
+ "bs-statistics-filter-user": "Excluded users",
+ "bs-statistics-pref-excludeusers": "Exclude these users as default:",
+ "bs-statistics-pref-maxnumberofintervals": "Maximum number of interval
steps:",
+ "bs-statistics-portlet-numberofusers": "Number of users",
+ "bs-statistics-portlet-numberofedits": "Number of edits",
+ "bs-statistics-portlet-numberofpages": "Number of pages",
+ "bs-statistics-portlet-numberofusersdesc": "Statistic of the number of
users.",
+ "bs-statistics-portlet-numberofeditsdesc": "Statistic of the number of
edits.",
+ "bs-statistics-portlet-numberofpagesdesc": "Statistic of the number of
pages.",
+ "bs-statistics-portletconfig-periodday": "Yesterday"
+}
diff --git a/Statistics/i18n/qqq.json b/Statistics/i18n/qqq.json
new file mode 100644
index 0000000..4224d76
--- /dev/null
+++ b/Statistics/i18n/qqq.json
@@ -0,0 +1,58 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-statistics-desc": "Used in
[{{canonicalurl:Special:WikiAdmin|mode=ExtensionInfo}}
Special:WikiAdmin?mode=ExtensionInfo], description of statistics extension",
+ "prefs-statistics": "Used in
[{{canonicalurl:Special:WikiAdmin|mode=Preferences}}
Special:WikiAdmin?mode=Preferences], headline for extended statistics section
in preferences.\n{{Identical|Extended statistics}}",
+ "extendedstatistics": "Special page title identical to preferences
section\n{{Identical|Extended statistics}}",
+ "bs-statistics-diagram": "Used in [[Special:ExtendedStatistics]], label
for query\n{{Identical|Query}}",
+ "bs-statistics-from": "Used in [[Special:ExtendedStatistics]], label
for from\n{{Identical|From}}",
+ "bs-statistics-to": "Used in [[Special:ExtendedStatistics]], label for
to\n{{To|Query}}",
+ "bs-statistics-grain": "Used in [[Special:ExtendedStatistics]], label
for interval\n{{Identical|Interval}}",
+ "bs-statistics-mode": "Used in [[Special:ExtendedStatistics]], label
for mode\n{{Identical|Mode}}",
+ "bs-statistics-aggregated": "Option in [[Special:ExtendedStatistics]],
label for aggregated\n{{Identical|Aggregated}}",
+ "bs-statistics-absolute": "Option in [[Special:ExtendedStatistics]],
label for absolute\n{{Identical|Absolute}}",
+ "bs-statistics-year": "Option in [[Special:ExtendedStatistics]], label
for year\n{{Identical|Year}}",
+ "bs-statistics-month": "Option in [[Special:ExtendedStatistics]], label
for month\n{{Identical|Month}}",
+ "bs-statistics-week": "Option in [[Special:ExtendedStatistics]], label
for calender week\n{{Identical|Calender week}}",
+ "bs-statistics-day": "Option in [[Special:ExtendedStatistics]], label
for day\n{{Identical|Day}}",
+ "bs-statistics-list": "Option in [[Special:ExtendedStatistics]], label
for list\n{{Identical|List}}",
+ "bs-statistics-not-allowed": "Error message used in
[[Special:ExtendedStatistics]] that you are not allowed to use this page.",
+ "bs-statistics-finish": "Used in [[Special:ExtendedStatistics]], button
label for create diagram\n{{Identical|Create diagram}}",
+ "bs-statistics-filters": "Used in [[Special:ExtendedStatistics]],
headline for filters section\n{{Identical|Filters}}",
+ "bs-statistics-interval-too-big": "Error message that the interval is
too big. It should not contain more than 35 interval steps.",
+ "bs-statistics-diag-number-of-users": "Option in
[[Special:ExtendedStatistics]], label for number of users",
+ "bs-statistics-diag-number-of-users-desc": "Description message for
number of users option.",
+ "bs-statistics-label-name": "Used in [[Special:ExtendedStatistics]],
label for name\n{{Identical|Name}}",
+ "bs-statistics-label-registration": "Used in
[[Special:ExtendedStatistics]], label for
registration\n{{Identical|Registration}}",
+ "bs-statistics-diag-number-of-pages": "Option in
[[Special:ExtendedStatistics]], label for number of pages",
+ "bs-statistics-diag-number-of-pages-desc": "Description message for
number of pages option.",
+ "bs-statistics-diag-number-of-pages-mw": "Option in
[[Special:ExtendedStatistics]], label for number of content pages",
+ "bs-statistics-diag-number-of-pages-mw-desc": "Description message for
number of content pages option.",
+ "bs-statistics-label-page": "Used in [[Special:ExtendedStatistics]],
label for page\n{{Identical|Page}}",
+ "bs-statistics-label-creator": "Used in [[Special:ExtendedStatistics]],
label for creator\n{{Identical|Creator}}",
+ "bs-statistics-diag-number-of-edits": "Option in
[[Special:ExtendedStatistics]], label for number of edits",
+ "bs-statistics-diag-number-of-edits-desc": "Description message for
number of edits option.",
+ "bs-statistics-diag-edits-per-user": "Used in
[[Special:ExtendedStatistics]], label for edits per user\n{{Identical|Edits per
user}}",
+ "bs-statistics-diag-edits-per-user-desc": "Dispalys the average number
of edits one user did within the chosen period.",
+ "bs-statistics-diag-search-queries": "Used in
[[Special:ExtendedStatistics]], label for search queries\n{{Identical|Search
queries}}",
+ "bs-statistics-diag-search-queries-desc": "Dispalys the number of
search queries within the chosen period.",
+ "bs-statistics-label-searchterm": "Used in
[[Special:ExtendedStatistics]], label for search term\n{{Identical|Search
term}}",
+ "bs-statistics-label-count": "Used in [[Special:ExtendedStatistics]],
label for count\n{{Identical|Count}}",
+ "bs-statistics-label-maxhits": "Used in [[Special:ExtendedStatistics]],
label for maximum results\n{{Identical|Maximum results}}",
+ "bs-statistics-label-time": "Used in [[Special:ExtendedStatistics]],
label for time\n{{Identical|Time}}",
+ "bs-statistics-filter-category": "Option in
[[Special:ExtendedStatistics]], label for category\n{{Identical|Category}}",
+ "bs-statistics-filter-searchscope": "Option in
[[Special:ExtendedStatistics]], label for search scope\n{{Identical|Search
scope}}",
+ "bs-statistics-filter-user": "Option in [[Special:ExtendedStatistics]],
label for excluded users\n{{Identical|Excluded users}}",
+ "bs-statistics-pref-excludeusers": "Option in
[{{canonicalurl:Special:WikiAdmin|mode=Preferences}}
Special:WikiAdmin?mode=Preferences], label for exclude these users as default:",
+ "bs-statistics-pref-maxnumberofintervals": "Option in
[{{canonicalurl:Special:WikiAdmin|mode=Preferences}}
Special:WikiAdmin?mode=Preferences], label for maximum number of interval
steps:",
+ "bs-statistics-portlet-numberofusers": "Used in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], headline for number
of users",
+ "bs-statistics-portlet-numberofedits": "Used in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], headline for number
of edits",
+ "bs-statistics-portlet-numberofpages": "Used in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], headline for number
of pages",
+ "bs-statistics-portlet-numberofusersdesc": "Used in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], description for
number of users.",
+ "bs-statistics-portlet-numberofeditsdesc": "Used in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], description for
number of edits.",
+ "bs-statistics-portlet-numberofpagesdesc": "Used in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], description for
number of pages.",
+ "bs-statistics-portletconfig-periodday": "Option in
[[Special:AdminDashboard]] and [[Special:UserDashboard]], label for
yesterday\n{{Identical|Yesterday}}"
+}
diff --git a/Statistics/includes/DiagramEditsPerUser.class.php
b/Statistics/includes/DiagramEditsPerUser.class.php
index 1e3122d..11515db 100644
--- a/Statistics/includes/DiagramEditsPerUser.class.php
+++ b/Statistics/includes/DiagramEditsPerUser.class.php
@@ -16,7 +16,7 @@
/**
* Describes edits per user for Statistics for BlueSpice.
* @package BlueSpice_Extensions
- * @subpackage Statistics
+ * @subpackage Statistics
*/
class BsDiagramEditsPerUser extends BsDiagram {
@@ -26,10 +26,10 @@
public function __construct() {
parent::__construct();
- $this->sTitle = wfMessage(
'bs-statistics-diag-edits-per-user')->text();
- $this->sDescription = wfMessage(
'bs-statistics-diag-edits-per-user-desc')->text();
- $this->sTitlex = wfMessage( 'bs-statistics-label-time')->text();
- $this->sTitley = wfMessage(
'bs-statistics-label-count')->text();
+ $this->sTitle = wfMsg( 'bs-statistics-diag-edits-per-user');
+ $this->sDescription = wfMsg(
'bs-statistics-diag-edits-per-user-desc');
+ $this->sTitlex = wfMsg( 'bs-statistics-label-time');
+ $this->sTitley = wfMsg( 'bs-statistics-label-count');
$this->sActualGrain = "m";
$this->sModLabel = "M";
$this->sFormatX = "%01.1f";
@@ -64,7 +64,7 @@
)
AND NOT user_name IN (@BsFilterUsers)
) as y";
- //$this->sListLabel = array(wfMessage(
'label-article')->text(), wfMessage( 'label-creator')->text());
+ //$this->sListLabel = array(wfMsg( 'label-article'), wfMsg(
'label-creator'));
$this->sMode = BsDiagram::MODE_ABSOLUTE;
$this->addFilter( new BsFilterNamespace( $this, array( 0 ) ) );
diff --git a/Statistics/includes/DiagramNumberOfArticles.class.php
b/Statistics/includes/DiagramNumberOfArticles.class.php
index b3956a6..0b34059 100644
--- a/Statistics/includes/DiagramNumberOfArticles.class.php
+++ b/Statistics/includes/DiagramNumberOfArticles.class.php
@@ -16,7 +16,7 @@
/**
* Describes number of articles for Statistics for BlueSpice.
* @package BlueSpice_Extensions
- * @subpackage Statistics
+ * @subpackage Statistics
*/
class BsDiagramNumberOfArticles extends BsDiagram {
@@ -26,10 +26,10 @@
public function __construct() {
parent::__construct();
- $this->sTitle = wfMessage(
'bs-statistics-diag-number-of-pages-mw')->text();
- $this->sDescription = wfMessage(
'bs-statistics-diag-number-of-pages-mw-desc')->text();
- $this->sTitlex = wfMessage( 'bs-statistics-label-time')->text();
- $this->sTitley = wfMessage(
'bs-statistics-label-count')->text();
+ $this->sTitle = wfMsg( 'bs-statistics-diag-number-of-pages-mw');
+ $this->sDescription = wfMsg(
'bs-statistics-diag-number-of-pages-mw-desc');
+ $this->sTitlex = wfMsg( 'bs-statistics-label-time');
+ $this->sTitley = wfMsg( 'bs-statistics-label-count');
$this->sActualGrain = "m";
$this->sModLabel = "M";
$this->iDataSource = BsDiagram::DATASOURCE_DATABASE;
@@ -74,7 +74,7 @@
)
)
AND
@BsFilterCategory";
- $this->sListLabel = array( wfMessage(
'bs-statistics-label-article')->text(), wfMessage(
'bs-statistics-label-creator')->text() );
+ $this->sListLabel = array( wfMsg( 'bs-statistics-label-page'),
wfMsg( 'bs-statistics-label-creator'));
$this->sMode = BsDiagram::MODE_AGGREGATED;
$this->addFilter( new BsFilterNamespace( $this, array( 0 ) ) );
diff --git a/Statistics/includes/DiagramNumberOfEdits.class.php
b/Statistics/includes/DiagramNumberOfEdits.class.php
index 2c9788a..69a70f1 100644
--- a/Statistics/includes/DiagramNumberOfEdits.class.php
+++ b/Statistics/includes/DiagramNumberOfEdits.class.php
@@ -16,7 +16,7 @@
/**
* Describes number of edits for Statistics for BlueSpice.
* @package BlueSpice_Extensions
- * @subpackage Statistics
+ * @subpackage Statistics
*/
class BsDiagramNumberOfEdits extends BsDiagram {
@@ -26,10 +26,10 @@
public function __construct() {
parent::__construct();
- $this->sTitle = wfMessage(
'bs-statistics-diag-number-of-edits')->text();
- $this->sDescription = wfMessage(
'bs-statistics-diag-number-of-edits-desc')->text();
- $this->sTitlex = wfMessage( 'bs-statistics-label-time')->text();
- $this->sTitley = wfMessage(
'bs-statistics-label-count')->text();
+ $this->sTitle = wfMsg( 'bs-statistics-diag-number-of-edits');
+ $this->sDescription = wfMsg(
'bs-statistics-diag-number-of-edits-desc');
+ $this->sTitlex = wfMsg( 'bs-statistics-label-time');
+ $this->sTitley = wfMsg( 'bs-statistics-label-count');
$this->sActualGrain = "m";
$this->sModLabel = "M";
$this->iDataSource = BsDiagram::DATASOURCE_DATABASE;
@@ -52,7 +52,7 @@
)
AND NOT
rev_user_text IN (@BsFilterUsers)
AND
@BsFilterCategory";
- //$this->sListLabel = array(wfMessage(
'label-article')->text(), wfMessage( 'label-creator')->text());
+ //$this->sListLabel = array(wfMsg( 'label-article'), wfMsg(
'label-creator'));
$this->sMode = BsDiagram::MODE_ABSOLUTE;
$this->addFilter( new BsFilterNamespace( $this, array( 0 ) ) );
diff --git a/Statistics/includes/DiagramNumberOfPages.class.php
b/Statistics/includes/DiagramNumberOfPages.class.php
index 4d74a4b..03a2350 100644
--- a/Statistics/includes/DiagramNumberOfPages.class.php
+++ b/Statistics/includes/DiagramNumberOfPages.class.php
@@ -16,7 +16,7 @@
/**
* Describes number of pages for Statistics for BlueSpice.
* @package BlueSpice_Extensions
- * @subpackage Statistics
+ * @subpackage Statistics
*/
class BsDiagramNumberOfPages extends BsDiagram {
@@ -26,17 +26,17 @@
public function __construct() {
parent::__construct();
- $this->sTitle = wfMessage(
'bs-statistics-diag-number-of-pages')->text();
- $this->sDescription = wfMessage(
'bs-statistics-diag-number-of-pages-desc')->text();
- $this->sTitlex = wfMessage( 'bs-statistics-label-time')->text();
- $this->sTitley = wfMessage(
'bs-statistics-label-count')->text();
+ $this->sTitle = wfMsg( 'bs-statistics-diag-number-of-pages');
+ $this->sDescription = wfMsg(
'bs-statistics-diag-number-of-pages-desc');
+ $this->sTitlex = wfMsg( 'bs-statistics-label-time');
+ $this->sTitley = wfMsg( 'bs-statistics-label-count');
$this->sActualGrain = "m";
$this->sModLabel = "M";
$this->iDataSource = BsDiagram::DATASOURCE_DATABASE;
$this->bListable = true;
$this->sSqlWhatForDiagram = "count(DISTINCT rev_page)";
$this->sSqlWhatForList = "DISTINCT page_title, rev_user_text";
- $this->sSqlFromWhere = "FROM #__revision AS a
+ $this->sSqlFromWhere = "FROM #__revision AS a
JOIN
#__page ON #__page.page_id = a.rev_page
LEFT
JOIN #__categorylinks AS c ON c.cl_from = a.rev_page
WHERE
rev_timestamp @period
@@ -47,7 +47,7 @@
)
AND
@BsFilterNamespace
AND
@BsFilterCategory";
- $this->sListLabel = array( wfMessage(
'bs-statistics-label-article')->text(), wfMessage(
'bs-statistics-label-creator')->text() );
+ $this->sListLabel = array( wfMsg( 'bs-statistics-label-page'),
wfMsg( 'bs-statistics-label-creator') );
$this->sMode = BsDiagram::MODE_AGGREGATED;
$this->addFilter( new BsFilterNamespace( $this, array( 0 ) ) );
diff --git a/Statistics/includes/DiagramNumberOfUsers.class.php
b/Statistics/includes/DiagramNumberOfUsers.class.php
index 27ba12d..c62394b 100644
--- a/Statistics/includes/DiagramNumberOfUsers.class.php
+++ b/Statistics/includes/DiagramNumberOfUsers.class.php
@@ -5,7 +5,6 @@
* Part of BlueSpice for MediaWiki
*
* @author Markus Glaser <[email protected]>
-
* @package BlueSpice_Extensions
* @subpackage Statistics
* @copyright Copyright (C) 2011 Hallo Welt! - Medienwerkstatt GmbH, All
rights reserved.
@@ -27,10 +26,10 @@
parent::__construct();
BsConfig::get( 'MW::Statistics::ExcludeUsers' );
- $this->sTitle = wfMessage(
'bs-statistics-diag-number-of-users')->text();
- $this->sDescription = wfMessage(
'bs-statistics-diag-number-of-users-desc')->text();
- $this->sTitlex = wfMessage( 'bs-statistics-label-time')->text();
- $this->sTitley = wfMessage(
'bs-statistics-label-count')->text();
+ $this->sTitle = wfMessage( 'bs-statistics-diag-number-of-users'
)->plain();
+ $this->sDescription = wfMessage(
'bs-statistics-diag-number-of-users-desc' )->plain();
+ $this->sTitlex = wfMessage( 'bs-statistics-label-time'
)->plain();
+ $this->sTitley = wfMessage( 'bs-statistics-label-count'
)->plain();
$this->sActualGrain = "m";
$this->sModLabel = "M";
$this->iDataSource = BsDiagram::DATASOURCE_DATABASE;
@@ -45,7 +44,7 @@
WHERE
ug_group = 'bot'
)
AND NOT
user_name IN (@BsFilterUsers)";
- $this->sListLabel = array( wfMessage(
'bs-statistics-label-name')->text(), wfMessage(
'bs-statistics-label-registration')->text() );
+ $this->sListLabel = array( wfMessage(
'bs-statistics-label-name' )->plain(), wfMessage(
'bs-statistics-label-registration' )->plain() );
$this->sMode = BsDiagram::MODE_AGGREGATED;
$this->addFilter( new BsFilterUsers( $this ) );
diff --git a/Statistics/includes/DiagramSearches.class.php
b/Statistics/includes/DiagramSearches.class.php
index 9f521c0..0111436 100644
--- a/Statistics/includes/DiagramSearches.class.php
+++ b/Statistics/includes/DiagramSearches.class.php
@@ -16,7 +16,7 @@
/**
* Describes search query diagram for Statistics for BlueSpice.
* @package BlueSpice_Extensions
- * @subpackage Statistics
+ * @subpackage Statistics
*/
class BsDiagramSearches extends BsDiagram {
@@ -26,10 +26,10 @@
public function __construct() {
parent::__construct();
- $this->sTitle = wfMessage(
'bs-statistics-diag-search-queries')->text();
- $this->sDescription = wfMessage(
'bs-statistics-diag-search-queries-desc')->text();
- $this->sTitlex = wfMessage( 'bs-statistics-label-time')->text();
- $this->sTitley = wfMessage(
'bs-statistics-label-count')->text();
+ $this->sTitle = wfMsg( 'bs-statistics-diag-search-queries');
+ $this->sDescription = wfMsg(
'bs-statistics-diag-search-queries-desc');
+ $this->sTitlex = wfMsg( 'bs-statistics-label-time');
+ $this->sTitley = wfMsg( 'bs-statistics-label-count');
$this->sActualGrain = "m";
$this->sModLabel = "M";
$this->iDataSource = BsDiagram::DATASOURCE_DATABASE;
@@ -38,11 +38,7 @@
$this->sSqlWhatForList = "stats_term, count(stats_term) as x,
max(stats_hits)";
$this->sSqlFromWhere = "FROM #__bs_searchstats WHERE stats_ts
@period AND @BsFilterSearchScope";
$this->sSqlOptionsForList = "GROUP BY stats_term";
- $this->sListLabel = array(
- wfMessage( 'bs-statistics-label-searchterm' )->text(),
- wfMessage( 'bs-statistics-label-count' )->text(),
- wfMessage( 'bs-statistics-label-maxhits' )->text()
- );
+ $this->sListLabel = array( wfMsg(
'bs-statistics-label-searchterm' ), wfMsg( 'bs-statistics-label-count' ),
wfMsg( 'bs-statistics-label-maxhits' ) );
$this->sMode = BsDiagram::MODE_AGGREGATED;
$this->addFilter( new BsFilterSearchScope( $this, array(
"title" ) ) );
diff --git a/Statistics/includes/FilterCategory.class.php
b/Statistics/includes/FilterCategory.class.php
index 8e276a8..31e4ad5 100644
--- a/Statistics/includes/FilterCategory.class.php
+++ b/Statistics/includes/FilterCategory.class.php
@@ -28,7 +28,7 @@
public function __construct( $oDiagram, $aDefaultValues = null ) {
parent::__construct( $oDiagram, $aDefaultValues );
- $this->sLabel = wfMessage( 'bs-statistics-filter-category'
)->text();
+ $this->sLabel = wfMsg( 'bs-statistics-filter-category' );
$this->aAvailableValues = $this->loadAvailableValues();
$this->aDefaultValues = array();
}
@@ -67,7 +67,7 @@
public function loadAvailableValues() {
$aCategories = array();
// TODO MRG (20.02.11 23:51): i18n geht noch nicht so recht
- $aCategories[wfMessage( 'bs-statistics-all-categories'
)->text()] = '(all)';
+ $aCategories[wfMsg( 'bs-ns_all' )] = '(all)';
// TODO MRG (22.12.10 01:19): Greift auf MW zu
$oDbr = wfGetDB( DB_SLAVE );
$rRes = $oDbr->select('categorylinks', 'distinct cl_to', '',
'', array('ORDER BY' => 'cl_to ASC') );
diff --git a/Statistics/includes/FilterNamespace.class.php
b/Statistics/includes/FilterNamespace.class.php
index a204227..cef5b71 100644
--- a/Statistics/includes/FilterNamespace.class.php
+++ b/Statistics/includes/FilterNamespace.class.php
@@ -27,7 +27,7 @@
public function __construct( $oDiagram, $aDefaultValues ) {
parent::__construct( $oDiagram, $aDefaultValues );
- $this->sLabel = wfMessage( 'bs-statistics-filter-namespace'
)->text();
+ $this->sLabel = wfMsg( 'bs-ns' );
$this->aAvailableValues = $this->loadAvailableValues();
$this->aDefaultValues = array( 0 );
}
diff --git a/Statistics/includes/FilterSearchScope.class.php
b/Statistics/includes/FilterSearchScope.class.php
index b3cdaaa..b00740d 100644
--- a/Statistics/includes/FilterSearchScope.class.php
+++ b/Statistics/includes/FilterSearchScope.class.php
@@ -28,7 +28,7 @@
public function __construct( $oDiagram, $aDefaultValues ) {
parent::__construct( $oDiagram, $aDefaultValues );
- $this->sLabel = wfMessage( 'bs-statistics-filter-searchscope'
)->text();
+ $this->sLabel = wfMsg( 'bs-statistics-filter-searchscope' );
$this->aAvailableValues = array( 'title', 'text', 'files',
'all' );
$this->aDefaultValues = array( 'all' );
}
diff --git a/Statistics/includes/FilterUsers.class.php
b/Statistics/includes/FilterUsers.class.php
index 42ad0eb..ff6ce5c 100644
--- a/Statistics/includes/FilterUsers.class.php
+++ b/Statistics/includes/FilterUsers.class.php
@@ -28,7 +28,7 @@
public function __construct( $oDiagram, $aDefaultValues = null ) {
parent::__construct( $oDiagram, $aDefaultValues );
- $this->sLabel = wfMessage( 'bs-statistics-filter-user'
)->text();
+ $this->sLabel = wfMsg( 'bs-statistics-filter-user' );
$this->aAvailableValues = $this->loadAvailableValues();
$this->aDefaultValues = BsConfig::get(
'MW::Statistics::ExcludeUsers' );
}
diff --git a/Statistics/includes/MultiSelectFilter.class.php
b/Statistics/includes/MultiSelectFilter.class.php
index 1466099..2b1b5bf 100644
--- a/Statistics/includes/MultiSelectFilter.class.php
+++ b/Statistics/includes/MultiSelectFilter.class.php
@@ -48,7 +48,7 @@
$this->getActiveValues();
$aI18NValues = array();
foreach ( $this->aActiveValues as $sValue ) {
- $sValueText = preg_replace(
"/^(<|<)?(.*?)(>|>)?$/", "$2", wfMessage( $sValue )->text() );
+ $sValueText = preg_replace(
"/^(<|<)?(.*?)(>|>)?$/", "$2", wfMsg( $sValue ) );
$aI18NValues[] = $sValueText;
}
return implode( ", ", $aI18NValues );
diff --git a/Statistics/languages/Statistics.i18n.php
b/Statistics/languages/Statistics.i18n.php
index f103a5a..1cd4d5c 100644
--- a/Statistics/languages/Statistics.i18n.php
+++ b/Statistics/languages/Statistics.i18n.php
@@ -1,210 +1,35 @@
<?php
/**
- * Internationalisation file for WhoIsOnline
+ * 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 WhoIsOnline
- * @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( 'wfJsonI18nShim0fe14355d840c93c' ) ) {
+ function wfJsonI18nShim0fe14355d840c93c( $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(
- 'specialextendedstatistics' => 'Extended Statistics',
- 'extendedstatistics' => 'Extended Statistics',
- 'specialextendedstatistics-desc' => 'Displays statistics
about usage of this wiki',
- 'specialpages-group-bluespice' => 'BlueSpice',
- 'bs-statistics-extension-description' => 'Statistics module for
BlueSpice.',
- 'bs-statistics-diagram' =>
'Statistical query',
- 'bs-statistics-from' => 'From',
- 'bs-statistics-to' => 'To',
- 'bs-statistics-from-to' => 'From $1 to $2',
- 'bs-statistics-create' => 'Create',
- 'bs-statistics-grain' => 'Resolution',
- 'bs-statistics-mode' => 'Mode',
- 'bs-statistics-aggregated' => 'aggregated',
- 'bs-statistics-grouped' => 'grouped',
- 'bs-statistics-normal' => 'absolute',
- 'bs-statistics-absolute' => 'absolute',
- 'bs-statistics-Y' => 'Year',
- 'bs-statistics-m' => 'Month',
- 'bs-statistics-W' => 'Calendar week',
- 'bs-statistics-d' => 'Day',
- 'bs-statistics-list' => 'list',
- 'bs-statistics-back' => 'Back',
- 'bs-statistics-not-allowed' => 'You are not allowed
to use this page.',
- 'bs-statistics-step1' => '<b>Step 1</b>: Choose
a data basis.',
- 'bs-statistics-step2' => '<b>Step 2</b>: Set
the filters for your diagram.',
- 'bs-statistics-step3' => '<b>Step 3</b>: On
this page the diagram is displayed.',
- 'bs-statistics-continue-step-2' => 'Continue to filters',
- 'bs-statistics-continue-step-3' => 'Create diagram',
- 'bs-statistics-nav-step-1' => '1. Choose data basis',
- 'bs-statistics-nav-step-2' => '2. Choose filter',
- 'bs-statistics-nav-step-3' => '3. Create diagram',
- 'bs-statistics-back-step-1' => 'Back to selection of
statistical query',
- 'bs-statistics-back-step-2' => 'Back to filters',
- 'bs-statistics-depiction' => 'Depiction',
- 'bs-statistics-filters' => 'Filters',
- 'bs-statistics-interval-too-big' => 'The interval you
chose is too big. It should not contain more than 35 steps.',
- 'bs-statistics-diag-number-of-users' => "Number of users",
- 'bs-statistics-diag-number-of-users-desc' => "Shows the number of
users who registered within the chosen period.",
- 'bs-statistics-label-name' => "Name",
- 'bs-statistics-label-registration' => "Registration",
- 'bs-statistics-diag-number-of-pages' => "Number of pages",
- 'bs-statistics-diag-number-of-pages-desc' => "Shows the total
number of pages that were created within the chosen period.",
- 'bs-statistics-diag-number-of-pages-mw' => "Number of content
pages",
- 'bs-statistics-diag-number-of-pages-mw-desc' => "Shows the number of
all pages that count as content pages and were created within the chosen
period. A content page is in an evaluable namespace and has at least one
internal link.",
- 'bs-statistics-label-article' => "Article",
- 'bs-statistics-label-creator' => "Creator",
- 'bs-statistics-diag-number-of-edits' => "Number of edits",
- 'bs-statistics-diag-number-of-edits-desc' => "Shows the total
number of edits that were done within the chosen period.",
- 'bs-statistics-diag-edits-per-user' => "Edits per user",
- 'bs-statistics-diag-edits-per-user-desc' => "Shows the average
number of edits a single user did within the chosen period.",
- 'bs-statistics-diag-search-queries' => "Search queries",
- 'bs-statistics-diag-search-queries-desc' => "Shows the number of
search queries within the chosen period.",
- 'bs-statistics-label-searchterm' => "Search term",
- 'bs-statistics-label-count' => "Count",
- 'bs-statistics-label-maxhits' => "Max. hits",
- 'bs-statistics-label-searches' => "No. of queries",
- 'bs-statistics-label-time' => "Time",
- 'bs-statistics-filter-namespace' => "Namespace",
- 'bs-statistics-filter-category' => "Category",
- 'bs-statistics-all-categories' => "(all)",
- 'bs-statistics-filter-searchscope' => "Search scope",
- 'bs-statistics-filter-user' => "Excluded users",
- 'Statistics' => 'Extended Statistics',
- 'prefs-Statistics' => 'Extended Statistics',
- 'bs-statistics-pref-DiagramDir' => 'Diagram and cache
folder (relative to mediawiki root folder)',
- 'bs-statistics-pref-DiagramWidth' => 'Diagram width',
- 'bs-statistics-pref-DiagramHeight' => 'Diagram height',
- 'bs-statistics-pref-DiagramType' => 'Diagram type',
- 'bs-statistics-pref-DefaultFrom' => 'Default startdate
(mm/dd/yyyy)',
- 'bs-statistics-pref-DisableCache' => 'Deactivate cache',
- 'bs-statistics-pref-ExcludeUsers' => 'Exclude these users
as default',
- 'bs-statistics-pref-ExcludeUsers-title' => 'Add user',
- 'bs-statistics-pref-ExcludeUsers-message' => 'Add the user you wish
to exclude.',
- 'bs-statistics-pref-MaxNumberOfIntervals' => 'Maximum number of
steps',
- 'bs-statistics-loadingMessage' => 'Loading',
+ $cachedData['deps'][] = new FileDependency( $fileName );
+ }
+ return true;
+ }
- 'bs-statistics-portlet-NumberOfUsers' => 'Number of users',
- 'bs-statistics-portlet-NumberOfEdits' => 'Number of edits',
- 'bs-statistics-portlet-NumberOfArticles' => 'Number of articles',
- 'bs-statistics-portlet-NumberOfPages' => 'Number of pages',
- 'bs-statistics-portlet-NumberOfUsersdesc' => 'Statistic of the
number of users from this wiki',
- 'bs-statistics-portlet-NumberOfEditsdesc' => 'Statistic of the
number of edits from this wiki',
- 'bs-statistics-portlet-NumberOfArticlesdesc' => 'Statistic of the
number of articles from this wiki',
- 'bs-statistics-portlet-NumberOfPagesdesc' => 'Statistic of the
number of pages from this wiki',
-
- 'bs-statistics-portletconfig-periodlabel' => 'Period of time',
- 'bs-statistics-portletconfig-periodday' => 'Yesterday',
- 'bs-statistics-portletconfig-periodweek' => 'Seven days',
- 'bs-statistics-portletconfig-periodmonth' => '30 days',
-);
-
-$messages['de'] = array(
- 'specialextendedstatistics' => 'Erweiterte Statistik',
- 'extendedstatistics' => 'Erweiterte Statistik',
- 'specialextendedstatistics-desc' => 'Zeigt Statistiken
über die Benutzung dieses Wikis',
- 'specialpages-group-bluespice' => 'BlueSpice',
- 'bs-statistics-extension-description' => 'Statistik-Modul für
BlueSpice.',
- 'bs-statistics-diagram' => 'Datenbasis',
- 'bs-statistics-from' => 'Von',
- 'bs-statistics-to' => 'Bis',
- 'bs-statistics-from-to' => 'Von $1 bis $2',
- 'bs-statistics-create' => 'Erzeugen',
- 'bs-statistics-grain' => 'Auflösung',
- 'bs-statistics-mode' => 'Modus',
- 'bs-statistics-aggregated' => 'aggregiert',
- 'bs-statistics-grouped' => 'gruppiert',
- 'bs-statistics-normal' => 'absolut',
- 'bs-statistics-absolute' => 'absolut',
- 'bs-statistics-Y' => 'Jahr',
- 'bs-statistics-m' => 'Monat',
- 'bs-statistics-W' => 'Kalenderwoche',
- 'bs-statistics-d' => 'Tag',
- 'bs-statistics-list' => 'als Liste',
- 'bs-statistics-back' => 'Zurück',
- 'bs-statistics-not-allowed' => 'Du bist nicht
berechtigt, diese Seite zu nutzen.',
- 'bs-statistics-step1' => '<b>Schritt 1</b>:
Wähle aus, welche Daten als Grundlage dienen.',
- 'bs-statistics-step2' => '<b>Schritt 2</b>:
Lege die Filter für das Diagramm fest.',
- 'bs-statistics-step3' => '<b>Schritt 3</b>: Auf
dieser Seite siehst Du das Diagramm.',
- 'bs-statistics-nav-step-1' => '1. Datenbasis wählen',
- 'bs-statistics-nav-step-2' => '2. Filter wählen',
- 'bs-statistics-nav-step-3' => '3. Diagramm
erstellen',
- 'bs-statistics-continue-step-2' => 'Weiter zur
Filterauswahl',
- 'bs-statistics-continue-step-3' => 'Diagramm erstellen',
- 'bs-statistics-back-step-1' => 'Zurück zur
Diagrammauswahl',
- 'bs-statistics-back-step-2' => 'Zurück zur
Filterauswahl',
- 'bs-statistics-depiction' => 'Darstellung',
- 'bs-statistics-filters' => 'Filter',
- 'bs-statistics-interval-too-big' => 'Das Intervall ist zu
groß gewählt. Es darf maximal 35 Schritte enthalten.',
- 'bs-statistics-diag-number-of-users' => "Anzahl der Nutzer",
- 'bs-statistics-diag-number-of-users-desc' => "Zeigt die Zahl der
Nutzer, die sich im ausgewählten Zeitraum registriert haben.",
- 'bs-statistics-label-name' => "Name",
- 'bs-statistics-label-registration' => "Registrierung",
- 'bs-statistics-diag-number-of-pages' => "Anzahl der Seiten",
- 'bs-statistics-diag-number-of-pages-desc' => "Zeigt die Zahl aller
Seiten, die im ausgewählten Zeitraum im Wiki erstellt wurden.",
- 'bs-statistics-diag-number-of-pages-mw' => "Anzahl der Artikel",
- 'bs-statistics-diag-number-of-pages-mw-desc' => "Zeigt die Zahl aller
Seiten, die als Artikel gewertet werden und im ausgewählten Zeitraum im Wiki
erstellt wurden. Ein Artikel befindet sich in einem auswertbaren Namespace und
hat mindestens einen internen Link.",
- 'bs-statistics-label-article' => "Artikel",
- 'bs-statistics-label-creator' => "Ersteller",
- 'bs-statistics-diag-number-of-edits' => "Anzahl der
Bearbeitungen",
- 'bs-statistics-diag-number-of-edits-desc' => "Zeigt die Zahl aller
Bearbeitungen, die im ausgewählten Zeitraum getätigt wurden.",
- 'bs-statistics-diag-edits-per-user' => "Bearbeitungen pro
Nutzer",
- 'bs-statistics-diag-edits-per-user-desc' => "Zahl der
Bearbeitungen, die ein Nutzer im ausgewählten Zeitraum durchschnittlich
getätigt hat.",
- 'bs-statistics-diag-search-queries' => "Suchanfragen",
- 'bs-statistics-diag-search-queries-desc' => "Zahl der Suchanfragen
im ausgewählten Zeitraum",
- 'bs-statistics-label-searchterm' => "Suchbegriff",
- 'bs-statistics-label-count' => "Anzahl",
- 'bs-statistics-label-maxhits' => "Max. Treffer",
- 'bs-statistics-label-searches' => "Zahl der Anfragen",
- 'bs-statistics-label-time' => "Zeit",
- 'bs-statistics-filter-namespace' => "Namensraum",
- 'bs-statistics-filter-category' => "Kategorie",
- 'bs-statistics-all-categories' => "(alle)",
- 'bs-statistics-filter-searchscope' => "Suchraum",
- 'bs-statistics-filter-user' => "Ausgeschlossene
Benutzer",
- 'Statistics' => 'Erweiterte Statistik',
- 'prefs-Statistics' => 'Erweiterte Statistik',
- 'bs-statistics-pref-DiagramDir' => 'Diagramm- und
Cache-Verzeichnis (relativ zum MediaWiki-Wurzelverzeichnis)',
- 'bs-statistics-pref-DiagramWidth' => 'Breite des Diagramms',
- 'bs-statistics-pref-DiagramHeight' => 'Höhe des Diagramms',
- 'bs-statistics-pref-DiagramType' => 'Diagrammtyp',
- 'bs-statistics-pref-DefaultFrom' => 'Standard Startdatum
(mm/dd/jjjj)',
- 'bs-statistics-pref-DisableCache' => 'Cache deaktivieren',
- 'bs-statistics-pref-ExcludeUsers' => 'Diese Benutzer
ausschließen',
- 'bs-statistics-pref-ExcludeUsers-title' => 'Auszuschließenden
Benutzer hinzufügen',
- 'bs-statistics-pref-ExcludeUsers-message' => 'Gib hier den Namen
des auszuschließenden Benutzers ein.',
- 'bs-statistics-pref-MaxNumberOfIntervals' => 'Maximale Anzahl von
Schritten',
- 'bs-statistics-loadingMessage' => 'Laden',
-
- 'bs-statistics-portlet-NumberOfUsers' => 'Anzahl der Benutzer',
- 'bs-statistics-portlet-NumberOfEdits' => 'Anzahl der
Bearbeitungen',
- 'bs-statistics-portlet-NumberOfArticles' => 'Anzahl der Artikel',
- 'bs-statistics-portlet-NumberOfPages' => 'Anzahl der Seiten',
- 'bs-statistics-portlet-NumberOfUsersdesc' => 'Statistik der Anzahl
der Benutzer dieses Wikis',
- 'bs-statistics-portlet-NumberOfEditsdesc' => 'Statistik der Anzahl
der Bearbeitungen dieses Wikis',
- 'bs-statistics-portlet-NumberOfArticlesdesc' => 'Statistik der Anzahl
der Artikel dieses Wikis',
- 'bs-statistics-portlet-NumberOfPagesdesc' => 'Statistik der Anzahl
der Seiten dieses Wikis',
-
- 'bs-statistics-portletconfig-periodlabel' => 'Zeitraum',
- 'bs-statistics-portletconfig-periodday' => 'Gestern',
- 'bs-statistics-portletconfig-periodweek' => 'Sieben Tage',
- 'bs-statistics-portletconfig-periodmonth' => '30 Tage',
-);
-
-$messages['de-formal'] = array(
- 'bs-statistics-not-allowed' => 'Sie sind nicht
berechtigt, diese Seite zu nutzen.',
- 'bs-statistics-step1' => '<b>Schritt 1</b>:
Wählen Sie aus, welche Daten als Grundlage dienen.',
- 'bs-statistics-step2' => '<b>Schritt 2</b>:
Legen Sie die Filter für das Diagramm fest.',
- 'bs-statistics-step3' => '<b>Schritt 3</b>: Auf
dieser Seite sehen Sie das Diagramm.',
- 'bs-statistics-pref-ExcludeUsers-message' => 'Geben Sie hier den
Namen des auszuschließenden Benutzers ein.',
-);
-
-$messages['qqq'] = array();
\ No newline at end of file
+ $GLOBALS['wgHooks']['LocalisationCacheRecache'][] =
'wfJsonI18nShim0fe14355d840c93c';
+}
diff --git a/Statistics/resources/BS.Statistics/Filter.js
b/Statistics/resources/BS.Statistics/Filter.js
index 977cfa9..1f8c3b1 100644
--- a/Statistics/resources/BS.Statistics/Filter.js
+++ b/Statistics/resources/BS.Statistics/Filter.js
@@ -97,10 +97,10 @@
this.storeAvailableGrains = new
Ext.create('Ext.data.ArrayStore', {
fields: ['key', 'displaytitle'],
data: [
- ['Y', mw.message('bs-statistics-Y').plain()],
- ['m', mw.message('bs-statistics-m').plain()],
- ['W', mw.message('bs-statistics-W').plain()],
- ['d', mw.message('bs-statistics-d').plain()]
+ ['Y', mw.message('bs-statistics-year').plain()],
+ ['m',
mw.message('bs-statistics-month').plain()],
+ ['W', mw.message('bs-statistics-week').plain()],
+ ['d', mw.message('bs-statistics-day').plain()]
]
});
@@ -154,7 +154,7 @@
this.msInputFilterNamespace = new
Ext.create('Ext.ux.form.MultiSelect',{
store: this.storeNamespaceFilter,
- fieldLabel:
mw.message('bs-statistics-filter-namespace').plain(),
+ fieldLabel: mw.message('bs-ns').plain(),
labelAlign: 'right',
name: 'hwpFilterBsFilterNamespace[]',
displayField: 'displaytitle',
@@ -221,7 +221,7 @@
this.cbInputDepictionGrain.select('W');
this.btnOK = new Ext.create( 'Ext.Button', {
- text:
mw.message('bs-statistics-continue-step-3').plain(),
+ text: mw.message('bs-statistics-finish').plain(),
id: 'bs-statistics-filterpanel-submit'
});
this.btnOK.addListener( 'click', this.btnOKclicked, this);
diff --git a/Statistics/resources/BS.Statistics/Panel.js
b/Statistics/resources/BS.Statistics/Panel.js
index 9683781..12e16b4 100644
--- a/Statistics/resources/BS.Statistics/Panel.js
+++ b/Statistics/resources/BS.Statistics/Panel.js
@@ -89,7 +89,7 @@
},
filtersBtnOKBeforeSend: function() {
this.getEl().mask(
- mw.message('bs-statistics-loadingMessage').plain(),
+ mw.message('bs-extjs-loading').plain(),
Ext.baseCSSPrefix + 'mask-loading'
);
},
@@ -123,7 +123,7 @@
},
onClickmuExport: function( menu, item, e, eOpts ) {
/*this.getEl().mask(
- mw.message('bs-statistics-loadingMessage').plain(),
+ mw.message('bs-extjs-loading').plain(),
Ext.baseCSSPrefix + 'mask-loading'
);*/
diff --git a/Statistics/resources/BS.Statistics/StatisticsPortletConfig.js
b/Statistics/resources/BS.Statistics/StatisticsPortletConfig.js
index 06394d1..26bca46 100644
--- a/Statistics/resources/BS.Statistics/StatisticsPortletConfig.js
+++ b/Statistics/resources/BS.Statistics/StatisticsPortletConfig.js
@@ -20,14 +20,14 @@
fields: ['key', 'displaytitle'],
data: [
['day',
mw.message('bs-statistics-portletconfig-periodday').plain()],
- ['week',
mw.message('bs-statistics-portletconfig-periodweek').plain()],
- ['month',
mw.message('bs-statistics-portletconfig-periodmonth').plain()],
+ ['week',
mw.message('bs-statistics-week').plain()],
+ ['month',
mw.message('bs-statistics-month').plain()],
]
});
this.cbInputPeriod = new Ext.create('Ext.form.field.ComboBox',{
store: this.strPeriod,
- fieldLabel:
mw.message('bs-statistics-portletconfig-periodlabel').plain(),
+ fieldLabel:
mw.message('bs-extjs-portal-timespan').plain(),
labelAlign: 'right',
name: 'inputPeriod',
displayField: 'displaytitle',
@@ -83,7 +83,7 @@
this.msInputFilterNamespace = new
Ext.create('Ext.ux.form.MultiSelect',{
store: this.storeNamespaceFilter,
- fieldLabel:
mw.message('bs-statistics-filter-namespace').plain(),
+ fieldLabel: mw.message('bs-ns').plain(),
labelAlign: 'right',
name: 'hwpFilterBsFilterNamespace[]',
displayField: 'displaytitle',
diff --git
a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfArticles.js
b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfArticles.js
index 8cb6856..fd46d7f 100644
--- a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfArticles.js
+++ b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfArticles.js
@@ -19,7 +19,7 @@
this.ctMainConfig = {
axes: [],
series: [],
- yTitle:
mw.message('bs-statistics-portlet-NumberOfArticles').plain()
+ yTitle:
mw.message('bs-statistics-portlet-numberofpages').plain()
};
this.ctMainConfig.store = Ext.create('Ext.data.JsonStore', {
diff --git
a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfEdits.js
b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfEdits.js
index 5ec5033..9b9e7f1 100644
--- a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfEdits.js
+++ b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfEdits.js
@@ -19,7 +19,7 @@
this.ctMainConfig = {
axes: [],
series: [],
- yTitle:
mw.message('bs-statistics-portlet-NumberOfEdits').plain()
+ yTitle:
mw.message('bs-statistics-portlet-numberofedits').plain()
};
this.ctMainConfig.store = Ext.create('Ext.data.JsonStore', {
diff --git
a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfPages.js
b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfPages.js
index 8a3207a..18d643b 100644
--- a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfPages.js
+++ b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfPages.js
@@ -19,7 +19,7 @@
this.ctMainConfig = {
axes: [],
series: [],
- yTitle:
mw.message('bs-statistics-portlet-NumberOfPages').plain()
+ yTitle:
mw.message('bs-statistics-portlet-numberofpages').plain()
};
this.ctMainConfig.store = Ext.create('Ext.data.JsonStore', {
diff --git
a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfUsers.js
b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfUsers.js
index 45c86aa..af2fa8e 100644
--- a/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfUsers.js
+++ b/Statistics/resources/BS.Statistics/StatisticsPortletNumberOfUsers.js
@@ -20,7 +20,7 @@
this.ctMainConfig = {
axes: [],
series: [],
- yTitle:
mw.message('bs-statistics-portlet-NumberOfUsers').plain()
+ yTitle:
mw.message('bs-statistics-portlet-numberofusers').plain()
};
this.ctMainConfig.store = Ext.create('Ext.data.JsonStore', {
--
To view, visit https://gerrit.wikimedia.org/r/148987
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6bbf0788f23bf017159d5f7be4e93a392860dc6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Smuggli <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits