Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use I18n. [#204]

  • Loading branch information...
commit 0087e1ef59504b5358cc7e5988d7951dba46adc9 1 parent 698f9a0
@marnen authored
View
3  app/assets/javascripts/templates/story_hover.jst.ejs
@@ -8,8 +8,9 @@
<% } %>
</span>
<span>
- ID: <%= story.get('id') %>
+ <%= story.humanAttributeName('id') %>: <%= story.get('id') %>
</span>
+ <br/>
<span>
<% if (story.requested_by()) { %>
<%= I18n.t("requested by user on date", {user: story.requested_by().get('name'), date: story.created_at()}) %>
View
2  app/assets/javascripts/views/story_view.js
@@ -277,7 +277,7 @@ Fulcrum.StoryView = Fulcrum.FormView.extend({
if(!this.model.isNew()) {
this.$el.append(
- $('<div/>').addClass('story-id').html("ID: " + this.model.escape('id'))
+ $('<div/>').addClass('story-id').html(I18n.t('activerecord.attributes.story.id') + ": " + this.model.escape('id'))
);
}
View
5 config/locales/en.yml
@@ -41,7 +41,7 @@ en:
n weeks:
one: '1 week'
other: '%{count} weeks'
-
+
keycuts:
keyboard_shortcuts: Keyboard shortcuts
help: Help (this)
@@ -55,7 +55,7 @@ en:
toggle_my_work: Toggle my work
toggle_labels_searches: Toggle labels &amp; searches
toggle_current: Toggle current
-
+
activerecord:
models:
user:
@@ -79,6 +79,7 @@ en:
iteration_length: 'Iteration length'
default_velocity: 'Default velocity'
story:
+ id: 'ID'
title: 'Title'
description: 'Description'
estimate: 'Estimate'
Please sign in to comment.
Something went wrong with that request. Please try again.