1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

Add "forum" namespacing to previously renamed core keys

- Does not affect "core.deleted_user" global string.
- Corresponding YAML will be sent later w/ more extracted strings.
This commit is contained in:
dcsjapan
2015-10-02 15:54:39 +09:00
parent 4e5b3099f8
commit 0a66229169
38 changed files with 121 additions and 121 deletions

View File

@@ -60,7 +60,7 @@ export default {
if (!post.isHidden()) {
items.add('edit', Button.component({
icon: 'pencil',
children: app.trans('core.post_controls_edit_button'),
children: app.trans('core.forum.post_controls_edit_button'),
onclick: this.editAction.bind(post)
}));
}
@@ -85,7 +85,7 @@ export default {
if (post.canEdit()) {
items.add('hide', Button.component({
icon: 'trash-o',
children: app.trans('core.post_controls_delete_button'),
children: app.trans('core.forum.post_controls_delete_button'),
onclick: this.hideAction.bind(post)
}));
}
@@ -93,14 +93,14 @@ export default {
if (post.canEdit()) {
items.add('restore', Button.component({
icon: 'reply',
children: app.trans('core.post_controls_restore_button'),
children: app.trans('core.forum.post_controls_restore_button'),
onclick: this.restoreAction.bind(post)
}));
}
if (post.canDelete() && post.number() !== 1) {
items.add('delete', Button.component({
icon: 'times',
children: app.trans('core.post_controls_delete_forever_button'),
children: app.trans('core.forum.post_controls_delete_forever_button'),
onclick: this.deleteAction.bind(post)
}));
}