Raimond Spekking has submitted this change and it was merged. Change subject: Implemented changes for translatewiki ......................................................................
Implemented changes for translatewiki * Removed trailing dot * Added new description for better consistency Change-Id: I6cd3fef316cfcf2e2745f5a78ae6c615c925a6ec --- D HideTitle/HideTitle.i18n.php A HideTitle/i18n/de.json A HideTitle/i18n/en.json A HideTitle/i18n/qqq.json R HideTitle/languages/HideTitle.i18n.magic.php A HideTitle/languages/HideTitle.i18n.php 6 files changed, 59 insertions(+), 30 deletions(-) Approvals: Raimond Spekking: Verified; Looks good to me, approved diff --git a/HideTitle/HideTitle.i18n.php b/HideTitle/HideTitle.i18n.php deleted file mode 100644 index 8dcd977..0000000 --- a/HideTitle/HideTitle.i18n.php +++ /dev/null @@ -1,30 +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-hidetitle-extension-description' => 'Tag to hide the title of an article.', - 'HideTitle' => 'HideTitle' -); - -$messages['de'] = array( - 'bs-hidetitle-extension-description' => 'Tag um den Artikeltitel zu verstecken.', - 'HideTitle' => 'HideTitle' -); - -$messages['de-formal'] = array(); - -$messages['qqq'] = array(); \ No newline at end of file diff --git a/HideTitle/i18n/de.json b/HideTitle/i18n/de.json new file mode 100644 index 0000000..c3e6f36 --- /dev/null +++ b/HideTitle/i18n/de.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Stephan Muggli <mug...@hallowelt.biz>" + ] + }, + "bs-hidetitle-desc": "Fügt den Tag <code><nowiki>__HIDETITLE__</nowiki></code> hinzu, um einen Seitentitel zu verstecken" +} diff --git a/HideTitle/i18n/en.json b/HideTitle/i18n/en.json new file mode 100644 index 0000000..3b29413 --- /dev/null +++ b/HideTitle/i18n/en.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Stephan Muggli <mug...@hallowelt.biz>" + ] + }, + "bs-hidetitle-desc": "Adds the tag <code><nowiki>__HIDETITLE__</nowiki></code> to hide the title of the page" +} diff --git a/HideTitle/i18n/qqq.json b/HideTitle/i18n/qqq.json new file mode 100644 index 0000000..ec8eefb --- /dev/null +++ b/HideTitle/i18n/qqq.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "Stephan Muggli <mug...@hallowelt.biz>" + ] + }, + "bs-hidetitle-desc": "Used in [[Special:Wiki_Admin&mode=ExtensionInfo]], description of hide title extension" +} diff --git a/HideTitle/HideTitle.i18n.magic.php b/HideTitle/languages/HideTitle.i18n.magic.php similarity index 100% rename from HideTitle/HideTitle.i18n.magic.php rename to HideTitle/languages/HideTitle.i18n.magic.php diff --git a/HideTitle/languages/HideTitle.i18n.php b/HideTitle/languages/HideTitle.i18n.php new file mode 100644 index 0000000..d08d35d --- /dev/null +++ b/HideTitle/languages/HideTitle.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( 'wfJsonI18nShimd928f300b1a99499' ) ) { + function wfJsonI18nShimd928f300b1a99499( $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'][] = 'wfJsonI18nShimd928f300b1a99499'; +} -- To view, visit https://gerrit.wikimedia.org/r/134309 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6cd3fef316cfcf2e2745f5a78ae6c615c925a6ec Gerrit-PatchSet: 3 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: Raimond Spekking <raimond.spekk...@gmail.com> Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits