Skip to content
Snippets Groups Projects
Commit f838e9ef authored by Matthias Brun's avatar Matthias Brun
Browse files

Add localization for archived/unarchived messages

parent 801864c2
No related branches found
No related tags found
No related merge requests found
...@@ -366,6 +366,8 @@ ...@@ -366,6 +366,8 @@
"Restart" : "Restart", "Restart" : "Restart",
"Restart_the_server" : "Restart the server", "Restart_the_server" : "Restart the server",
"Room" : "Room", "Room" : "Room",
"Room_archived" : "Room archived",
"Room_unarchived" : "Room unarchived",
"Room_name_changed" : "Room name changed to: <em>__room_name__</em> by <em>__user_by__</em>", "Room_name_changed" : "Room name changed to: <em>__room_name__</em> by <em>__user_by__</em>",
"Room_name_changed_successfully" : "Room name changed successfully", "Room_name_changed_successfully" : "Room name changed successfully",
"Room_not_found" : "Room not found", "Room_not_found" : "Room not found",
......
...@@ -22,14 +22,14 @@ Template.channelSettings.events ...@@ -22,14 +22,14 @@ Template.channelSettings.events
Meteor.call 'archiveRoom', t.data.rid, true, (err, results) -> Meteor.call 'archiveRoom', t.data.rid, true, (err, results) ->
return toastr.error err.reason if err return toastr.error err.reason if err
toastr.success 'Channel archived' toastr.success TAPi18n.__ 'Room_archived'
'click .unarchive': (e, t) -> 'click .unarchive': (e, t) ->
e.preventDefault() e.preventDefault()
Meteor.call 'unarchiveRoom', t.data.rid, true, (err, results) -> Meteor.call 'unarchiveRoom', t.data.rid, true, (err, results) ->
return toastr.error err.reason if err return toastr.error err.reason if err
toastr.success 'Channel unarchived' toastr.success TAPi18n.__ 'Room_unarchived'
# switch room.t # switch room.t
# when 'c' # when 'c'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment