Permalink
Browse files

Additional keys

  • Loading branch information...
1 parent be34052 commit 40c97ea7bf81b329395eb728b48417a7c76a20d8 @relaxdiego relaxdiego committed Oct 7, 2010
@@ -39,4 +39,15 @@ RB.routes = {
show_burndown_chart: '<%= url_for(:controller => 'rb_burndown_charts', :action => 'show', :sprint_id => ":id") %>'
}
+RB.locales = {
+ rb_txt_edit_impediment: '<%= l(:rb_txt_edit_impediment) %>',
+ rb_txt_edit_issue: '<%= l(:rb_txt_edit_issue) %>',
+ rb_txt_edit_story: '<%= l(:rb_txt_edit_story) %>',
+ rb_txt_edit_task: '<%= l(:rb_txt_edit_task) %>',
+ rb_txt_new_impediment: '<%= l(:rb_txt_new_impediment) %>',
+ rb_txt_new_issue: '<%= l(:rb_txt_new_issue) %>',
+ rb_txt_new_story: '<%= l(:rb_txt_new_story) %>',
+ rb_txt_new_task: '<%= l(:rb_txt_new_task) %>'
+}
+
if(typeof console != "undefined" && console != null) console.log('*** server variables loaded ***');
@@ -18,6 +18,10 @@ RB.Impediment = RB.Object.create(RB.Task, {
j.find(".editable").live('mouseup', this.handleClick);
},
+ getType: function(){
+ return "impediment";
+ },
+
// Override saveDirectives of RB.Task
saveDirectives: function(){
var j = this.$;
@@ -14,7 +14,7 @@ RB.Issue = RB.Object.create(RB.Model, {
},
getType: function(){
- return "Issue";
+ return "issue";
},
saveDragResult: function(){
@@ -133,7 +133,7 @@ RB.Model = RB.Object.create({
// Override this method to change the dialog title
editDialogTitle: function(){
- return "Edit " + this.getType()
+ return RB.locales["rb_txt_edit_" + this.getType()];
},
editorDisplayed: function(editor){
@@ -215,7 +215,7 @@ RB.Model = RB.Object.create({
// Override this method to change the dialog title
newDialogTitle: function(){
- return "New " + this.getType()
+ return RB.locales["rb_txt_new_" + this.getType()];
},
open: function(){
@@ -22,7 +22,7 @@ RB.Sprint = RB.Object.create(RB.Model, RB.EditableInplace, {
},
getType: function(){
- return "Sprint";
+ return "sprint";
},
markIfClosed: function(){
@@ -18,10 +18,6 @@ RB.Story = RB.Object.create(RB.Issue, RB.EditableInplace, {
beforeSave: function(){
// Do nothing
},
-
- editDialogTitle: function(){
- return "Story #" + this.getID();
- },
editorDisplayed: function(editor){
// editor.dialog("option", "position", "center");
@@ -33,7 +29,7 @@ RB.Story = RB.Object.create(RB.Issue, RB.EditableInplace, {
},
getType: function(){
- return "Story";
+ return "story";
},
markIfClosed: function(){
@@ -28,7 +28,7 @@ RB.Task = RB.Object.create(RB.Issue, {
},
getType: function(){
- return "Task";
+ return "task";
},
markIfClosed: function(){
View
@@ -20,7 +20,7 @@ en:
rb_error_sprint_notes_missing: Contains sprints without retrospective/review notes
rb_error_sprint_unestimated: Contains closed or active sprints with unestimated stories
- # Fields don't have the rb_ prefix since Redmine Core dictates the keys, not RB
+ # Fields don't have the rb_ prefix since Redmine Core dictates some of the keys, not RB
field_position: Position
rb_label_any: Any
@@ -83,10 +83,20 @@ en:
rb_txt_burndown: "Burndown"
rb_txt_burn_down: Down
rb_txt_burn_up: Up
+ rb_txt_edit_impediment: Edit Impediment
+ rb_txt_edit_issue: Edit Issue
+ rb_txt_edit_sprint: Edit Sprint
+ rb_txt_edit_story: Edit Story
+ rb_txt_edit_task: Edit Task
rb_txt_hours: hours
rb_txt_ideal: ideal
rb_txt_issue_description: "%{summary}: %{url}\n%{description}"
rb_txt_issue_summary: "%{type}: %{summary}"
+ rb_txt_new_impediment: New Impediment
+ rb_txt_new_issue: New Issue
+ rb_txt_new_sprint: New Sprint
+ rb_txt_new_story: New Story
+ rb_txt_new_task: New Task
rb_txt_not_prioritized: "not prioritized"
rb_txt_not_unconfigured: "You have not configured Backlogs yet. Please go to %{administration} > %{plugins}, then click on the %{configure} link for this plugin. Once you have set the fields, come back to this page to start using the tool."
rb_txt_points: points

0 comments on commit 40c97ea

Please sign in to comment.