Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/106692
Change subject: Whitespace cleanup
......................................................................
Whitespace cleanup
Change-Id: I9d7ee6332a4284a894240eac3df6ceb6153aa86d
---
M i18n/qqq.json
M modules/base/ext.cx.base.js
M modules/base/ext.cx.header.js
M modules/source/ext.cx.source.js
M modules/tools/ext.cx.tools.js
M modules/translation/ext.cx.translation.js
6 files changed, 37 insertions(+), 23 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/92/106692/1
diff --git a/i18n/qqq.json b/i18n/qqq.json
index f63a5eb..1a4f15b 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -1,7 +1,7 @@
{
"@metadata": {
"authors": [
- "Santhosh.thottingal"
+ "Santhosh.thottingal"
]
},
"cx": "Title for [[Special:ContentTranslation]]",
diff --git a/modules/base/ext.cx.base.js b/modules/base/ext.cx.base.js
index c05b388..3bb81eb 100644
--- a/modules/base/ext.cx.base.js
+++ b/modules/base/ext.cx.base.js
@@ -49,6 +49,7 @@
$( '<div>' ).addClass( 'translation' ),
$( '<div>' ).addClass( 'tools' )
);
+
this.$container.append( $content );
this.$header = this.$container.find( '.header' );
this.$source = this.$container.find( '.source' );
diff --git a/modules/base/ext.cx.header.js b/modules/base/ext.cx.header.js
index 0511d18..ad64f8d 100644
--- a/modules/base/ext.cx.header.js
+++ b/modules/base/ext.cx.header.js
@@ -27,9 +27,9 @@
};
ContentTranslationHeader.prototype.render = function () {
- this.$container.append( $( '<div>' )
- .addClass( 'logo')
- );
+ this.$container.append(
+ $( '<div>' ).addClass( 'logo')
+ );
};
$.fn.cxHeader = function ( options ) {
@@ -38,7 +38,8 @@
data = $this.data( 'cxHeader' );
if ( !data ) {
- $this.data( 'cxHeader',
+ $this.data(
+ 'cxHeader',
( data = new ContentTranslationHeader(
this, options ) )
);
}
@@ -48,5 +49,6 @@
}
} );
};
+
$.fn.cxHeader.defaults = {};
}( jQuery ) );
diff --git a/modules/source/ext.cx.source.js b/modules/source/ext.cx.source.js
index 9af49cb..53a534d 100644
--- a/modules/source/ext.cx.source.js
+++ b/modules/source/ext.cx.source.js
@@ -29,12 +29,12 @@
ContentTranslationSource.prototype.render = function () {
var title = new mw.Uri().query.article;
- this.$container.append( $( '<h2>' )
- .text( title || 'Article title' )
+ this.$container.append(
+ $( '<h2>' ).text( title || 'Article title' )
);
- this.$container.append( $( '<div>' )
- .text( 'Loading ' + ( title || '' ) )
+ this.$container.append(
+ $( '<div>' ).text( 'Loading ' + ( title || '' ) )
);
this.load( title );
@@ -51,7 +51,8 @@
data = $this.data( 'cxSource' );
if ( !data ) {
- $this.data( 'cxSource',
+ $this.data(
+ 'cxSource',
( data = new ContentTranslationSource(
this, options ) )
);
}
@@ -61,5 +62,6 @@
}
} );
};
+
$.fn.cxSource.defaults = {};
}( jQuery, mediaWiki ) );
diff --git a/modules/tools/ext.cx.tools.js b/modules/tools/ext.cx.tools.js
index c73b548..5cae318 100644
--- a/modules/tools/ext.cx.tools.js
+++ b/modules/tools/ext.cx.tools.js
@@ -40,24 +40,29 @@
$( '<li>' )
.text( 'Add some paragraphs to
the translation.' ),
$( '<li>' )
- .text( 'Adjust the automatic
translations '
- + ' provided to ensure
quality' )
+ .text( 'Adjust the automatic
translations ' +
+ 'provided to ensure
quality' )
.append( $( '<ul>')
.append(
$( '<li>' )
- .text(
'Machine translation is a useful starting point for'
-
+ 'translations, but translators must revise errors as'
-
+ 'necessary and confirm that the translation is accurate.' ),
+ .text(
+
'Machine translation is a useful starting point for ' +
+
'translations, but translators must revise errors as ' +
+
'necessary and confirm that the translation is accurate.'
+ ),
$( '<li>' )
- .text(
'o not translate text that appears unreliable'
-
+ 'or low-quality. If possible, verify the text with'
-
+ 'references provided in the source article.' )
+ .text(
+
'Do not translate text that appears unreliable' +
+
'or low-quality. If possible, verify the text with' +
+
'references provided in the source article.'
+ )
)
),
$( '<div>' )
- .text( 'When you are happy with
the result,'
- + 'select \"Publish
Translation\" '
- + 'to create a new
article.' )
+ .text( 'When you are happy with
the result, ' +
+ 'press \"Publish
Translation\" ' +
+ 'to create the new
article.'
+ )
)
);
@@ -80,5 +85,6 @@
}
} );
};
+
$.fn.cxTools.defaults = {};
}( jQuery ) );
diff --git a/modules/translation/ext.cx.translation.js
b/modules/translation/ext.cx.translation.js
index 327b59c..e004ddc 100644
--- a/modules/translation/ext.cx.translation.js
+++ b/modules/translation/ext.cx.translation.js
@@ -29,14 +29,16 @@
ContentTranslationEditor.prototype.render = function () {
var $content;
- this.$container.append( $( '<h2>' )
+ this.$container.append(
+ $( '<h2>' )
.attr( 'contenteditable', true )
.text( 'Translated title' )
- );
+ );
$content = $( '<div>' )
.attr( 'contenteditable', true )
.text( 'Translated text' );
+
this.$container.append( $content );
};
@@ -56,5 +58,6 @@
}
} );
};
+
$.fn.cxTranslation.defaults = {};
}( jQuery ) );
--
To view, visit https://gerrit.wikimedia.org/r/106692
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9d7ee6332a4284a894240eac3df6ceb6153aa86d
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