mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 23:08:12 +08:00
Merge pull request #645 from dcsjapan/leftover-translations
Extract leftover strings
This commit is contained in:
commit
172fffd1ed
|
@ -5,7 +5,7 @@ export default class DashboardPage extends Component {
|
|||
return (
|
||||
<div className="DashboardPage">
|
||||
<div className="container">
|
||||
<h2>Welcome to Flarum Beta</h2>
|
||||
<h2>{app.translator.trans('core.admin.dashboard.welcome_text')}</h2>
|
||||
<p>{app.translator.trans('core.admin.dashboard.version_text', {version: <strong>{app.forum.attribute('version')}</strong>})}</p>
|
||||
<p>{app.translator.trans('core.admin.dashboard.beta_warning_text', {strong: <strong/>})}</p>
|
||||
<ul>
|
||||
|
|
|
@ -12,13 +12,13 @@ export default class EditCustomCssModal extends Modal {
|
|||
}
|
||||
|
||||
title() {
|
||||
return 'Edit Custom CSS';
|
||||
return app.translator.trans('core.admin.edit_css.title');
|
||||
}
|
||||
|
||||
content() {
|
||||
return (
|
||||
<div className="Modal-body">
|
||||
<p>Customize your forum's appearance by adding your own LESS/CSS code to be applied on top of Flarum's default styles. <a href="http://flarum.org/docs/extend/themes/">Read the documentation</a> for more information.</p>
|
||||
<p>{app.translator.trans('core.admin.edit_css.customize_text', {a: <a href="https://github.com/flarum/core/tree/master/less" target="_blank"/>})}</p>
|
||||
|
||||
<div className="Form">
|
||||
<div className="Form-group">
|
||||
|
@ -29,7 +29,7 @@ export default class EditCustomCssModal extends Modal {
|
|||
{Button.component({
|
||||
className: 'Button Button--primary',
|
||||
type: 'submit',
|
||||
children: 'Save Changes',
|
||||
children: app.translator.trans('core.admin.edit_css.submit_button'),
|
||||
loading: this.loading
|
||||
})}
|
||||
</div>
|
||||
|
|
|
@ -33,7 +33,7 @@ export default class SettingsModal extends Modal {
|
|||
className="Button Button--primary"
|
||||
loading={this.loading}
|
||||
disabled={!this.changed()}>
|
||||
Save Changes
|
||||
{app.translator.trans('core.admin.settings.submit_button')}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ export default class PostsUserPage extends UserPage {
|
|||
{this.posts.map(post => (
|
||||
<li>
|
||||
<div className="PostsUserPage-discussion">
|
||||
In <a href={app.route.post(post)} config={m.route}>{post.discussion().title()}</a>
|
||||
{app.translator.trans('core.forum.user.in_discussion_text', {discussion: <a href={app.route.post(post)} config={m.route}>{post.discussion().title()}</a>})}
|
||||
</div>
|
||||
{CommentPost.component({post, showDiscussionTitle: true})}
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue
Block a user