Add missing translation

This commit is contained in:
Toby Zerner 2015-07-23 14:27:24 +09:30
parent 9c384bee98
commit 420088acc9
4 changed files with 7 additions and 3 deletions

View File

@ -27,7 +27,7 @@ export default function() {
.map(user => {
return (
<a href={app.route.user(user)} config={m.route}>
{user === app.session.user ? 'You' : username(user)}
{user === app.session.user ? app.trans('likes.you') : username(user)}
</a>
);
});

View File

@ -1,4 +1,6 @@
import Notification from 'flarum/components/Notification';
import username from 'flarum/helpers/username';
import punctuate from 'flarum/helpers/punctuate';
export default class PostLikedNotification extends Notification {
icon() {
@ -19,7 +21,7 @@ export default class PostLikedNotification extends Notification {
user,
username: auc ? punctuate([
username(user),
app.trans('core.others', {count: auc})
app.trans('likes.others', {count: auc})
]) : undefined,
number: post.number()
});

View File

@ -9,3 +9,4 @@ likes:
like_action: Like
notify_post_liked: Someone likes my post
others: "{count} others"
you: You

View File

@ -34,7 +34,8 @@ class AddClientAssets
'likes.unlike_action',
'likes.like_action',
'likes.notify_post_liked',
'likes.others'
'likes.others',
'likes.you'
]);
}
}