mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 23:29:09 +08:00
Merge pull request #577 from dcsjapan/leftover-string-extraction
Extract leftover core strings
This commit is contained in:
commit
68a7886cec
|
@ -53,7 +53,7 @@ export default class DiscussionList extends Component {
|
|||
}
|
||||
|
||||
if (this.discussions.length === 0 && !this.loading) {
|
||||
const text = 'Looks like there are no discussions here. Why don\'t you create a new one?';
|
||||
const text = app.trans('core.forum.discussion_list_empty_text');
|
||||
return (
|
||||
<div className="DiscussionList">
|
||||
{Placeholder.component({text})}
|
||||
|
|
|
@ -78,8 +78,7 @@ export default class LogInModal extends Modal {
|
|||
|
||||
{app.forum.attribute('allowSignUp') ? (
|
||||
<p className="LogInModal-signUp">
|
||||
{app.trans('core.forum.log_in_no_account_text')}
|
||||
<a onclick={this.signUp.bind(this)}>{app.trans('core.forum.log_in_sign_up_link')}</a>
|
||||
{app.trans('core.forum.log_in_sign_up_text', {a: <a onclick={this.signUp.bind(this)}/>})}
|
||||
</p>
|
||||
) : ''}
|
||||
</div>
|
||||
|
|
|
@ -140,8 +140,7 @@ export default class SignUpModal extends Modal {
|
|||
footer() {
|
||||
return [
|
||||
<p className="SignUpModal-logIn">
|
||||
{app.trans('core.forum.sign_up_already_have_account_text')}
|
||||
<a onclick={this.logIn.bind(this)}>{app.trans('core.forum.sign_up_log_in_link')}</a>
|
||||
{app.trans('core.forum.sign_up_log_in_text', {a: <a onclick={this.logIn.bind(this)}/>})}
|
||||
</p>
|
||||
];
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ export default {
|
|||
* Delete the user.
|
||||
*/
|
||||
deleteAction() {
|
||||
if (confirm('Are you sure you want to delete this user? All of the user\'s posts will be deleted.')) {
|
||||
if (confirm(app.trans('core.forum.user_controls_delete_confirmation'))) {
|
||||
this.delete().then(() => {
|
||||
if (app.current instanceof UserPage && app.current.user === this) {
|
||||
app.history.back();
|
||||
|
|
Loading…
Reference in New Issue
Block a user