From 0d4573e7233b168ac5bf80ada99b86924c92a0db Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 24 Jun 2016 11:56:00 +0100 Subject: [PATCH] Translated the search page #243 --- PlexRequests.UI/Modules/CultureModule.cs | 9 +- PlexRequests.UI/Resources/UI.Designer.cs | 270 +++++++++ PlexRequests.UI/Resources/UI.da.resx | 90 +++ PlexRequests.UI/Resources/UI.de.resx | 90 +++ PlexRequests.UI/Resources/UI.es.resx | 90 +++ PlexRequests.UI/Resources/UI.fr.resx | 90 +++ PlexRequests.UI/Resources/UI.it.resx | 3 + PlexRequests.UI/Resources/UI.nl.resx | 3 + PlexRequests.UI/Resources/UI.pt.resx | 90 +++ PlexRequests.UI/Resources/UI.resx | 90 +++ PlexRequests.UI/Resources/UI.sv.resx | 39 ++ PlexRequests.UI/Views/Search/Index.cshtml | 653 +++++++++++----------- PlexRequests.sln | 3 + 13 files changed, 1189 insertions(+), 331 deletions(-) diff --git a/PlexRequests.UI/Modules/CultureModule.cs b/PlexRequests.UI/Modules/CultureModule.cs index c5c8e40dd..7944f3b0e 100644 --- a/PlexRequests.UI/Modules/CultureModule.cs +++ b/PlexRequests.UI/Modules/CultureModule.cs @@ -38,7 +38,6 @@ namespace PlexRequests.UI.Modules { public class CultureModule : BaseModule { - private const string CookieName = "_culture"; public CultureModule(ISettingsService pr) : base("culture",pr) { Get["/"] = x => SetCulture(); @@ -53,18 +52,18 @@ public RedirectResponse SetCulture() culture = CultureHelper.GetImplementedCulture(culture); var outCookie = string.Empty; - if (Cookies.TryGetValue(CookieName, out outCookie)) + if (Cookies.TryGetValue(CultureCookieName, out outCookie)) { - Cookies[CookieName] = culture; + Cookies[CultureCookieName] = culture; } else { - Cookies.Add(CookieName, culture); + Cookies.Add(CultureCookieName, culture); } var cookie = Cookies["_culture"]; var response = Context.GetRedirect(returnUrl); - response.WithCookie(CookieName, cookie ?? culture, DateTime.Now.AddYears(1)); + response.WithCookie(CultureCookieName, cookie ?? culture, DateTime.Now.AddYears(1)); return response; } diff --git a/PlexRequests.UI/Resources/UI.Designer.cs b/PlexRequests.UI/Resources/UI.Designer.cs index 4e14e9f44..75e66c20b 100644 --- a/PlexRequests.UI/Resources/UI.Designer.cs +++ b/PlexRequests.UI/Resources/UI.Designer.cs @@ -60,6 +60,87 @@ internal UI() { } } + /// + /// Looks up a localized string similar to Close. + /// + public static string Common_Close { + get { + return ResourceManager.GetString("Common_Close", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save. + /// + public static string Common_Save { + get { + return ResourceManager.GetString("Common_Save", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save Changes. + /// + public static string Issues_Modal_Save { + get { + return ResourceManager.GetString("Issues_Modal_Save", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add an issue. + /// + public static string Issues_Modal_Title { + get { + return ResourceManager.GetString("Issues_Modal_Title", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No Subtitles. + /// + public static string Issues_NoSubs { + get { + return ResourceManager.GetString("Issues_NoSubs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Other. + /// + public static string Issues_Other { + get { + return ResourceManager.GetString("Issues_Other", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Playback Issues. + /// + public static string Issues_Playback { + get { + return ResourceManager.GetString("Issues_Playback", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Wrong Audio. + /// + public static string Issues_WrongAudio { + get { + return ResourceManager.GetString("Issues_WrongAudio", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Wrong Content. + /// + public static string Issues_WrongContent { + get { + return ResourceManager.GetString("Issues_WrongContent", resourceCulture); + } + } + /// /// Looks up a localized string similar to Something went wrong!. /// @@ -249,6 +330,195 @@ public static string Layout_UpdateAvailablePart2 { } } + /// + /// Looks up a localized string similar to Albums. + /// + public static string Search_Albums { + get { + return ResourceManager.GetString("Search_Albums", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to All Seasons. + /// + public static string Search_AllSeasons { + get { + return ResourceManager.GetString("Search_AllSeasons", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Available. + /// + public static string Search_Available { + get { + return ResourceManager.GetString("Search_Available", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Coming Soon. + /// + public static string Search_ComingSoon { + get { + return ResourceManager.GetString("Search_ComingSoon", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Country. + /// + public static string Search_Country { + get { + return ResourceManager.GetString("Search_Country", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to First Season. + /// + public static string Search_FirstSeason { + get { + return ResourceManager.GetString("Search_FirstSeason", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to In Theaters. + /// + public static string Search_InTheaters { + get { + return ResourceManager.GetString("Search_InTheaters", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Latest Season. + /// + public static string Search_LatestSeason { + get { + return ResourceManager.GetString("Search_LatestSeason", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Seasons. + /// + public static string Search_Modal_SeasonsTitle { + get { + return ResourceManager.GetString("Search_Modal_SeasonsTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Movies. + /// + public static string Search_Movies { + get { + return ResourceManager.GetString("Search_Movies", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Want to watch something that is not currently on Plex?! No problem! Just search for it below and request it!. + /// + public static string Search_Paragraph { + get { + return ResourceManager.GetString("Search_Paragraph", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Report Issue. + /// + public static string Search_ReportIssue { + get { + return ResourceManager.GetString("Search_ReportIssue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Request. + /// + public static string Search_Request { + get { + return ResourceManager.GetString("Search_Request", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Requested. + /// + public static string Search_Requested { + get { + return ResourceManager.GetString("Search_Requested", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Season. + /// + public static string Search_Season { + get { + return ResourceManager.GetString("Search_Season", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select . + /// + public static string Search_SelectSeason { + get { + return ResourceManager.GetString("Search_SelectSeason", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Send me a notification when items I have requested have been added. + /// + public static string Search_SendNotificationText { + get { + return ResourceManager.GetString("Search_SendNotificationText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Suggestions. + /// + public static string Search_Suggestions { + get { + return ResourceManager.GetString("Search_Suggestions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Search. + /// + public static string Search_Title { + get { + return ResourceManager.GetString("Search_Title", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Track Count. + /// + public static string Search_TrackCount { + get { + return ResourceManager.GetString("Search_TrackCount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TV Shows. + /// + public static string Search_TvShows { + get { + return ResourceManager.GetString("Search_TvShows", resourceCulture); + } + } + /// /// Looks up a localized string similar to Want to watch a movie or tv show but it's not currently on Plex? /// Login below with your Plex.tv username and password!. diff --git a/PlexRequests.UI/Resources/UI.da.resx b/PlexRequests.UI/Resources/UI.da.resx index 93ca45995..ec92b6c9c 100644 --- a/PlexRequests.UI/Resources/UI.da.resx +++ b/PlexRequests.UI/Resources/UI.da.resx @@ -201,4 +201,94 @@ Hollandsk + + Film + + + TV-shows + + + Album + + + Ønsker at se noget, der ikke i øjeblikket på Plex ?! Intet problem! Bare søge efter det nedenfor og anmode den ! + + + Søg + + + Forslag + + + Kommer snart + + + Teatre + + + Send mig en meddelelse, når emner, jeg har anmodet er blevet tilføjet + + + Gem + + + Tilgængelig + + + Forespørgsel sendt + + + Forespørgsel + + + Alle sæsoner + + + Første sæson + + + Sidste sæson + + + Vælg + + + Rapport Issue + + + Forkert lyd + + + Undertekster + + + Forkert indhold + + + Playback Issues + + + Andet + + + Track Count! + + + Land + + + Årstid + + + Luk + + + Tilføj et problem! + + + Gem ændringer + + + Sæson + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.de.resx b/PlexRequests.UI/Resources/UI.de.resx index 6c3cd2089..95ccca45d 100644 --- a/PlexRequests.UI/Resources/UI.de.resx +++ b/PlexRequests.UI/Resources/UI.de.resx @@ -201,4 +201,94 @@ Niederländisch + + Filme + + + SERIEN + + + Alben + + + Möchten Sie etwas zu sehen, die derzeit nicht auf Plex ist ?! Kein Problem! Suchen Sie einfach nach unten und es es wünschen !! + + + Suche! + + + Vorschläge + + + Demnächst + + + Theatern + + + Senden Sie mir eine Benachrichtigung, wenn Gegenstände, die ich angefordert wurden hinzugefügt! + + + Speichern! + + + V ERFÜGBAR + + + angefragt + + + Angefordert + + + alle Saisonen + + + Erste Saison! + + + Neueste Saison! + + + Auswählen + + + Report Ausgabe! + + + Falsche Audio! + + + Keine Untertitel + + + Falscher Inhaltstyp. + + + Wiedergabe-Probleme! + + + Sonstige + + + Track-Count! + + + Land + + + Jahreszeiten! + + + Schließen + + + Fügen Sie ein Problem! + + + Änderungen speichern + + + Staffel + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.es.resx b/PlexRequests.UI/Resources/UI.es.resx index 7a37c7acc..1ef843b4d 100644 --- a/PlexRequests.UI/Resources/UI.es.resx +++ b/PlexRequests.UI/Resources/UI.es.resx @@ -201,4 +201,94 @@ Holandés + + Películas + + + Serie de TV + + + Álbumes + + + ¿Quieres ver algo que no se encuentra actualmente en Plex ?! ¡No hay problema! Sólo la búsqueda de abajo y que solicitarlo !! + + + ¡Buscar! + + + Sugerencias + + + Muy Pronto! + + + ¡En los cines! + + + Envíame una notificación cuando se han añadido elementos que he solicitado! + + + Ahorra! + + + disponible + + + ¡Pedido! + + + Solicitud + + + Todas las temporadas + + + Primera Temporada! + + + Última estación! + + + Seleccionar + + + Informe del problema! + + + Audio mal! + + + Subtitles + + + Contenido incorrecto! + + + Problemas de reproducción! + + + Otro + + + El número de pistas! + + + País + + + Temporadas + + + Cerrar + + + Añadir un problema! + + + Guardar cambios + + + Temporada + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.fr.resx b/PlexRequests.UI/Resources/UI.fr.resx index 0f8410740..b97fa794d 100644 --- a/PlexRequests.UI/Resources/UI.fr.resx +++ b/PlexRequests.UI/Resources/UI.fr.resx @@ -201,4 +201,94 @@ Néerlandais + + Films + + + Émissions de télévision! + + + Albums + + + Vous voulez regarder quelque chose qui est pas actuellement sur Plex ?! Pas de problème! Il suffit de chercher ci-dessous et demander !! + + + Chercher + + + Suggestions + + + Bientôt disponible ! + + + Théâtre + + + Envoyez-moi une notification lorsque des éléments que j'ai demandés ont été ajoutés! + + + Enregistrer + + + Disponible + + + Demandé! + + + Requête + + + Saisons + + + Première saison! + + + Dernière saison! + + + Sélectionner + + + Formulaire de rapport d'incident + + + Mauvais Audio! + + + Pas de sous-titres + + + Contenu erroné! + + + Problèmes de lecture! + + + Autre + + + Nombre de pistes! + + + Pays + + + Saisons + + + Fermer + + + Ajouter une question! + + + Sauvegarder les modifications + + + SAISON + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.it.resx b/PlexRequests.UI/Resources/UI.it.resx index a1fa4d50a..f443cc5e5 100644 --- a/PlexRequests.UI/Resources/UI.it.resx +++ b/PlexRequests.UI/Resources/UI.it.resx @@ -201,4 +201,7 @@ Olandese + + Cerca! + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.nl.resx b/PlexRequests.UI/Resources/UI.nl.resx index 4c9d25ea6..ae0e1dc88 100644 --- a/PlexRequests.UI/Resources/UI.nl.resx +++ b/PlexRequests.UI/Resources/UI.nl.resx @@ -201,4 +201,7 @@ Dutch + + Zoeken! + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.pt.resx b/PlexRequests.UI/Resources/UI.pt.resx index 822d7eea6..fba452b72 100644 --- a/PlexRequests.UI/Resources/UI.pt.resx +++ b/PlexRequests.UI/Resources/UI.pt.resx @@ -201,4 +201,94 @@ Holandês + + Filmes + + + Todas as Series de TV + + + Álbuns + + + Quer assistir algo que não está atualmente em Plex ?! Sem problemas! Basta procurá-lo abaixo e solicitá-lo !! + + + Buscar + + + Sugestões + + + Em breve! + + + somente nos cinemas + + + Envie-me uma notificação quando os itens I solicitados foram adicionados! + + + Salvar + + + Disponível! + + + SOLICITADOS + + + SOLICITAÇÃO + + + Todas as temporadas + + + Primeira Temporada! + + + Últimas estação! + + + Selecione + + + REGISTRANDO A RETIRADA (BAIXA) + + + Áudio errado! + + + Sem legendas! + + + Conteúdo errado! + + + Problemas de reprodução! + + + Outra! + + + Contagem pista! + + + País + + + Temporadas + + + Fechar + + + Adicionar um problema! + + + Salvar alterações + + + Temporada + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.resx b/PlexRequests.UI/Resources/UI.resx index bc954b5ea..41c738a1d 100644 --- a/PlexRequests.UI/Resources/UI.resx +++ b/PlexRequests.UI/Resources/UI.resx @@ -182,4 +182,94 @@ Dutch + + Movies + + + TV Shows + + + Albums + + + Want to watch something that is not currently on Plex?! No problem! Just search for it below and request it! + + + Search + + + Suggestions + + + Coming Soon + + + In Theaters + + + Send me a notification when items I have requested have been added + + + Save + + + Available + + + Requested + + + Request + + + All Seasons + + + First Season + + + Latest Season + + + Select + + + Report Issue + + + Wrong Audio + + + No Subtitles + + + Wrong Content + + + Playback Issues + + + Other + + + Track Count + + + Country + + + Seasons + + + Close + + + Add an issue + + + Save Changes + + + Season + \ No newline at end of file diff --git a/PlexRequests.UI/Resources/UI.sv.resx b/PlexRequests.UI/Resources/UI.sv.resx index ae512228a..bd2add38a 100644 --- a/PlexRequests.UI/Resources/UI.sv.resx +++ b/PlexRequests.UI/Resources/UI.sv.resx @@ -201,4 +201,43 @@ dutch + + Fråga + + + Filmer + + + Tv program! + + + Album + + + Vill titta på något som inte är närvarande på Plex ?! Inga problem! Bara söka efter den nedan och begär det !! + + + Sök! + + + Förslag + + + Kommer snart! + + + Teater + + + Skicka mig ett meddelande när objekt jag har begärt har lagts till! + + + Spara + + + Tillgänglig + + + Begärd + \ No newline at end of file diff --git a/PlexRequests.UI/Views/Search/Index.cshtml b/PlexRequests.UI/Views/Search/Index.cshtml index 6a5be0006..b1c401622 100644 --- a/PlexRequests.UI/Views/Search/Index.cshtml +++ b/PlexRequests.UI/Views/Search/Index.cshtml @@ -1,326 +1,327 @@ -@using PlexRequests.UI.Helpers -@{ - var baseUrl = Html.GetBaseUrl(); - var url = string.Empty; - if (!string.IsNullOrEmpty(baseUrl.ToHtmlString())) - { - url = "/" + baseUrl.ToHtmlString(); - } -} -
-

