Skip to content

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

Allow translation of manully created query

Oliver Günther8b6022d593e3
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 14606bcf5e3..b421cc47a3c 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -1098,6 +1098,7 @@ en:
workAlternative: "Estimated time"
remainingTime: "Remaining work"
default_queries:
+ manually_sorted: "New manually sorted query"
latest_activity: "Latest activity"
created_by_me: "Created by me"
assigned_to_me: "Assigned to me"
diff --git a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
index 6652798f7b0..dcde0240538 100644
--- a/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
@@ -327,7 +327,7 @@ export class WorkPackagesListService {
public async createOrSave(query:QueryResource):Promise<unknown> {
if (!isPersistedResource(query)) {
- return this.create(query, 'New manually sorted query');
+ return this.create(query, this.I18n.t('js.work_packages.default_queries.manually_sorted'));
}
return this.save(query);
}