FIX: forgot i18n associated with bookmark button (:fired:)
This commit is contained in:
parent
c681b353f2
commit
f0f1afff03
|
@ -3,11 +3,14 @@ import ButtonView from 'discourse/views/button';
|
||||||
export default ButtonView.extend({
|
export default ButtonView.extend({
|
||||||
classNames: ['bookmark'],
|
classNames: ['bookmark'],
|
||||||
textKey: 'bookmarked.title',
|
textKey: 'bookmarked.title',
|
||||||
helpKeyBinding: 'controller.bookmarkTooltipKey',
|
|
||||||
attributeBindings: ['disabled'],
|
attributeBindings: ['disabled'],
|
||||||
|
|
||||||
rerenderTriggers: ['controller.bookmarked'],
|
rerenderTriggers: ['controller.bookmarked'],
|
||||||
|
|
||||||
|
helpKey: function() {
|
||||||
|
return this.get("controller.bookmarked") ? "bookmarked.help.unbookmark" : "bookmarked.help.bookmark";
|
||||||
|
}.property("controller.bookmarked"),
|
||||||
|
|
||||||
click: function() {
|
click: function() {
|
||||||
this.get('controller').send('toggleBookmark');
|
this.get('controller').send('toggleBookmark');
|
||||||
},
|
},
|
||||||
|
|
|
@ -161,6 +161,12 @@ en:
|
||||||
contact: "Contact Us"
|
contact: "Contact Us"
|
||||||
contact_info: "In the event of a critical issue or urgent matter affecting this site, please contact us at %{contact_email}."
|
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:
|
bookmarks:
|
||||||
not_logged_in: "sorry, you must be logged in to bookmark posts"
|
not_logged_in: "sorry, you must be logged in to bookmark posts"
|
||||||
created: "you've bookmarked this post"
|
created: "you've bookmarked this post"
|
||||||
|
|
Loading…
Reference in New Issue