i18n for impediments, using opportunity to scope i18n for tasks and stories on issue query

pull/6827/head
Jens Ulferts 14 years ago
parent 8296a3f4c1
commit eadf28626f
  1. 5
      config/locales/de.yml
  2. 12
      config/locales/en-GB.yml
  3. 4
      config/locales/en.yml
  4. 6
      lib/backlogs_query_patch.rb

@ -88,6 +88,11 @@ de:
show_burndown_chart: 'Burndown-Chart'
add_new_story: 'Neue Story'
column_with: "Spaltenbreite:"
impediment: Hindernis
task: Aufgabe
story: Story
any: beliebig
project_module_backlogs: Backlogs (Beta)

@ -92,4 +92,14 @@ en-GB:
field_blocks_ids: Blocks (IDs)
error_can_only_contain_issues_of_current_sprint: can only contain the IDs of current sprint's tickets
error_must_block_at_least_one_issue: must contain the ID of at least one ticket
error_must_block_at_least_one_issue: must contain the ID of at least one ticket
backlogs:
show_statistics: 'Show Scrum statistics'
show_burndown_chart: 'Burndown Chart'
add_new_story: 'New Story'
column_with: "Column width:"
impediment: Impediment
task: Task
story: Story
any: any

@ -106,6 +106,10 @@ en:
show_burndown_chart: 'Burndown Chart'
add_new_story: 'New Story'
column_with: "Column width:"
impediment: Impediment
task: Task
story: Story
any: any
project_module_backlogs: Backlogs (Beta)

@ -5,8 +5,8 @@ module Backlogs
def self.included(base) # :nodoc:
base.extend(ClassMethods)
base.send(:include, InstanceMethods)
# Same as typing in the class
# Same as typing in the class
base.class_eval do
unloadable # Send unloadable so it will not be unloaded in development
base.add_available_column(QueryColumn.new(:story_points, :sortable => "#{Issue.table_name}.story_points"))
@ -55,7 +55,7 @@ module Backlogs
else
backlogs_filters = {
"backlogs_issue_type" => { :type => :list,
:values => [[l(:backlogs_story), "story"], [l(:backlogs_task), "task"], [l(:backlogs_impediment), "impediment"], [l(:backlogs_any), "any"]],
:values => [[l(:story, :scope => [:backlogs]), "story"], [l(:task, :scope => [:backlogs]), "task"], [l(:impediment, :scope => [:backlogs]), "impediment"], [l(:any, :scope => [:backlogs]), "any"]],
:order => 20 }
}
end

Loading…
Cancel
Save