Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit a225c50

Browse files
author
Rohit Harkhani
committed
fix the error.
1 parent cc7edda commit a225c50

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/reactGUI/UndoRedoButtons.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ createUndoRedoButtonComponent = (undoOrRedo) -> createReactClass
2727
{div, img} = DOM
2828
{lc, imageURLPrefix} = @props
2929
title = if undoOrRedo == 'undo' then 'Undo' else 'Redo'
30-
30+
title = _(title)
3131
className = "lc-#{undoOrRedo} " + classSet
3232
'toolbar-button': true
3333
'thin-button': true
@@ -39,7 +39,7 @@ createUndoRedoButtonComponent = (undoOrRedo) -> createReactClass
3939
src = "#{imageURLPrefix}/#{undoOrRedo}.png"
4040
style = {backgroundImage: "url(#{src})"}
4141

42-
(div {className, onClick, _(title), style})
42+
(div {className, onClick, title, style})
4343

4444

4545
UndoButton = React.createFactory createUndoRedoButtonComponent('undo')

src/reactGUI/ZoomButtons.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ createZoomButtonComponent = (inOrOut) -> createReactClass
2020
{div, img} = DOM
2121
{lc, imageURLPrefix} = @props
2222
title = if inOrOut == 'in' then 'Zoom in' else 'Zoom out'
23-
23+
title = _(title)
2424
className = "lc-zoom-#{inOrOut} " + classSet
2525
'toolbar-button': true
2626
'thin-button': true
@@ -32,7 +32,7 @@ createZoomButtonComponent = (inOrOut) -> createReactClass
3232
src = "#{imageURLPrefix}/zoom-#{inOrOut}.png"
3333
style = {backgroundImage: "url(#{src})"}
3434

35-
(div {className, onClick, _(title), style})
35+
(div {className, onClick, title, style})
3636

3737

3838
ZoomOutButton = React.createFactory createZoomButtonComponent('out')

0 commit comments

Comments
 (0)