Skip to content

Commit

Permalink
Remove link from translations, as no longer translatable
Browse files Browse the repository at this point in the history
Release notes are always in english
  • Loading branch information
oliverguenther committed May 20, 2024
1 parent 26d4ff0 commit 8d28d94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion config/locales/js-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ en:
# Otherwise, e.g. chinese might still have the translations for 10.0 in the 12.0 release.
"14_1":
standard:
learn_about_link: https://www.openproject.org/docs/release-notes/14-1-0/
new_features_html: >
The release contains various new features and improvements: <br>
<ul class="%{list_styling_class}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export const homescreenNewFeaturesBlockSelector = 'homescreen-new-features-block
// The key used in the I18n files to distinguish between versions.
const OpVersionI18n = '14_1';

const OpReleaseURL = 'https://www.openproject.org/docs/release-notes/14-1-0/';

/** Update the teaser image to the next version */
const featureTeaserImage = `${OpVersionI18n}_features.svg`;

Expand Down Expand Up @@ -90,8 +92,7 @@ export class HomescreenNewFeaturesBlockComponent {
}

public get teaserWebsiteUrl() {
const url = this.translated('learn_about_link');
return this.domSanitizer.bypassSecurityTrustResourceUrl(url);
return this.domSanitizer.bypassSecurityTrustResourceUrl(OpReleaseURL);
}

public get currentNewFeatureHtml():string {
Expand Down

0 comments on commit 8d28d94

Please sign in to comment.