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: I31bb92d6a008a37475b0807e062f69470a99f941
---
A InsertLink/i18n/de.json
A InsertLink/i18n/en.json
A InsertLink/i18n/qqq.json
M InsertLink/languages/InsertLink.i18n.php
4 files changed, 102 insertions(+), 68 deletions(-)
Approvals:
Raimond Spekking: Verified; Looks good to me, approved
diff --git a/InsertLink/i18n/de.json b/InsertLink/i18n/de.json
new file mode 100644
index 0000000..682bcdd
--- /dev/null
+++ b/InsertLink/i18n/de.json
@@ -0,0 +1,25 @@
+{
+ "@metadata": {
+ "authors": [
+ "Robert Vogel <[email protected]>",
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-insertlink-desc": "Über ein Dialogfeld werden Links, z.B. zu
bestehenden Seiten, eingebunden",
+ "bs-insertlink": "Link einfügen",
+ "bs-insertlink-button-title": "Link einfügen/bearbeiten",
+ "bs-insertlink-dialog-title": "Link einfügen",
+ "bs-insertlink-tab-wiki-page": "Wiki-Seite",
+ "bs-insertlink-tab-ext-link": "Externer Link",
+ "bs-insertlink-tab-email": "E-Mail-Link",
+ "bs-insertlink-tab-ext-file": "Link auf Datei",
+ "bs-insertlink-label-page": "Seite",
+ "bs-insertlink-label-link": "Link",
+ "bs-insertlink-label-mail": "E-Mail Adresse",
+ "bs-insertlink-label-description": "Beschreibung",
+ "bs-insertlink-label-file": "Datei",
+ "bs-insertlink-label-searchfile": "Durchsuchen ...",
+ "bs-insertlink-select-a-page": "Ziel wählen ...",
+ "bs-insertlink-select-a-namespace": "(Seiten)",
+ "bs-insertlink-empty-field-text": "Um einen Link einzufügen muss ein
Ziel angegeben werden."
+}
diff --git a/InsertLink/i18n/en.json b/InsertLink/i18n/en.json
new file mode 100644
index 0000000..37c3aac
--- /dev/null
+++ b/InsertLink/i18n/en.json
@@ -0,0 +1,25 @@
+{
+ "@metadata": {
+ "authors": [
+ "Robert Vogel <[email protected]>",
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-insertlink-desc": "Dialogbox to enter a link",
+ "bs-insertlink": "Insert link",
+ "bs-insertlink-button-title": "Insert/edit link",
+ "bs-insertlink-dialog-title": "Insert link",
+ "bs-insertlink-tab-wiki-page": "Wiki page",
+ "bs-insertlink-tab-ext-link": "External link",
+ "bs-insertlink-tab-email": "Email-link",
+ "bs-insertlink-tab-ext-file": "Link to file",
+ "bs-insertlink-label-page": "Page",
+ "bs-insertlink-label-link": "Link",
+ "bs-insertlink-label-mail": "Email address",
+ "bs-insertlink-label-description": "Description",
+ "bs-insertlink-label-file": "File",
+ "bs-insertlink-label-searchfile": "Search ...",
+ "bs-insertlink-select-a-page": "Choose target ...",
+ "bs-insertlink-select-a-namespace": "(Pages)",
+ "bs-insertlink-empty-field-text": "To insert a link you need to state a
destination."
+}
diff --git a/InsertLink/i18n/qqq.json b/InsertLink/i18n/qqq.json
new file mode 100644
index 0000000..c298706
--- /dev/null
+++ b/InsertLink/i18n/qqq.json
@@ -0,0 +1,25 @@
+{
+ "@metadata": {
+ "authors": [
+ "Robert Vogel <[email protected]>"
+ "Stephan Muggli <[email protected]>"
+ ]
+ },
+ "bs-insertlink-desc": "Used in
[[Special:Wiki_Admin&mode=ExtensionInfo]], description of insert link
extension",
+ "bs-insertlink": "Insert link",
+ "bs-insertlink-button-title": "The title of the button that opens the
dialog. It is shown on mouse over",
+ "bs-insertlink-dialog-title": "The title of the dialog window",
+ "bs-insertlink-tab-wiki-page": "The title of the tab containing the
controls of a wiki page link",
+ "bs-insertlink-tab-ext-link": "The title of the tab containing the
controls of an external link",
+ "bs-insertlink-tab-email": "The title of the tab containing the
controls of an e-mail link",
+ "bs-insertlink-tab-ext-file": "The title of the tab containing the
controls of external filesystem link",
+ "bs-insertlink-label-page": "The label of the page drop down field",
+ "bs-insertlink-label-link": "The label of the link textfield",
+ "bs-insertlink-label-mail": "The label of the mail textfield",
+ "bs-insertlink-label-description": "The label of the description
textfield",
+ "bs-insertlink-label-file": "The label of the file input field",
+ "bs-insertlink-label-searchfile": "The text of the search file button",
+ "bs-insertlink-select-a-page": "The empty message for the page drop
down field",
+ "bs-insertlink-select-a-namespace": "The empty message for the
namespace drop down field. Attention: this shows the mainspace lable as
default",
+ "bs-insertlink-empty-field-text": "The error message when the link
field was empty."
+}
diff --git a/InsertLink/languages/InsertLink.i18n.php
b/InsertLink/languages/InsertLink.i18n.php
index 4a04bb1..e5d50a8 100644
--- a/InsertLink/languages/InsertLink.i18n.php
+++ b/InsertLink/languages/InsertLink.i18n.php
@@ -1,76 +1,35 @@
<?php
-
/**
- * Internationalisation file for InsertLink
+ * 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 InsertLink
- * @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( 'wfJsonI18nShimf93fc4e53946903d' ) ) {
+ function wfJsonI18nShimf93fc4e53946903d( $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-insertlink-extension-description' => 'Über ein Dialogfeld werden
Links, z.B. zu bestehenden Artikeln, eingebunden.',
- 'bs-insertlink' => 'Link einfügen',
- 'prefs-InsertLink' => 'Link einfügen',
- 'bs-insertlink-pref-ShowFilelink' => 'Links auf lokale Dateien
erlauben',
- //Javascript
+ $cachedData['deps'][] = new FileDependency( $fileName );
+ }
+ return true;
+ }
- 'bs-insertlink-button_title' => 'Link einfügen/bearbeiten',
- 'bs-insertlink-dlg_title' => 'Link einfügen',
- 'bs-insertlink-tab_wiki_page' => 'Wiki-Seite',
- 'bs-insertlink-tab_external_link' => 'Externer Link',
- 'bs-insertlink-tab3_title' => 'E-Mail-Link',
- 'bs-insertlink-tab6_title' => 'Link auf Datei',
- 'bs-insertlink-label_page' => 'Seite',
- 'bs-insertlink-select_a_page' => 'Ziel wählen ...',
- 'bs-insertlink-label_link' => 'Link',
- 'bs-insertlink-label_mail' => 'E-Mail',
- 'bs-insertlink-label_namespace' => 'Namensraum',
- 'bs-insertlink-select_a_namespace' => '(Seiten)',
- 'bs-insertlink-label_description' => 'Beschreibung',
- 'bs-insertlink-label_ok' => 'Ok',
- 'bs-insertlink-label_cancel' => 'Abbrechen',
- 'bs-insertlink-label_file' => 'Datei',
- 'bs-insertlink-label_searchfile' => 'Durchsuchen...',
- 'bs-insertLink-empty-field-text' => 'Um einen Link einzufügen muss ein
Ziel angegeben werden.',
- 'bs-insertLink-empty-field-title' => 'Link einfügen'
-);
-
-$messages['de-formal'] = array();
-
-$messages['en'] = array(
- 'bs-insertlink-extension-description' => 'Dialogbox to enter a link.',
- 'bs-insertlink' => 'Insert link',
- 'prefs-InsertLink' => 'Insert Link',
- 'bs-insertlink-pref-ShowFilelink' => 'Enable links to local files',
- //Javascript
-
- 'bs-insertlink-button_title' => 'Insert/edit link',
- 'bs-insertlink-dlg_title' => 'Insert Link',
- 'bs-insertlink-tab_wiki_page' => 'Wiki page',
- 'bs-insertlink-tab_external_link' => 'External link',
- 'bs-insertlink-tab3_title' => 'E-Mail-Link',
- 'bs-insertlink-tab6_title' => 'Link to file',
- 'bs-insertlink-label_page' => 'Page',
- 'bs-insertlink-select_a_page' => 'Choose target ...',
- 'bs-insertlink-label_link' => 'Link',
- 'bs-insertlink-label_mail' => 'E-Mail',
- 'bs-insertlink-label_namespace' => 'Namespace',
- 'bs-insertlink-select_a_namespace' => '(Pages)',
- 'bs-insertlink-label_prefix' => 'Prefix',
- 'bs-insertlink-label_description' => 'Description',
- 'bs-insertlink-label_ok' => 'Ok',
- 'bs-insertlink-label_cancel' => 'Cancel',
- 'bs-insertlink-label_file' => 'File',
- 'bs-insertlink-label_searchfile' => 'Search ...',
- 'bs-insertLink-empty-field-text' => 'To insert a link you need to state
a destination.',
- 'bs-insertLink-empty-field-title' => 'Insert link'
-);
-
-$messages['qqq'] = array();
\ No newline at end of file
+ $GLOBALS['wgHooks']['LocalisationCacheRecache'][] =
'wfJsonI18nShimf93fc4e53946903d';
+}
--
To view, visit https://gerrit.wikimedia.org/r/134319
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I31bb92d6a008a37475b0807e062f69470a99f941
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