Merge pull request #645 from dcsjapan/leftover-translations

Extract leftover strings
This commit is contained in:
Toby Zerner 2015-11-28 18:54:27 +10:30
commit 172fffd1ed
4 changed files with 6 additions and 6 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>
);
}

View File

@ -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>