jenkins-bot has submitted this change and it was merged. Change subject: Proper formatting of LTR messages docs in RTL ......................................................................
Proper formatting of LTR messages docs in RTL Formatting of message documentation with RTL interface language was somewhat broken, for example for lists. This commit adds mw-content-ltr/rtl to the documentation element. Change-Id: I698e9b98168c8468bda8170fff627244ce831cc2 --- M resources/js/ext.translate.editor.helpers.js 1 file changed, 6 insertions(+), 0 deletions(-) Approvals: Siebrand: Looks good to me, approved jenkins-bot: Verified diff --git a/resources/js/ext.translate.editor.helpers.js b/resources/js/ext.translate.editor.helpers.js index b46b990..1f74da7 100644 --- a/resources/js/ext.translate.editor.helpers.js +++ b/resources/js/ext.translate.editor.helpers.js @@ -117,11 +117,17 @@ // lang and dir attributes. // The message documentation is assumed to be written // in the content language of the wiki. + // Possible classes: + // * mw-content-ltr + // * mw-content-rtl + // (The direction classes are needed, because the documentation + // is likely to be MediaWiki-formatted text.) $messageDoc .attr( { lang: documentation.language, dir: documentationDir } ) + .addClass( 'mw-content-' + documentationDir ) .html( documentation.html ); this.$editor.find( '.message-desc-editor textarea' ) -- To view, visit https://gerrit.wikimedia.org/r/49803 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I698e9b98168c8468bda8170fff627244ce831cc2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Translate Gerrit-Branch: master Gerrit-Owner: Amire80 <amir.ahar...@mail.huji.ac.il> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits