Merge pull request #538 from opf/fix/none_translation

pull/549/head
Hagen Schink 11 years ago
commit 676eed1003
  1. 6
      app/assets/javascripts/timelines_select_boxes.js
  2. 2
      app/helpers/timelines_helper.rb
  3. 2
      app/models/timeline.rb
  4. 1
      app/views/timelines/_timeline.html.erb
  5. 6
      config/locales/de.yml
  6. 6
      config/locales/en.yml
  7. 1
      doc/CHANGELOG.md

@ -55,7 +55,7 @@ jQuery(document).ready(function($) {
$("#timeline_options_planning_element_responsibles"),
$("#timeline_options_grouping_two_selection")
].each(function (item) {
$(item).timelinesAutocomplete({ ajax: {null_element: {id: -1, name: I18n.t("js.timelines.filter.none")}} });
$(item).timelinesAutocomplete({ ajax: {null_element: {id: -1, name: I18n.t("js.timelines.filter.noneElement")}} });
});
[
@ -104,7 +104,7 @@ jQuery(document).ready(function($) {
query : OpenProject.Helpers.Search.projectQueryWithHierarchy(
jQuery.proxy(openProject, 'fetchProjects'),
20),
ajax: {null_element: {id: -1, name: I18n.t("js.timelines.filter.none")}}
ajax: {null_element: {id: -1, name: I18n.t("js.timelines.filter.noneElement")}}
});
});
@ -121,7 +121,7 @@ jQuery(document).ready(function($) {
query : OpenProject.Helpers.Search.projectQueryWithHierarchy(
jQuery.proxy(openProject, 'fetchProjects'),
20),
ajax: {null_element: {id: -1, name: I18n.t("js.timelines.filter.none")}}
ajax: {null_element: {id: -1, name: I18n.t("js.timelines.filter.noneElement")}}
});
});

@ -260,7 +260,7 @@ module TimelinesHelper
end
def none_option
result = [[l('timelines.filter.none'), -1]]
result = [[l('timelines.filter.noneSelection'), -1]]
end
def filter_select_i18n_array_with_index_and_none(array, i18n_prefix)

@ -35,7 +35,7 @@ class Timeline < ActiveRecord::Base
end
def name
@name ||= ::I18n.t('timelines.filter.none')
@name ||= ::I18n.t('timelines.filter.noneElement')
end
end

@ -49,6 +49,7 @@ See doc/COPYRIGHT.rdoc for more details.
'timelines.errors.not_implemented',
'timelines.errors.report_comparison',
'timelines.empty',
'timelines.filter.noneSelection',
'timelines.filter.column.due_date',
'timelines.filter.column.name',
'timelines.filter.column.type',

@ -544,7 +544,8 @@ de:
due_date: "Abschlussdatum"
error: "Ein Fehler ist aufgetreten."
filter:
none: "(keines)"
noneElement: "(keines)"
noneSelection: "(keine)"
name: "Name"
project_status: "Projekt-Status"
project_type: "Projekt-Typ"
@ -1397,7 +1398,8 @@ de:
grouping_two: "Zweites Gruppierungskriterium"
grouping_two_phrase: "Hat eine Abhängigkeit zu Projekttyp"
hide_chart: "Diagramm ausblenden"
none: "(keines)"
noneElement: "(keines)"
noneSelection: "(keine)"
outline: "Zu Beginn angezeigte Hierarchie"
parent: "Zeige Unterprojekte von"
planning_element_filters: "Planungselemente filtern"

@ -547,7 +547,8 @@ en:
create_planning_select_project: "Project:"
really_close_dialog: "Do you really want to close the dialog and loose the entered data?"
filter:
none: "(none)"
noneElement: "(none)"
noneSelection: "(none)"
label_account: "Account"
label_activity: "Activity"
@ -1386,7 +1387,8 @@ en:
grouping_two: "Second grouping criterion"
grouping_two_phrase: "Has a dependency to project type"
hide_chart: "Hide chart"
none: "(none)"
noneElement: "(none)"
noneSelection: "(none)"
outline: "Intitial outline expansion"
parent: "Show subprojects of"
planning_element_filters: "Filter planning elements"

@ -29,6 +29,7 @@ See doc/COPYRIGHT.rdoc for more details.
# Changelog
* `#902` Spelling Mistake: Timelines Report Configuration
* `#959` Too many available responsibles returned for filtering in Timelines
* `#1738` Forum problem when no description given.
* `#1916` Work package update screen is closed when attached file is deleted

Loading…
Cancel
Save