From 543405e6bb6d06fcb218357461fda04665e067c8 Mon Sep 17 00:00:00 2001 From: Daniel Hutzel Date: Mon, 4 Nov 2024 07:40:55 +0100 Subject: [PATCH] I18n content added --- bookshop/_i18n/i18n_de.properties | 12 ++++++++++ bookshop/_i18n/i18n_en.properties | 21 +++++++++++++++++ bookshop/_i18n/i18n_fr.properties | 20 ++++++++++++++++ bookshop/_i18n/messages_de.properties | 34 +++++++++++++++++++++++++++ bookshop/_i18n/messages_en.properties | 34 +++++++++++++++++++++++++++ bookshop/_i18n/messages_fr.properties | 34 +++++++++++++++++++++++++++ fiori/app/_i18n/i18n.properties | 20 ---------------- fiori/app/_i18n/i18n_de.properties | 11 +-------- fiori/app/browse/fiori-service.cds | 4 ++-- 9 files changed, 158 insertions(+), 32 deletions(-) create mode 100644 bookshop/_i18n/i18n_de.properties create mode 100644 bookshop/_i18n/i18n_en.properties create mode 100644 bookshop/_i18n/i18n_fr.properties create mode 100644 bookshop/_i18n/messages_de.properties create mode 100644 bookshop/_i18n/messages_en.properties create mode 100644 bookshop/_i18n/messages_fr.properties diff --git a/bookshop/_i18n/i18n_de.properties b/bookshop/_i18n/i18n_de.properties new file mode 100644 index 00000000..8d5714f6 --- /dev/null +++ b/bookshop/_i18n/i18n_de.properties @@ -0,0 +1,12 @@ +Books = Bücher +Book = Buch +Title = Titel +Description = Beschreibung +Stock = Bestand +Image = Bild +Price = Preis +Currency = Währung + +Authors = Autoren +Author = Autor +AuthorID = ID des Autors diff --git a/bookshop/_i18n/i18n_en.properties b/bookshop/_i18n/i18n_en.properties new file mode 100644 index 00000000..8f266731 --- /dev/null +++ b/bookshop/_i18n/i18n_en.properties @@ -0,0 +1,21 @@ +Books = Books +Book = Book +ID = ID +Title = Title +Description = Description +Stock = Stock +Image = Image +Price = Price +Currency = Currency + +Authors = Authors +Author = Author +AuthorID = Author''s ID +Name = Name +DateOfBirth = Date of Birth +DateOfDeath = Date of Death +PlaceOfBirth = Place of Birth +PlaceOfDeath = Place of Death + +Genres = Genres +Genre = Genre diff --git a/bookshop/_i18n/i18n_fr.properties b/bookshop/_i18n/i18n_fr.properties new file mode 100644 index 00000000..9b85ab47 --- /dev/null +++ b/bookshop/_i18n/i18n_fr.properties @@ -0,0 +1,20 @@ +Books = Livres +Book = Livre +Title = Titre +Description = Description +Stock = Action +Image = Image +Price = Prix +Currency = Devise + +Authors = Auteurs +Author = Auteur +AuthorID = ID de l''auteur +Name = Nom +DateOfBirth = Date de naissance +DateOfDeath = Date de décès +PlaceOfBirth = Lieu de naissance +PlaceOfDeath = Lieu de décès + +Genres = Genre +Genre = Genre diff --git a/bookshop/_i18n/messages_de.properties b/bookshop/_i18n/messages_de.properties new file mode 100644 index 00000000..4f10bd9d --- /dev/null +++ b/bookshop/_i18n/messages_de.properties @@ -0,0 +1,34 @@ +400 = Ungültige Anfrage +401 = Nicht autorisiert +403 = Verboten +404 = Nicht gefunden +405 = Methode nicht zulässig +406 = Nicht akzeptabel +407 = Proxy-Authentifizierung erforderlich +408 = Anfrage-Timeout +409 = Konflikt +410 = Weg +411 = Erforderliche Länge +412 = Vorbedingung fehlgeschlagen +413 = Nutzlast zu groß +414 = URI zu lang +415 = Nicht unterstützter Medientyp +416 = Bereich nicht erfüllbar +417 = Erwartung fehlgeschlagen +422 = Nicht verarbeitbarer Inhalt +424 = Fehlgeschlagene Abhängigkeit +428 = Vorbedingung erforderlich +429 = Zu viele Anfragen +431 = Anfrage-Headerfelder zu groß +451 = Aus rechtlichen Gründen nicht verfügbar +500 = Interner Serverfehler +501 = Der Server unterstützt die zur Erfüllung der Anfrage erforderliche Funktionalität nicht +502 = Ungültiges Gateway +503 = Dienst nicht verfügbar +504 = Gateway-Timeout + +ASSERT_RANGE = Wert {0} liegt nicht im angegebenen Bereich [{1}, {2}] +ASSERT_FORMAT = Wert "{0}" liegt nicht im angegebenen Format "{1}" +ASSERT_ARRAY = Wert muss ein Array sein +ASSERT_ENUM = Wert {0} ist gemäß Enumerationsdeklaration {{1}} ungültig +ASSERT_NOT_NULL = Wert ist erforderlich diff --git a/bookshop/_i18n/messages_en.properties b/bookshop/_i18n/messages_en.properties new file mode 100644 index 00000000..32be0ccd --- /dev/null +++ b/bookshop/_i18n/messages_en.properties @@ -0,0 +1,34 @@ +400 = Bad Request +401 = Unauthorized +403 = Forbidden +404 = Not Found +405 = Method Not Allowed +406 = Not Acceptable +407 = Proxy Authentication Required +408 = Request Timeout +409 = Conflict +410 = Gone +411 = Length Required +412 = Precondition Failed +413 = Payload Too Large +414 = URI Too Long +415 = Unsupported Media Type +416 = Range Not Satisfiable +417 = Expectation Failed +422 = Unprocessable Content +424 = Failed Dependency +428 = Precondition Required +429 = Too Many Requests +431 = Request Header Fields Too Large +451 = Unavailable For Legal Reasons +500 = Internal Server Error +501 = The server does not support the functionality required to fulfill the request +502 = Bad Gateway +503 = Service Unavailable +504 = Gateway Timeout + +ASSERT_RANGE = Value {0} is not in specified range [{1}, {2}] +ASSERT_FORMAT = Value "{0}" is not in specified format "{1}" +ASSERT_ARRAY = Value must be an array +ASSERT_ENUM = Value {0} is invalid according to enum declaration {{1}} +ASSERT_NOT_NULL = Value is required diff --git a/bookshop/_i18n/messages_fr.properties b/bookshop/_i18n/messages_fr.properties new file mode 100644 index 00000000..d3ad5a0d --- /dev/null +++ b/bookshop/_i18n/messages_fr.properties @@ -0,0 +1,34 @@ +400 = Requête incorrecte +401 = Non autorisée +403 = Interdite +404 = Introuvable +405 = Méthode non autorisée +406 = Non acceptable +407 = Authentification proxy requise +408 = Délai d''expiration de la requête +409 = Conflit +410 = Disparu +411 = Longueur requise +412 = Échec de la condition préalable +413 = Charge utile trop importante +414 = URI trop longue +415 = Type de média non pris en charge +416 = Plage non satisfaisante +417 = Échec de l''attente +422 = Contenu non traitable +424 = Dépendance échouée +428 = Condition préalable requise +429 = Trop de requêtes +431 = Champs d''en-tête de requête trop importants +451 = Indisponible pour des raisons juridiques +500 = Erreur interne du serveur +501 = Le serveur ne prend pas en charge la fonctionnalité requise pour répondre à la requête +502 = Passerelle incorrecte +503 = Service indisponible +504 = Délai d''attente de la passerelle + +ASSERT_RANGE = La valeur {0} n''est pas dans la plage spécifiée [{1}, {2}] +ASSERT_FORMAT = La valeur "{0}" n''est pas au format spécifié "{1}" +ASSERT_ARRAY = La valeur doit être un tableau +ASSERT_ENUM = La valeur {0} n''est pas valide selon la déclaration d''énumération {{1}} +ASSERT_NOT_NULL = La valeur est obligatoire diff --git a/fiori/app/_i18n/i18n.properties b/fiori/app/_i18n/i18n.properties index c6e0d27d..857c5e81 100644 --- a/fiori/app/_i18n/i18n.properties +++ b/fiori/app/_i18n/i18n.properties @@ -1,21 +1,5 @@ -Books = Books -Book = Book -ID = ID -Title = Title -Author = Author -AuthorID = Author ID -Stock = Stock -Name = Name -Description = Description -Image = Image -AuthorName = Author's Name -DateOfBirth = Date of Birth -DateOfDeath = Date of Death -PlaceOfBirth = Place of Birth -PlaceOfDeath = Place of Death Age = Age Lifetime = Lifetime -Authors = Authors Order = Order Orders = Orders @@ -28,14 +12,10 @@ ProductTitle = Product Title UnitPrice = Unit Price Quantity = Quantity -Price = Price -Currency = Currency Date = Date Rating = Rating NumberOfReviews = Number of Reviews -Genre = Genre -Genres = Genres SubGenres = Sub Genres NumCode = Numeric Code diff --git a/fiori/app/_i18n/i18n_de.properties b/fiori/app/_i18n/i18n_de.properties index 7724f685..34c8540a 100644 --- a/fiori/app/_i18n/i18n_de.properties +++ b/fiori/app/_i18n/i18n_de.properties @@ -1,14 +1,5 @@ -Books = Bücher -Book = Buch -ID = ID -Title = Titel -Authors = Autoren -Author = Autor -AuthorID = ID des Autors AuthorName = Name des Autors Age = Alter -Name = Name -Stock = Bestand -Order = Bestellung +rder = Bestellung Orders = Bestellungen Price = Preis diff --git a/fiori/app/browse/fiori-service.cds b/fiori/app/browse/fiori-service.cds index 03ff198c..015e265b 100644 --- a/fiori/app/browse/fiori-service.cds +++ b/fiori/app/browse/fiori-service.cds @@ -6,8 +6,8 @@ using CatalogService from '@capire/bookstore'; // annotate CatalogService.Books with @(UI : { HeaderInfo : { - TypeName : 'Book', - TypeNamePlural : 'Books', + TypeName : '{i18n>Book}', + TypeNamePlural : '{i18n>Books}', Description : {Value : author} }, HeaderFacets : [{