FIX: forgot i18n associated with bookmark button (:fired:)

This commit is contained in:
Régis Hanol 2015-01-12 16:05:17 +01:00
parent c681b353f2
commit f0f1afff03
2 changed files with 10 additions and 1 deletions

View File

@ -3,11 +3,14 @@ import ButtonView from 'discourse/views/button';
export default ButtonView.extend({
classNames: ['bookmark'],
textKey: 'bookmarked.title',
helpKeyBinding: 'controller.bookmarkTooltipKey',
attributeBindings: ['disabled'],
rerenderTriggers: ['controller.bookmarked'],
helpKey: function() {
return this.get("controller.bookmarked") ? "bookmarked.help.unbookmark" : "bookmarked.help.bookmark";
}.property("controller.bookmarked"),
click: function() {
this.get('controller').send('toggleBookmark');
},

View File

@ -161,6 +161,12 @@ en:
contact: "Contact Us"
contact_info: "In the event of a critical issue or urgent matter affecting this site, please contact us at %{contact_email}."
bookmarked:
title: "Bookmark"
help:
bookmark: "Click to bookmark this topic"
unbookmark: "Click to remove bookmark to this topic"
bookmarks:
not_logged_in: "sorry, you must be logged in to bookmark posts"
created: "you've bookmarked this post"