From 86598013a3ebef47bf1c94fb3559fbf1c6e1a510 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 11 Apr 2021 11:30:00 +0200 Subject: fix localization on page not found --- .../src/app/+page-not-found/page-not-found.component.html | 15 ++++++++++----- .../src/app/+page-not-found/page-not-found.component.ts | 9 --------- 2 files changed, 10 insertions(+), 14 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+page-not-found/page-not-found.component.html b/client/src/app/+page-not-found/page-not-found.component.html index efd3cc9f9..1e25e4495 100644 --- a/client/src/app/+page-not-found/page-not-found.component.html +++ b/client/src/app/+page-not-found/page-not-found.component.html @@ -3,8 +3,9 @@ {{ status }}. That's an error. -
- We couldn't find any {{ getRessourceName() }} tied to the URL {{ pathname }} you were looking for. +
+ We couldn't find any video tied to the URL {{ pathname }} you were looking for. + We couldn't find any resource tied to the URL {{ pathname }} you were looking for.
@@ -12,7 +13,10 @@
  • You may have used an outdated or broken link
  • -
  • The {{ getRessourceName() }} may have been moved or deleted
  • +
  • + The video may have been moved or deleted + The resource may have been moved or deleted +
  • You may have typed the address or URL incorrectly
@@ -22,8 +26,9 @@ {{ status }}. You are not authorized here. -
- You might need to check your account is allowed by the {{ getRessourceName() }} or instance owner. +
+ You might need to check your account is allowed by the video or instance owner. + You might need to check your account is allowed by the resource or instance owner.
diff --git a/client/src/app/+page-not-found/page-not-found.component.ts b/client/src/app/+page-not-found/page-not-found.component.ts index 9302201ea..94b4c8d27 100644 --- a/client/src/app/+page-not-found/page-not-found.component.ts +++ b/client/src/app/+page-not-found/page-not-found.component.ts @@ -32,15 +32,6 @@ export class PageNotFoundComponent implements OnInit { return window.location.pathname } - getRessourceName () { - switch (this.type) { - case 'video': - return $localize`video` - default: - return $localize`ressource` - } - } - getMascotName () { switch (this.status) { case HttpStatusCode.I_AM_A_TEAPOT_418: -- cgit v1.2.3