Raimond Spekking has submitted this change and it was merged.
Change subject: Implemented changes for translatewiki
......................................................................
Implemented changes for translatewiki
Moved to Json i18n files
Change-Id: I634421889e819d113c1ba3ce89870768d0149f8f
---
A WatchList/i18n/de-formal.json
A WatchList/i18n/de.json
A WatchList/i18n/en.json
A WatchList/i18n/qqq.json
M WatchList/languages/WatchList.i18n.php
5 files changed, 80 insertions(+), 40 deletions(-)
Approvals:
Raimond Spekking: Verified; Looks good to me, approved
diff --git a/WatchList/i18n/de-formal.json b/WatchList/i18n/de-formal.json
new file mode 100644
index 0000000..230a869
--- /dev/null
+++ b/WatchList/i18n/de-formal.json
@@ -0,0 +1,8 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-watchlist-tag-watchlist-desc": "Erstellt eine Liste von Seiten, die
eine noch nicht gesehene Änderung beinhalten und sich auf Ihrer
Beobachtungsliste befinden."
+}
diff --git a/WatchList/i18n/de.json b/WatchList/i18n/de.json
new file mode 100644
index 0000000..aa324c6
--- /dev/null
+++ b/WatchList/i18n/de.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-watchlist-desc": "Fügt ein Beobachtungsliste-Widget und Tag hinzu",
+ "prefs-watchlist": "Beobachtete Seiten",
+ "bs-watchlist-title-sidebar": "Beobachtete Seiten",
+ "bs-watchlist-pref-widgetlimit": "Anzahl der Einträge:",
+ "bs-watchlist-pref-widgetsortodr": "Sortieren nach:",
+ "bs-watchlist-pref-sort-time": "Zeit",
+ "bs-watchlist-pref-sort-title": "Titel",
+ "bs-watchlist-tag-watchlist-desc": "Erstellt eine Liste von Seiten, die
eine noch nicht gesehene Änderung beinhalten und sich auf deiner
Beobachtungsliste befinden."
+}
diff --git a/WatchList/i18n/en.json b/WatchList/i18n/en.json
new file mode 100644
index 0000000..f999255
--- /dev/null
+++ b/WatchList/i18n/en.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-watchlist-desc": "Adds a watchlist widget and tag",
+ "prefs-watchlist": "Watchlist",
+ "bs-watchlist-title-sidebar": "Watchlist",
+ "bs-watchlist-pref-widgetlimit": "Limit of entries:",
+ "bs-watchlist-pref-widgetsortodr": "Sort by:",
+ "bs-watchlist-pref-sort-time": "Time",
+ "bs-watchlist-pref-sort-title": "Title",
+ "bs-watchlist-tag-watchlist-desc": "Creates a list of pages which are
on your watchlist and have a non sighted change."
+}
diff --git a/WatchList/i18n/qqq.json b/WatchList/i18n/qqq.json
new file mode 100644
index 0000000..e91c4ab
--- /dev/null
+++ b/WatchList/i18n/qqq.json
@@ -0,0 +1,15 @@
+{
+ "@metadata": {
+ "authors": [
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-watchlist-desc": "Used in
[[Special:Wiki_Admin&mode=ExtensionInfo]], description of watchlist extension",
+ "prefs-watchlist": "Used in [[Special:Wiki_Admin&mode=Preferences]],
headline for watchlist section.\n{{Identical|Watchlist}}",
+ "bs-watchlist-title-sidebar": "Headline for watchlist
\n{{Identical|Watchlist}}",
+ "bs-watchlist-pref-widgetlimit": "Option in
[[Special:Wiki_Admin&mode=Preferences]], label for limit of entries:",
+ "bs-watchlist-pref-widgetsortodr": "Option in
[[Special:Wiki_Admin&mode=Preferences]], label for sort by",
+ "bs-watchlist-pref-sort-time": "Option in
[[Special:Wiki_Admin&mode=Preferences]], option for time",
+ "bs-watchlist-pref-sort-title": "Option in
[[Special:Wiki_Admin&mode=Preferences]], option for title",
+ "bs-watchlist-tag-watchlist-desc": "Used in InsertMagic extension, tag
description for creates a list of pages which are on your watchlist and have a
non sighted change."
+}
diff --git a/WatchList/languages/WatchList.i18n.php
b/WatchList/languages/WatchList.i18n.php
index c7600ae..c6dc1ce 100644
--- a/WatchList/languages/WatchList.i18n.php
+++ b/WatchList/languages/WatchList.i18n.php
@@ -1,48 +1,35 @@
<?php
/**
- * Internationalisation file for WatchList
+ * 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 UserManager
- * @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( 'wfJsonI18nShim31abb06f19525c08' ) ) {
+ function wfJsonI18nShim31abb06f19525c08( $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-watchlist-desc' => 'Adds a watchlist widget and tag.',
- 'prefs-watchlist'=> 'Watchlist',
- 'bs-watchlist-title-sidebar' => 'Watchlist',
- 'bs-watchlist-pref-widgetlimit' => 'Limit of entries:',
- 'bs-watchlist-pref-widgetsortodr' => 'Order by:',
- 'bs-watchlist-pref-sort-time' => 'Time',
- 'bs-watchlist-pref-sort-title' => 'Title',
- 'bs-watchlist-tag-watchlist-desc' => 'Creates a list of pages which are
on your watchlist and have a non sighted changes.'
-);
+ $cachedData['deps'][] = new FileDependency( $fileName );
+ }
+ return true;
+ }
-$messages['de'] = array(
- 'bs-watchlist-desc' => 'Fügt ein Beobachtungsliste-Widget und Tag
hinzu.',
- 'prefs-watchlist' => 'Beobachtete Seiten',
- 'bs-watchlist-title-sidebar' => 'Beobachtete Seiten',
- 'bs-watchlist-pref-widgetlimit' => 'Anzahl der Einträge:',
- 'bs-watchlist-pref-widgetsortodr' => 'Sortieren nach:',
- 'bs-watchlist-pref-sort-time' => 'Zeit',
- 'bs-watchlist-pref-sort-title' => 'Titel',
- 'bs-watchlist-tag-watchlist-desc' => 'Erstellt eine Liste von Seiten,
die eine noch nicht gesehene Änderung beinhalten und sich auf Ihrer
Beobachtungsliste befinden.'
-);
-
-$messages['qqq'] = array(
- 'bs-watchlist-desc' => 'Used in
[[Special:Wiki_Admin&mode=ExtensionInfo]], description of watchlist extension.',
- 'prefs-watchlist'=> 'Used in [[Special:Wiki_Admin&mode=Preferences]],
headline for watchlist section.\n{{Identical|Watchlist}}',
- 'bs-watchlist-title-sidebar' => 'Headline for watchlist',
- 'bs-watchlist-pref-widgetlimit' => 'Option in
[[Special:Wiki_Admin&mode=Preferences]], label for limit of entries:',
- 'bs-watchlist-pref-widgetsortodr' => 'Option in
[[Special:Wiki_Admin&mode=Preferences]], label for order by',
- 'bs-watchlist-pref-sort-time' => 'Option in
[[Special:Wiki_Admin&mode=Preferences]], option for time',
- 'bs-watchlist-pref-sort-title' => 'Option in
[[Special:Wiki_Admin&mode=Preferences]], option for title',
- 'bs-watchlist-tag-watchlist-desc' => 'Used in InsertMagic extension,
tag description for creates a list of pages which are on your watchlist and
have a non sighted changes.'
-);
\ No newline at end of file
+ $GLOBALS['wgHooks']['LocalisationCacheRecache'][] =
'wfJsonI18nShim31abb06f19525c08';
+}
--
To view, visit https://gerrit.wikimedia.org/r/140905
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I634421889e819d113c1ba3ce89870768d0149f8f
Gerrit-PatchSet: 1
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]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits