Amire80 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/126962

Change subject: Add a message for "+ Add Translation"
......................................................................

Add a message for "+ Add Translation"

Change-Id: Ie7259e9efebceae286b5daffabdf8a624b651856
---
M Resources.php
M i18n/en.json
M i18n/qqq.json
M modules/translation/ext.cx.translation.js
4 files changed, 6 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/62/126962/1

diff --git a/Resources.php b/Resources.php
index 538b904..1d08b30 100644
--- a/Resources.php
+++ b/Resources.php
@@ -82,6 +82,9 @@
        'styles' => array(
                'translation/styles/ext.cx.translation.less',
        ),
+       'messages' => array(
+               'cx-translation-add-translation',
+       ),
 ) + $resourcePaths;
 
 $wgResourceModules['ext.cx.tool'] = array(
diff --git a/i18n/en.json b/i18n/en.json
index 54f9018..041ac0b 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -17,6 +17,7 @@
     "cx-publish-page-error": "Error while saving page.",
     "cx-publish-button": "Publish translation",
     "cx-publish-summary": "Created by translating the page \"$1\"",
+    "cx-translation-add-translation": "+ Add translation",
     "tag-contenttranslation": "ContentTranslation",
     "cx-source-loading": "Loading $1",
     "cx-entrypoint-title": "Translate this page to $1",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 1e2ab91..d4dff08 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -19,6 +19,7 @@
        "cx-publish-page-error": "Error message to display when page saving 
fails.",
        "cx-publish-button": "Publish button text in 
[[Special:ContentTranslation]].\n\nAlso used in 
{{msg-mw|Cx-tools-instructions-text6}}.",
        "cx-publish-summary": "Edit summary when creating the translated 
page.\n\nThis is an automatic edit summary for the page that is automatically 
created as a result of translating a message using something like 
[[Special:Translate]].\n\nParameters:\n* $1 - the source page name",
+       "cx-translation-add-translation": "This appears in the empty paragraph 
in the translation column. Clicking the paragraph adds an automatic translation 
of the corresponding source paragraph. The plus sign is used as an icon that 
hints that something is being added.",
        "tag-contenttranslation": "A short description of the 
contenttranslation tag. Appears in the edit summary when a translated page is 
created.",
        "cx-source-loading": "Status text shown in the source article pane 
while article is being loaded.\n\nParameters:\n* $1 - the title of the page 
being loaded",
        "cx-entrypoint-title": "Tooltip for a red link that appears in the 
interlanguage links list and invites the user to translate the article to their 
language.\n\nParameters:\n* $1 - the language name in the interface language",
diff --git a/modules/translation/ext.cx.translation.js 
b/modules/translation/ext.cx.translation.js
index 0de0663..1537eab 100644
--- a/modules/translation/ext.cx.translation.js
+++ b/modules/translation/ext.cx.translation.js
@@ -156,7 +156,7 @@
 
        function sectionMouseEnterHandler() {
                /*jshint validthis:true */
-               $( this ).addClass( 'placeholder' ).html( '+ Add Translation' );
+               $( this ).addClass( 'placeholder' ).html( mw.msg( 
'cx-translation-add-translation' ) );
                $( jquerySelectorForId( $( this ).data( 'source' ) ) 
).addClass( 'highlight' );
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie7259e9efebceae286b5daffabdf8a624b651856
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to