From 69cb8a17aba2f77a0cfc225b41879bdab2a32b9b Mon Sep 17 00:00:00 2001 From: Jamie Date: Fri, 27 Jul 2018 23:27:52 +0100 Subject: [PATCH] Added Brazillian Portuguese as a language and also Polish --- src/Ombi/ClientApp/app/app.component.html | 6 ++++++ src/Ombi/ClientApp/app/app.component.ts | 4 ++-- src/Ombi/wwwroot/translations/en.json | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Ombi/ClientApp/app/app.component.html b/src/Ombi/ClientApp/app/app.component.html index ef6e3d461..787bafddc 100644 --- a/src/Ombi/ClientApp/app/app.component.html +++ b/src/Ombi/ClientApp/app/app.component.html @@ -134,6 +134,12 @@
  • +
  • + +
  • +
  • + +
  • diff --git a/src/Ombi/ClientApp/app/app.component.ts b/src/Ombi/ClientApp/app/app.component.ts index 182f49226..2bfb8c40b 100644 --- a/src/Ombi/ClientApp/app/app.component.ts +++ b/src/Ombi/ClientApp/app/app.component.ts @@ -40,13 +40,13 @@ export class AppComponent implements OnInit { __webpack_public_path__ = base + "/dist/"; } - this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no"]); + this.translate.addLangs(["en", "de", "fr","da","es","it","nl","sv","no", "po", "pt-br"]); // this language will be used as a fallback when a translation isn't found in the current language this.translate.setDefaultLang("en"); // 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|sv|no/) ? browserLang : "en"); + this.translate.use(browserLang.match(/en|fr|da|de|es|it|nl|sv|no|po|pt-br/) ? browserLang : "en"); } public ngOnInit() { diff --git a/src/Ombi/wwwroot/translations/en.json b/src/Ombi/wwwroot/translations/en.json index 289db8be5..b70e065cb 100644 --- a/src/Ombi/wwwroot/translations/en.json +++ b/src/Ombi/wwwroot/translations/en.json @@ -65,7 +65,9 @@ "Italian": "Italian", "Danish": "Danish", "Dutch": "Dutch", - "Norwegian":"Norwegian" + "Norwegian":"Norwegian", + "BrazillianPortuguese": "Brazillian Portuguese", + "Polish":"Polish" }, "OpenMobileApp":"Open Mobile App", "RecentlyAdded":"Recently Added"