mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 23:29:57 +08:00
Primary key renaming
Improved consistency for existing core translation key names. See flarum/core#265 - Completely overhauled core en.yml - Replaced existing key names in all core JS files to match - Extracted a hardcoded string in IndexPage.js - Combined two app.trans calls in DiscussionControls.js - Removed hardcoded spaces from LogInModal.js and SignUpModal.js - Added two new keys from DiscussionControls.js (soft delete) - Created two new “reused keys” to YML to accommodate same
This commit is contained in:
@ -131,7 +131,7 @@ export default class UserPage extends Page {
|
||||
items.add('posts',
|
||||
LinkButton.component({
|
||||
href: app.route('user.posts', {username: user.username()}),
|
||||
children: [app.trans('core.posts'), <span className="Button-badge">{user.commentsCount()}</span>],
|
||||
children: [app.trans('core.user_posts_link'), <span className="Button-badge">{user.commentsCount()}</span>],
|
||||
icon: 'comment-o'
|
||||
})
|
||||
);
|
||||
@ -139,7 +139,7 @@ export default class UserPage extends Page {
|
||||
items.add('discussions',
|
||||
LinkButton.component({
|
||||
href: app.route('user.discussions', {username: user.username()}),
|
||||
children: [app.trans('core.discussions'), <span className="Button-badge">{user.discussionsCount()}</span>],
|
||||
children: [app.trans('core.user_discussions_link'), <span className="Button-badge">{user.discussionsCount()}</span>],
|
||||
icon: 'reorder'
|
||||
})
|
||||
);
|
||||
@ -149,7 +149,7 @@ export default class UserPage extends Page {
|
||||
items.add('settings',
|
||||
LinkButton.component({
|
||||
href: app.route('settings'),
|
||||
children: app.trans('core.settings'),
|
||||
children: app.trans('core.user_settings_link'),
|
||||
icon: 'cog'
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user