FIX: Missing translations, update title on About

This commit is contained in:
Robin Ward 2014-08-12 11:04:12 -04:00
parent e523006b3b
commit 0e5a79cf5d
3 changed files with 10 additions and 3 deletions

View File

@ -1,8 +1,13 @@
export default Ember.Route.extend({
export default Discourse.Route.extend({
model: function() {
return Discourse.ajax("/about.json").then(function(result) {
return result.about;
});
},
setupController: function(controller, model) {
controller.set('model', model);
Discourse.set('title', I18n.t('about.simple_title'));
}
});

View File

@ -6,7 +6,7 @@
{{#if admins}}
<section class='about admins'>
<h3>Our Admins</h3>
<h3>{{i18n about.our_admins}}</h3>
{{#each admins}}
{{user-small user=this}}
@ -18,7 +18,7 @@
{{#if moderators}}
<section class='about admins'>
<h3>Our Moderators</h3>
<h3>{{i18n about.our_moderators}}</h3>
<div class='users'>
{{#each moderators}}

View File

@ -148,6 +148,8 @@ en:
simple_title: "About"
title: "About %{title}"
stats: "Site Statistics"
our_admins: "Our Admins"
our_moderators: "Our Moderators"
stat:
all_time: "All Time"
last_7_days: "Last 7 Days"