OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[50019] Make more strings translatable
Christophe Bliard9fbe5f90f1fe
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex c47901294b1..ba157ccd292 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -665,6 +665,7 @@ en:title: "Working days"false: "working days only"true: "include non-working days"+ notify: "Notify" # used in custom actionsparent: "Parent"parent_issue: "Parent"parent_work_package: "Parent"diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 2b0a43f37f5..01d4f366c48 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -40,6 +40,13 @@ en:draggable_hint: |Drag on editor field to inline image or reference attachment. Closed editor fields will be opened while you keep dragging.+ autocomplete_ng_select:+ add_tag: "Add item"+ clear_all: "Clear all"+ loading: "Loading..."+ not_found: "No items found"+ type_to_search: "Type to search"+autocomplete_select:placeholder:multi: "Add \"%{name}\""diff --git a/frontend/src/app/core/i18n/i18n.service.ts b/frontend/src/app/core/i18n/i18n.service.tsindex c941b2ab3ff..646ce6adde2 100644--- a/frontend/src/app/core/i18n/i18n.service.ts+++ b/frontend/src/app/core/i18n/i18n.service.ts@@ -1,4 +1,5 @@import { Injectable } from '@angular/core';+import { NgSelectConfig } from '@ng-select/ng-select';import { I18n } from 'i18n-js';import { FormatNumberOptions, TranslateOptions } from 'i18n-js/src/typing';@@ -6,6 +7,16 @@ import { FormatNumberOptions, TranslateOptions } from 'i18n-js/src/typing';export class I18nService {private i18n:I18n = window.I18n;+ constructor(+ private config:NgSelectConfig,+ ) {+ this.config.addTagText = this.t('autocomplete_ng_select.add_tag');+ this.config.clearAllText = this.t('autocomplete_ng_select.clear_all');+ this.config.loadingText = this.t('autocomplete_ng_select.loading');+ this.config.notFoundText = this.t('autocomplete_ng_select.not_found');+ this.config.typeToSearchText = this.t('autocomplete_ng_select.type_to_search');+ }+public get locale():string {return this.i18n.locale;}diff --git a/modules/reporting/app/models/cost_query/filter/logged_by_id.rb b/modules/reporting/app/models/cost_query/filter/logged_by_id.rbindex a1d0fefce85..8d4967f69ae 100644--- a/modules/reporting/app/models/cost_query/filter/logged_by_id.rb+++ b/modules/reporting/app/models/cost_query/filter/logged_by_id.rb@@ -28,7 +28,7 @@class CostQuery::Filter::LoggedById < Report::Filter::Basedef self.label- WorkPackage.human_attribute_name(:logged_by)+ I18n.t(:label_logged_by_reporting)enddef self.me_value@@ -39,7 +39,6 @@ class CostQuery::Filter::LoggedById < Report::Filter::Base# Map the special 'me' valuesuper.filter_map { |val| replace_me_value(val) }-enddef replace_me_value(value)diff --git a/modules/reporting/app/models/cost_query/group_by/logged_by_id.rb b/modules/reporting/app/models/cost_query/group_by/logged_by_id.rbindex b0177f9b185..f797c360694 100644--- a/modules/reporting/app/models/cost_query/group_by/logged_by_id.rb+++ b/modules/reporting/app/models/cost_query/group_by/logged_by_id.rb@@ -28,6 +28,6 @@class CostQuery::GroupBy::LoggedById < Report::GroupBy::Basedef self.label- WorkPackage.human_attribute_name(:logged_by)+ I18n.t(:label_logged_by_reporting)endenddiff --git a/modules/reporting/config/locales/en.yml b/modules/reporting/config/locales/en.ymlindex 6002e8d31bc..f31e3f22b17 100644--- a/modules/reporting/config/locales/en.yml+++ b/modules/reporting/config/locales/en.yml@@ -60,6 +60,7 @@ en:label_is_project_with_subprojects: "is (includes subprojects)"label_work_package_attributes: "Work package attributes"label_less: "<"+ label_logged_by_reporting: "Logged by"label_money: "Cash value"label_month_reporting: "Month (Spent)"label_new_report: "New cost report"