From eafbb37f267096c8d0737341f74298ddb5c082f9 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Thu, 25 Jan 2024 13:56:59 -0800 Subject: [PATCH] feat(ProjectLanguageChooser): make button tooltip into an input (#1589) In the AT, the tooltip now says "Choose Lanauge to Translate" --- .../project-language-chooser.component.html | 7 +----- .../project-language-chooser.component.ts | 1 + .../components/top-bar/top-bar.component.html | 2 ++ src/messages.xlf | 23 ++++++++++++------- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/app/common/project-language-chooser/project-language-chooser.component.html b/src/app/common/project-language-chooser/project-language-chooser.component.html index 3bfb5a3c693..cd22be90f95 100644 --- a/src/app/common/project-language-chooser/project-language-chooser.component.html +++ b/src/app/common/project-language-chooser/project-language-chooser.component.html @@ -1,9 +1,4 @@ - diff --git a/src/app/common/project-language-chooser/project-language-chooser.component.ts b/src/app/common/project-language-chooser/project-language-chooser.component.ts index f3e39012402..7e5efb5148f 100644 --- a/src/app/common/project-language-chooser/project-language-chooser.component.ts +++ b/src/app/common/project-language-chooser/project-language-chooser.component.ts @@ -18,6 +18,7 @@ export class ProjectLanguageChooserComponent implements OnChanges { @Output() languageChangedEvent = new EventEmitter(); @Input() projectLocale: ProjectLocale; protected selectedLanguage: Language; + @Input() tooltip: string = $localize`Select Language`; ngOnChanges(): void { this.availableLanguages = this.projectLocale.getAvailableLanguages(); diff --git a/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html b/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html index 0ca3ee2772a..572b6713d05 100644 --- a/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html +++ b/src/assets/wise5/authoringTool/components/top-bar/top-bar.component.html @@ -42,6 +42,8 @@

*ngIf="hasTranslations" [projectLocale]="projectLocale" (languageChangedEvent)="changeLanguage($event)" + tooltip="Choose Language to Translate" + i18n-tooltip >