Skip to content

Commit

Permalink
Added Dutch language #243
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Jun 24, 2016
1 parent bcdb612 commit 635fc03
Show file tree
Hide file tree
Showing 13 changed files with 242 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PlexRequests.UI/Helpers/CultureHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace PlexRequests.UI.Helpers
{
public class CultureHelper
{
private static readonly List<string> ValidCultures = new List<string> { "en-US", "de-DE", "fr-FR", "es-ES", "de", "en", "fr", "es","da","sv","it" };
private static readonly List<string> ValidCultures = new List<string> { "en-US", "de-DE", "fr-FR", "es-ES", "de", "en", "fr", "es","da","sv","it","nl" };

private static readonly List<string> ImplimentedCultures = new List<string> {
"en-US",
Expand All @@ -43,7 +43,8 @@ public class CultureHelper
"es",
"da",
"sv",
"it"
"it",
"nl"
};

/// <summary>
Expand Down
1 change: 1 addition & 0 deletions PlexRequests.UI/PlexRequests.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@
<EmbeddedResource Include="Resources\UI.es.resx" />
<EmbeddedResource Include="Resources\UI.fr.resx" />
<EmbeddedResource Include="Resources\UI.it.resx" />
<EmbeddedResource Include="Resources\UI.nl.resx" />
<EmbeddedResource Include="Resources\UI.pt.resx" />
<EmbeddedResource Include="Resources\UI.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
Expand Down
9 changes: 9 additions & 0 deletions PlexRequests.UI/Resources/UI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.da.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>her</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Hollandsk</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>hier</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Niederländisch</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>aquí</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Holandés</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>ici</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Néerlandais</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.it.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>Here</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Olandese</value>
</data>
</root>
204 changes: 204 additions & 0 deletions PlexRequests.UI/Resources/UI.nl.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="UserLogin_Title" xml:space="preserve">
<value>Inloggen</value>
</data>
<data name="UserLogin_Paragraph" xml:space="preserve">
<value>Wilt u een film of tv-show te kijken, maar het is op het moment niet op Plex? Log hieronder in met uw gebruikersnaam en wachtwoord Plex.tv !!</value>
</data>
<data name="UserLogin_Paragraph_SpanHover" xml:space="preserve">
<value>Uw login gegevens worden alleen gebruikt om uw account te verifiëren Plex.!</value>
</data>
<data name="UserLogin_Username" xml:space="preserve">
<value>Plex.tv Gebruikersnaam!</value>
</data>
<data name="UserLogin_Username_Placeholder" xml:space="preserve">
<value>Gebruikersnaam</value>
</data>
<data name="UserLogin_Password" xml:space="preserve">
<value>Wachtwoord</value>
</data>
<data name="UserLogin_SignIn" xml:space="preserve">
<value>Aanmelden!</value>
</data>
<data name="Javascript_SomethingWentWrong" xml:space="preserve">
<value>Er is iets fout gegaan</value>
</data>
<data name="Javascript_Success" xml:space="preserve">
<value>Succes</value>
</data>
<data name="Layout_Title" xml:space="preserve">
<value>Plex Requests</value>
</data>
<data name="Layout_Search" xml:space="preserve">
<value>Zoeken!</value>
</data>
<data name="Layout_Requests" xml:space="preserve">
<value>Verzoeken</value>
</data>
<data name="Layout_Issues" xml:space="preserve">
<value>UItgaves</value>
</data>
<data name="Layout_Donate" xml:space="preserve">
<value>Doneren.</value>
</data>
<data name="Layout_Admin" xml:space="preserve">
<value>Admin</value>
</data>
<data name="Layout_Settings" xml:space="preserve">
<value>Instellingen</value>
</data>
<data name="Layout_ChangePassword" xml:space="preserve">
<value>Wachtwoord wijzigen</value>
</data>
<data name="Layout_Logout" xml:space="preserve">
<value>Uitloggen</value>
</data>
<data name="Layout_UpdateAvailablePart1" xml:space="preserve">
<value>Er is een nieuwe update beschikbaar is! Klik!</value>
</data>
<data name="Layout_English" xml:space="preserve">
<value>English</value>
</data>
<data name="Layout_Spanish" xml:space="preserve">
<value>Spanish</value>
</data>
<data name="Layout_German" xml:space="preserve">
<value>German</value>
</data>
<data name="Layout_Danish" xml:space="preserve">
<value>Koffiebroodje</value>
</data>
<data name="Layout_Portuguese" xml:space="preserve">
<value>Portuguese</value>
</data>
<data name="Layout_Swedish" xml:space="preserve">
<value>Zweeds</value>
</data>
<data name="Layout_Italian" xml:space="preserve">
<value>Italian</value>
</data>
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>samples/testers</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Dutch</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.pt.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>aqui</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Holandês</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.resx
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>Here!</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>Dutch</value>
</data>
</root>
3 changes: 3 additions & 0 deletions PlexRequests.UI/Resources/UI.sv.resx
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,7 @@
<data name="Layout_UpdateAvailablePart2" xml:space="preserve">
<value>Här.”</value>
</data>
<data name="Layout_Dutch" xml:space="preserve">
<value>dutch</value>
</data>
</root>
1 change: 1 addition & 0 deletions PlexRequests.UI/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-language" aria-hidden="true"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="@url/culture?l=en&u=@Context.Request.Path">@UI.Layout_English</a></li>
<li><a href="@url/culture?l=nl&u=@Context.Request.Path">@UI.Layout_Dutch</a></li>
<li><a href="@url/culture?l=es&u=@Context.Request.Path">@UI.Layout_Spanish</a></li>
<li><a href="@url/culture?l=de&u=@Context.Request.Path">@UI.Layout_German</a></li>
<li><a href="@url/culture?l=da&u=@Context.Request.Path">@UI.Layout_Danish</a></li>
Expand Down

0 comments on commit 635fc03

Please sign in to comment.