mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:18:06 +08:00
FIX: Missing translations, update title on About
This commit is contained in:
parent
e523006b3b
commit
0e5a79cf5d
|
@ -1,8 +1,13 @@
|
||||||
export default Ember.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
model: function() {
|
model: function() {
|
||||||
return Discourse.ajax("/about.json").then(function(result) {
|
return Discourse.ajax("/about.json").then(function(result) {
|
||||||
return result.about;
|
return result.about;
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
setupController: function(controller, model) {
|
||||||
|
controller.set('model', model);
|
||||||
|
Discourse.set('title', I18n.t('about.simple_title'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
{{#if admins}}
|
{{#if admins}}
|
||||||
<section class='about admins'>
|
<section class='about admins'>
|
||||||
<h3>Our Admins</h3>
|
<h3>{{i18n about.our_admins}}</h3>
|
||||||
|
|
||||||
{{#each admins}}
|
{{#each admins}}
|
||||||
{{user-small user=this}}
|
{{user-small user=this}}
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
{{#if moderators}}
|
{{#if moderators}}
|
||||||
<section class='about admins'>
|
<section class='about admins'>
|
||||||
<h3>Our Moderators</h3>
|
<h3>{{i18n about.our_moderators}}</h3>
|
||||||
|
|
||||||
<div class='users'>
|
<div class='users'>
|
||||||
{{#each moderators}}
|
{{#each moderators}}
|
||||||
|
|
|
@ -148,6 +148,8 @@ en:
|
||||||
simple_title: "About"
|
simple_title: "About"
|
||||||
title: "About %{title}"
|
title: "About %{title}"
|
||||||
stats: "Site Statistics"
|
stats: "Site Statistics"
|
||||||
|
our_admins: "Our Admins"
|
||||||
|
our_moderators: "Our Moderators"
|
||||||
stat:
|
stat:
|
||||||
all_time: "All Time"
|
all_time: "All Time"
|
||||||
last_7_days: "Last 7 Days"
|
last_7_days: "Last 7 Days"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user