diff --git a/ucs-school-umc-computerroom/umc/js/computerroom/ScreenshotView.js b/ucs-school-umc-computerroom/umc/js/computerroom/ScreenshotView.js index edf4e72..2a0c030 100644 --- a/ucs-school-umc-computerroom/umc/js/computerroom/ScreenshotView.js +++ b/ucs-school-umc-computerroom/umc/js/computerroom/ScreenshotView.js @@ -35,6 +35,7 @@ define([ "dojo/aspect", "dojo/dom", "dojo/dom-geometry", + "dojox/html/entities", "dijit/layout/ContentPane", "dijit/_Contained", "dijit/Tooltip", @@ -45,7 +46,7 @@ define([ "umc/widgets/Page", "umc/widgets/StandbyMixin", "umc/i18n!umc/modules/computerroom" -], function(declare, lang, array, aspect, dom, geometry, ContentPane, _Contained, Tooltip, +], function(declare, lang, array, aspect, dom, geometry, entities, ContentPane, _Contained, Tooltip, /*TitlePane,*/ ComboBox, ContainerWidget, Button, Page, StandbyMixin, _) { // README: This is an alternative view @@ -190,9 +191,10 @@ define([ this.inherited( arguments ); lang.mixin( this, { - content: lang.replace( '', { - computer: this.computer, - width: this.defaultSize + content: lang.replace( '{alternative}', { + computer: entities.encode(this.computer), + width: this.defaultSize, + alternative: entities.encode(_('Please be patient while the connection establishes.')) } ) } ); this.startup(); @@ -200,7 +202,10 @@ define([ // use dijit.Tooltip here to not hide screenshot tooltips if set up in user preferences var tooltip = new Tooltip({ 'class': 'umcTooltip', - label: lang.replace( '
', [ this.computer ] ), + label: lang.replace( '
{1}
', [ + entities.encode(this.computer), + entities.encode(_('connecting...')) + ]), connectId: [ this.domNode ], onShow: lang.hitch( this, function() { var image = dom.byId( 'screenshotTooltip-' + this.computer );