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

i18n for share button

ulfertsa824331e6672
diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml
index 525a01765bc..69de2035dde 100644
--- a/config/locales/js-en.yml
+++ b/config/locales/js-en.yml
@@ -1094,6 +1094,8 @@ en:
scheduling:
is_parent: "The dates of this work package are automatically deduced from its children. Activate 'Manual scheduling' to set the dates."
is_switched_from_manual_to_automatic: "The dates of this work package may need to be recalculated after switching from manual to automatic scheduling due to relationships with other work packages."
+ sharing:
+ share: 'Share'
table:
configure_button: 'Configure work package table'
summary: "Table with rows of work package and columns of work package attributes."
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.component.ts
index 239ddd39ce1..639a5a42004 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.component.ts
@@ -44,7 +44,11 @@ import { WorkPackageShareModalComponent } from 'core-app/features/work-packages/
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class WorkPackageShareButtonComponent extends UntilDestroyedMixin {
- @Input('workPackage') public workPackage:WorkPackageResource;
+ @Input() public workPackage:WorkPackageResource;
+
+ public text = {
+ share: this.I18n.t('js.work_packages.sharing.share'),
+ };
constructor(
readonly I18n:I18nService,
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.html
index 382c93d2042..15cb43f3932 100644
--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.html
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-share-button/wp-share-button.html
@@ -3,5 +3,5 @@
(click)="openModal()"
>
<!-- <svg share-android></svg> -->
- <span class="button--text">SHARE</span>
+ <span class="button--text" [textContent]="text.share"></span>
</button>