Search

-

Want to watch something that is not currently on Plex?! No problem! Just search for it below and request it!

-
- - - - - - -
- @if (Model.SearchForMovies) - { - -
- -
-
- -
-
-
- } - - - @if (Model.SearchForTvShows) - { - -
-
- -
- -
-
-
-
- -
-
-
- } - - @if (Model.SearchForMusic) - { - -
-
- -
- -
-
-
-
- -
-
-
- } - - -
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
-
-
-
-
-
- - - - - - - - - - - - - - - -@Html.LoadSearchAssets() +@using PlexRequests.UI.Helpers +@using PlexRequests.UI.Resources +@{ + var baseUrl = Html.GetBaseUrl(); + var url = string.Empty; + if (!string.IsNullOrEmpty(baseUrl.ToHtmlString())) + { + url = "/" + baseUrl.ToHtmlString(); + } +} +
+

@UI.Seach_SearchTitle

+

@UI.Search_Paragraph

+
+ + + + + + +
+ @if (Model.SearchForMovies) + { + + + } + + + @if (Model.SearchForTvShows) + { + +
+
+ +
+ +
+
+
+
+ +
+
+
+ } + + @if (Model.SearchForMusic) + { + +
+
+ +
+ +
+
+
+
+ +
+
+
+ } + + +
+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+ + + + + + + + + + + + + + + +@Html.LoadSearchAssets() diff --git a/PlexRequests.sln b/PlexRequests.sln index 14ef8a36e..0ad8e6cb9 100644 --- a/PlexRequests.sln +++ b/PlexRequests.sln @@ -99,4 +99,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + RESX_PrefixTranslations = True + EndGlobalSection EndGlobal