Raimond Spekking has submitted this change and it was merged.

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


Implemented changes for translatewiki

* Removed trailing dot

Change-Id: I8373ae748dfe9f80c8885cd9c27d2a423b09edb6
---
A ExtensionInfo/i18n/de.json
A ExtensionInfo/i18n/en.json
A ExtensionInfo/i18n/qqq.json
M ExtensionInfo/languages/ExtensionInfo.i18n.php
4 files changed, 81 insertions(+), 50 deletions(-)

Approvals:
  Raimond Spekking: Verified; Looks good to me, approved



diff --git a/ExtensionInfo/i18n/de.json b/ExtensionInfo/i18n/de.json
new file mode 100644
index 0000000..01eaef8
--- /dev/null
+++ b/ExtensionInfo/i18n/de.json
@@ -0,0 +1,18 @@
+{
+       "@metadata": {
+               "authors": [
+                       "Stephan Muggli <[email protected]>"
+               ]
+       },
+       "bs-extensioninfo-desc": "Informationsliste über den eingebundenen 
Erweiterungen",
+       "bs-extensioninfo-label": "Erweiterungen",
+       "bs-extensioninfo-version": "Version",
+       "bs-extensioninfo-software": "Software",
+       "extensioninfo": "Erweiterungen",
+       "bs-extensioninfo-headerextname": "Name der Erweiterung",
+       "bs-extensioninfo-headerversion": "Version",
+       "bs-extensioninfo-headerdesc": "Beschreibung",
+       "bs-extensioninfo-headerstatus": "Status",
+       "bs-extensioninfo-headerpackage": "Paket",
+       "bs-extensioninfo-groupingtemplateviewtext": 
"{{PLURAL:$1|Element|Elemente}}"
+}
diff --git a/ExtensionInfo/i18n/en.json b/ExtensionInfo/i18n/en.json
new file mode 100644
index 0000000..ebecc8b
--- /dev/null
+++ b/ExtensionInfo/i18n/en.json
@@ -0,0 +1,18 @@
+{
+       "@metadata": {
+               "authors": [
+                       "Stephan Muggli <[email protected]>"
+               ]
+       },
+       "bs-extensioninfo-desc": "Information list about the loaded extensions",
+       "bs-extensioninfo-label": "Extensions",
+       "bs-extensioninfo-software": "Software",
+       "bs-extensioninfo-version": "Version",
+       "extensioninfo": "Extensions",
+       "bs-extensioninfo-headerextname": "Extension name",
+       "bs-extensioninfo-headerversion": "Version",
+       "bs-extensioninfo-headerdesc": "Description",
+       "bs-extensioninfo-headerstatus": "Status",
+       "bs-extensioninfo-headerpackage": "Package",
+       "bs-extensioninfo-groupingtemplateviewtext": 
"{{PLURAL:$1|element|elements}}"
+}
diff --git a/ExtensionInfo/i18n/qqq.json b/ExtensionInfo/i18n/qqq.json
new file mode 100644
index 0000000..e8e9005
--- /dev/null
+++ b/ExtensionInfo/i18n/qqq.json
@@ -0,0 +1,18 @@
+{
+       "@metadata": {
+               "authors": [
+                       "Stephan Muggli <[email protected]>"
+               ]
+       },
+       "bs-extensioninfo-desc": "Used in 
[[Special:Wiki_Admin&mode=ExtensionInfo]], description of extension info 
extension",
+       "bs-extensioninfo-label": "Anchor text in admin tab for extensions\\n 
{{Identical|Extensions}}",
+       "bs-extensioninfo-software": "Table header for software",
+       "bs-extensioninfo-version": "Table header for version",
+       "extensioninfo": "Special page name for extensions",
+       "bs-extensioninfo-headerextname": "Label for extension name",
+       "bs-extensioninfo-headerversion": "Label for version",
+       "bs-extensioninfo-headerdesc": "Label for description",
+       "bs-extensioninfo-headerstatus": "Label for status",
+       "bs-extensioninfo-headerpackage": "Label for package",
+       "bs-extensioninfo-groupingtemplateviewtext": "Text for 
element/elements, $1 is the number of elements for PLURAL distinction"
+}
diff --git a/ExtensionInfo/languages/ExtensionInfo.i18n.php 
b/ExtensionInfo/languages/ExtensionInfo.i18n.php
index ebb23b5..a7b5ce3 100644
--- a/ExtensionInfo/languages/ExtensionInfo.i18n.php
+++ b/ExtensionInfo/languages/ExtensionInfo.i18n.php
@@ -1,58 +1,35 @@
 <?php
 /**
- * Internationalisation file for ExtensionInfo
+ * 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 ExtensionInfo
- * @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( 'wfJsonI18nShim7194908c26f154ed' ) ) {
+       function wfJsonI18nShim7194908c26f154ed( $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['de'] = array(
-       'bs-extensioninfo-extension-description' => 'Informationsliste über die 
eingebundenen Hallo Welt!-Extensions.',
-       'bs-extensioninfo-HelpdeskBaseUrl'       => 
'http://hilfe.blue-spice.org/index.php',
-       'bs-extensioninfo-label'                 => 'Erweiterungen',
-       'specialextensioninfo'                   => 'Erweiterungen',
-       'extensioninfo'                          => 'Erweiterungen',
-       
-       //JavaScript
-       'bs-extensioninfo-headerExtensionname'              => 'Name der 
Erweiterung',
-       'bs-extensioninfo-headerVersion'                    => 'Version',
-       'bs-extensioninfo-headerDescription'                => 'Beschreibung',
-       'bs-extensioninfo-headerStatus'                     => 'Status',
-       'bs-extensioninfo-headerPackage'                    => 'Paket',
-       'bs-extensioninfo-btnClearGrouping'                 => 'Gruppierung 
aufheben',
-       'bs-extensioninfo-groupingTemplateViewTextSingular' => 'Element',
-       'bs-extensioninfo-groupingTemplateViewTextPlural'   => 'Elemente'
-);
+                       $cachedData['deps'][] = new FileDependency( $fileName );
+               }
+               return true;
+       }
 
-$messages['de-formal'] = array();
-
-$messages['en'] = array(
-       'bs-extensioninfo-extension-description' => 'Information list about 
loaded Hallo Welt!-Extensions.',
-       'bs-extensioninfo-HelpdeskBaseUrl'       => 
'http://help.blue-spice.org/index.php',
-       'bs-extensioninfo-label'                 => 'Extensions',
-       'bs-extensioninfo-software'              => 'Software',
-       'bs-extensioninfo-version'               => 'Version',
-       'specialextensioninfo'                   => 'Extensions',
-       'extensioninfo'                          => 'Extensions',
-       
-       //JavaScript
-       'bs-extensioninfo-headerExtensionname'              => 'Extension name',
-       'bs-extensioninfo-headerVersion'                    => 'Version',
-       'bs-extensioninfo-headerDescription'                => 'Description',
-       'bs-extensioninfo-headerStatus'                     => 'Status',
-       'bs-extensioninfo-headerPackage'                    => 'Package',
-       'bs-extensioninfo-btnClearGrouping'                 => 'Clear Grouping',
-       'bs-extensioninfo-groupingTemplateViewTextSingular' => 'Item',
-       'bs-extensioninfo-groupingTemplateViewTextPlural'   => 'Items'
-);
-
-$messages['qqq'] = array();
\ No newline at end of file
+       $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = 
'wfJsonI18nShim7194908c26f154ed';
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8373ae748dfe9f80c8885cd9c27d2a423b09edb6
Gerrit-PatchSet: 2
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

Reply via email to