r88743 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88742‎ | r88743 | r88744 >
Date:20:16, 24 May 2011
Author:hartman
Status:deferred
Tags:
Comment:
Add lang= to the rendered text. Still needs dir mapping.
Modified paths:
  • /trunk/extensions/TimedMediaHandler/MwEmbedModules/TimedText/resources/mw.TimedText.js (modified) (history)

Diff [purge]

Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/TimedText/resources/mw.TimedText.js
@@ -1078,6 +1078,9 @@
10791079 // include html formating
10801080 // TOOD we should scrub this for non-formating html
10811081 $textTarget.html( text );
 1082+
 1083+ // Add/update the lang option
 1084+ $textTarget.attr( 'lang', source.srclang.toLowerCase() );
10821085
10831086 // Update any links to point to a new window
10841087 $textTarget.find( 'a' ).attr( 'target', '_blank' );

Status & tagging log