mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
Remove core key reorganization comments
This commit is contained in:
parent
15a3b46a1e
commit
f820a62ec9
|
@ -147,7 +147,6 @@ export default class IndexPage extends Page {
|
|||
|
||||
items.add('newDiscussion',
|
||||
Button.component({
|
||||
// Core Key Reorganization: Extracted the "Can't Start Discussion" string
|
||||
children: app.trans(canStartDiscussion ? 'core.index_start_discussion_button' : 'core.index_cannot_start_discussion_button'),
|
||||
icon: 'edit',
|
||||
className: 'Button Button--primary IndexPage-newDiscussion',
|
||||
|
@ -202,7 +201,6 @@ export default class IndexPage extends Page {
|
|||
|
||||
const sortOptions = {};
|
||||
for (const i in app.cache.discussionList.sortMap()) {
|
||||
// Core Key Reorganization: Adjusted syntax for new key names
|
||||
sortOptions[i] = app.trans('core.index_sort_' + i + '_button');
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,6 @@ export default class LogInModal extends Modal {
|
|||
|
||||
{app.forum.attribute('allowSignUp') ? (
|
||||
<p className="LogInModal-signUp">
|
||||
// Core Key Reorganization: Moved hardcoded space into preceding string.
|
||||
{app.trans('core.log_in_no_account_text')}
|
||||
<a onclick={this.signUp.bind(this)}>{app.trans('core.log_in_sign_up_link')}</a>
|
||||
</p>
|
||||
|
|
|
@ -140,7 +140,6 @@ export default class SignUpModal extends Modal {
|
|||
footer() {
|
||||
return [
|
||||
<p className="SignUpModal-logIn">
|
||||
// Core Key Reorganization: Moved hardcoded space into preceding string.
|
||||
{app.trans('core.sign_up_already_have_account_text')}
|
||||
<a onclick={this.logIn.bind(this)}>{app.trans('core.sign_up_log_in_link')}</a>
|
||||
</p>
|
||||
|
|
|
@ -55,7 +55,6 @@ export default {
|
|||
!app.session.user || discussion.canReply()
|
||||
? Button.component({
|
||||
icon: 'reply',
|
||||
// Core Key Reorganization: Combined two app.trans calls into one using Toby's slightly slicker way.
|
||||
children: app.trans(app.session.user ? 'core.discussion_controls_reply_button' : 'core.discussion_controls_log_in_to_reply_button'),
|
||||
onclick: this.replyAction.bind(discussion, true, false)
|
||||
})
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
* @return {Object}
|
||||
*/
|
||||
export default function username(user) {
|
||||
// Core Key Reorganization: Added core namespacing to the key.
|
||||
const name = (user && user.username()) || app.trans('core.deleted_username');
|
||||
|
||||
return <span className="username">{name}</span>;
|
||||
|
|
Loading…
Reference in New Issue
Block a user