From 05ad18c76ca1458c587d5bfcd49b73f2e59cbe43 Mon Sep 17 00:00:00 2001 From: Victor Usoltsev Date: Thu, 7 Oct 2021 23:24:49 +1300 Subject: [PATCH] Updates translation files to contain issues.count value. Added missing languages to be selectable on UI. --- src/Ombi/ClientApp/src/app/app.component.ts | 4 ++-- .../user-preference/user-preference.constants.ts | 12 ++++++++---- src/Ombi/wwwroot/translations/bg.json | 1 + src/Ombi/wwwroot/translations/da.json | 1 + src/Ombi/wwwroot/translations/de.json | 1 + src/Ombi/wwwroot/translations/en.json | 1 + src/Ombi/wwwroot/translations/es.json | 1 + src/Ombi/wwwroot/translations/fr.json | 1 + src/Ombi/wwwroot/translations/hu.json | 1 + src/Ombi/wwwroot/translations/it.json | 1 + src/Ombi/wwwroot/translations/nl.json | 1 + src/Ombi/wwwroot/translations/no.json | 1 + src/Ombi/wwwroot/translations/pl.json | 1 + src/Ombi/wwwroot/translations/pt.json | 1 + src/Ombi/wwwroot/translations/ru.json | 1 + src/Ombi/wwwroot/translations/sk.json | 1 + src/Ombi/wwwroot/translations/sv.json | 1 + 17 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/app.component.ts b/src/Ombi/ClientApp/src/app/app.component.ts index 0a63c0e51..dc5207164 100644 --- a/src/Ombi/ClientApp/src/app/app.component.ts +++ b/src/Ombi/ClientApp/src/app/app.component.ts @@ -50,7 +50,7 @@ export class AppComponent implements OnInit { private readonly identity: IdentityService, @Inject(DOCUMENT) private document: HTMLDocument) { - this.translate.addLangs(["en", "de", "fr", "da", "es", "it", "nl", "sk", "sv", "no", "pl", "ru", "pt"]); + this.translate.addLangs(["da", "de", "en", "es", "fr", "it", "hu", "nl", "no", "pl", "pt", "sk", "sv", "bg", "ru"]); if (this.authService.loggedIn()) { this.user = this.authService.claims(); @@ -78,7 +78,7 @@ export class AppComponent implements OnInit { // See if we can match the supported langs with the current browser lang const browserLang: string = translate.getBrowserLang(); - this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|ru|sk|sv|no|pl|pt/) ? browserLang : "en"); + this.translate.use(browserLang.match(/da|de|en|es|fr|it|hu|nl|no|pl|pt|sk|sv|bg|ru/) ? browserLang : "en"); } diff --git a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts index 64b594c58..21416d056 100644 --- a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts +++ b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.constants.ts @@ -1,15 +1,19 @@ export const AvailableLanguages: ILanguage[] = [ - { display: 'English', value: 'en' }, - { display: 'Français', value: 'fr' }, { display: 'Dansk', value: 'da' }, { display: 'Deutsch', value: 'de' }, - { display: 'Italiano', value: 'it' }, + { display: 'English', value: 'en' }, { display: 'Español', value: 'es' }, + { display: 'Français', value: 'fr' }, + { display: 'Italiano', value: 'it' }, + { display: 'Magyar', value: 'hu' }, { display: 'Nederlands', value: 'nl' }, { display: 'Norsk', value: 'no' }, - { display: 'Português (Brasil)', value: 'pt' }, { display: 'Polski', value: 'pl' }, + { display: 'Português (Brasil)', value: 'pt' }, + { display: 'Slovenčina', value: 'sk' }, { display: 'Svenska', value: 'sv' }, + { display: 'Български', value: 'bg' }, + { display: 'Русский', value: 'ru' }, ]; export interface ILanguage { diff --git a/src/Ombi/wwwroot/translations/bg.json b/src/Ombi/wwwroot/translations/bg.json index db3cd040a..d315206f3 100644 --- a/src/Ombi/wwwroot/translations/bg.json +++ b/src/Ombi/wwwroot/translations/bg.json @@ -196,6 +196,7 @@ "InProgressTitle": "Проблеми в процес на изпълнение", "ResolvedTitle": "Решени проблеми", "ColumnTitle": "Заглавие", + "Count": "Count", "Category": "Категория", "Status": "Състояние", "Details": "Подробности", diff --git a/src/Ombi/wwwroot/translations/da.json b/src/Ombi/wwwroot/translations/da.json index b4b6886ca..cf9a6af9d 100644 --- a/src/Ombi/wwwroot/translations/da.json +++ b/src/Ombi/wwwroot/translations/da.json @@ -188,6 +188,7 @@ "InProgressTitle": "Igangværende probemer", "ResolvedTitle": "Løste problemer", "ColumnTitle": "Titel", + "Count": "Count", "Category": "Kategori", "Status": "Status", "Details": "Detaljer", diff --git a/src/Ombi/wwwroot/translations/de.json b/src/Ombi/wwwroot/translations/de.json index ad93869c5..245d7039d 100644 --- a/src/Ombi/wwwroot/translations/de.json +++ b/src/Ombi/wwwroot/translations/de.json @@ -188,6 +188,7 @@ "InProgressTitle": "Probleme in bearbeitung", "ResolvedTitle": "Behobene Probleme", "ColumnTitle": "Titel", + "Count": "Count", "Category": "Kategorie", "Status": "Status", "Details": "Details", diff --git a/src/Ombi/wwwroot/translations/en.json b/src/Ombi/wwwroot/translations/en.json index e3d3aedd0..920190e2f 100644 --- a/src/Ombi/wwwroot/translations/en.json +++ b/src/Ombi/wwwroot/translations/en.json @@ -196,6 +196,7 @@ "InProgressTitle": "In Progress Issues", "ResolvedTitle": "Resolved Issues", "ColumnTitle": "Title", + "Count": "Count", "Category": "Category", "Status": "Status", "Details": "Details", diff --git a/src/Ombi/wwwroot/translations/es.json b/src/Ombi/wwwroot/translations/es.json index 99def393b..9a156c219 100644 --- a/src/Ombi/wwwroot/translations/es.json +++ b/src/Ombi/wwwroot/translations/es.json @@ -188,6 +188,7 @@ "InProgressTitle": "Problemas en curso", "ResolvedTitle": "Problemas resueltos", "ColumnTitle": "Título", + "Count": "Count", "Category": "Categoría", "Status": "Estado", "Details": "Detalles", diff --git a/src/Ombi/wwwroot/translations/fr.json b/src/Ombi/wwwroot/translations/fr.json index 85539eefe..c9f424ca5 100644 --- a/src/Ombi/wwwroot/translations/fr.json +++ b/src/Ombi/wwwroot/translations/fr.json @@ -188,6 +188,7 @@ "InProgressTitle": "Problèmes en cours", "ResolvedTitle": "Problèmes résolus", "ColumnTitle": "Titre", + "Count": "Count", "Category": "Catégorie", "Status": "Statut", "Details": "Détails", diff --git a/src/Ombi/wwwroot/translations/hu.json b/src/Ombi/wwwroot/translations/hu.json index 6e9e8fd7a..35574ffc9 100644 --- a/src/Ombi/wwwroot/translations/hu.json +++ b/src/Ombi/wwwroot/translations/hu.json @@ -188,6 +188,7 @@ "InProgressTitle": "Folyamatban lévő problémák", "ResolvedTitle": "Megoldott problémák", "ColumnTitle": "Cím", + "Count": "Count", "Category": "Kategória", "Status": "Állapot", "Details": "Részletek", diff --git a/src/Ombi/wwwroot/translations/it.json b/src/Ombi/wwwroot/translations/it.json index 0131b33b4..c07c5a0d1 100644 --- a/src/Ombi/wwwroot/translations/it.json +++ b/src/Ombi/wwwroot/translations/it.json @@ -188,6 +188,7 @@ "InProgressTitle": "Problemi in risoluzione", "ResolvedTitle": "Problemi risolti", "ColumnTitle": "Titolo", + "Count": "Count", "Category": "Categoria", "Status": "Stato", "Details": "Dettagli", diff --git a/src/Ombi/wwwroot/translations/nl.json b/src/Ombi/wwwroot/translations/nl.json index 8e0e66495..fdc5f8eeb 100644 --- a/src/Ombi/wwwroot/translations/nl.json +++ b/src/Ombi/wwwroot/translations/nl.json @@ -188,6 +188,7 @@ "InProgressTitle": "Problemen in Behandeling", "ResolvedTitle": "Opgeloste Problemen", "ColumnTitle": "Titel", + "Count": "Count", "Category": "Categorie", "Status": "Status", "Details": "Details", diff --git a/src/Ombi/wwwroot/translations/no.json b/src/Ombi/wwwroot/translations/no.json index c1168281a..8421b63a9 100644 --- a/src/Ombi/wwwroot/translations/no.json +++ b/src/Ombi/wwwroot/translations/no.json @@ -188,6 +188,7 @@ "InProgressTitle": "Mangler under behandling", "ResolvedTitle": "Løste mangler", "ColumnTitle": "Tittel", + "Count": "Count", "Category": "Kategori", "Status": "Status", "Details": "Detaljer", diff --git a/src/Ombi/wwwroot/translations/pl.json b/src/Ombi/wwwroot/translations/pl.json index 0beb36e0c..e3ee7d230 100644 --- a/src/Ombi/wwwroot/translations/pl.json +++ b/src/Ombi/wwwroot/translations/pl.json @@ -188,6 +188,7 @@ "InProgressTitle": "Problemy w trakcie", "ResolvedTitle": "Problemy rozwiązane", "ColumnTitle": "Tytuł", + "Count": "Count", "Category": "Kategoria", "Status": "Stan", "Details": "Szczegóły", diff --git a/src/Ombi/wwwroot/translations/pt.json b/src/Ombi/wwwroot/translations/pt.json index d273ce10f..8fe818bcc 100644 --- a/src/Ombi/wwwroot/translations/pt.json +++ b/src/Ombi/wwwroot/translations/pt.json @@ -188,6 +188,7 @@ "InProgressTitle": "In Progress Issues", "ResolvedTitle": "Resolved Issues", "ColumnTitle": "Title", + "Count": "Count", "Category": "Category", "Status": "Status", "Details": "Details", diff --git a/src/Ombi/wwwroot/translations/ru.json b/src/Ombi/wwwroot/translations/ru.json index 9139c438a..932b9ed59 100644 --- a/src/Ombi/wwwroot/translations/ru.json +++ b/src/Ombi/wwwroot/translations/ru.json @@ -188,6 +188,7 @@ "InProgressTitle": "Проблемы в процессе", "ResolvedTitle": "Решенные проблемы", "ColumnTitle": "Название", + "Count": "Количество", "Category": "Категория", "Status": "Статус", "Details": "Подробная информация", diff --git a/src/Ombi/wwwroot/translations/sk.json b/src/Ombi/wwwroot/translations/sk.json index 6ff1731be..4c9347582 100644 --- a/src/Ombi/wwwroot/translations/sk.json +++ b/src/Ombi/wwwroot/translations/sk.json @@ -188,6 +188,7 @@ "InProgressTitle": "Riešené problémy", "ResolvedTitle": "Vyiešené problémy", "ColumnTitle": "Názov", + "Count": "Count", "Category": "Kategória", "Status": "Stav", "Details": "Podrobnosti", diff --git a/src/Ombi/wwwroot/translations/sv.json b/src/Ombi/wwwroot/translations/sv.json index 206b0adb2..284e2a5ba 100644 --- a/src/Ombi/wwwroot/translations/sv.json +++ b/src/Ombi/wwwroot/translations/sv.json @@ -188,6 +188,7 @@ "InProgressTitle": "Pågående problem", "ResolvedTitle": "Lösta problem", "ColumnTitle": "Titel", + "Count": "Count", "Category": "Kategori", "Status": "Status", "Details": "Detaljer",