Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ ExpressionDescriptor.GetDescription("0-10 11 * * *", new Options { Locale = "de"
| Language | Locale | Contributor |
| --- | --- | --- |
| English | `en` | [Brady Holt](https://github.com/bradymholt) |
| Arabic | `ar` | [ Mohamed A.Ezzat ](https://github.com/MohamedAhmedEz) |
| Chinese (Simplified) | `zh-Hans` (`zh-CN`) | [Star Peng](https://github.com/starpeng) |
| Chinese (Traditional) | `zh-Hant` (`zh-TW`) | [Ricky Chiang](https://github.com/metavige) |
| Czech | `cs` | [Jirka](https://github.com/Betacart) |
Expand Down
1 change: 1 addition & 0 deletions demo/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
private static readonly (string Code, string Name)[] Languages =
{
("en", "English"),
("ar", "Arabic"),
("zh-Hans", "Chinese (Simplified)"),
("zh-Hant", "Chinese (Traditional)"),
("cs", "Czech"),
Expand Down
2 changes: 1 addition & 1 deletion lib/CronExpressionDescriptor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Version>3.7.0</Version>
<PackageReleaseNotes>See https://github.com/bradymholt/cron-expression-descriptor/releases for release notes</PackageReleaseNotes>
<Authors>Brady Holt</Authors>
<Description>A library that converts cron expressions into human readable descriptions. Supports multiple languages including: English, Chinese (Simplified and Traditional), Czech, Danish, Dutch, Finnish, French, German, Greek, Hebrew, Hungarian, Italian, Japanese, Kazakh, Korean, Kyrgyz, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, Slovenian, Spanish, Swedish, Turkish, Ukrainian and Vietnamese.</Description>
<Description>A library that converts cron expressions into human readable descriptions. Supports multiple languages including: English, Arabic, Chinese (Simplified and Traditional), Czech, Danish, Dutch, Finnish, French, German, Greek, Hebrew, Hungarian, Italian, Japanese, Kazakh, Korean, Kyrgyz, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, Slovenian, Spanish, Swedish, Turkish, Ukrainian and Vietnamese.</Description>
<PackageProjectUrl>https://github.com/bradymholt/cron-expression-descriptor</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Copyright (c) 2017 Brady Holt</Copyright>
Expand Down
320 changes: 320 additions & 0 deletions lib/Resources.ar.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,320 @@
<?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="EveryMinute" xml:space="preserve">
<value>كل دقيقة</value>
<comment>EveryMinute description</comment>
</data>
<data name="EveryHour" xml:space="preserve">
<value>كل ساعة</value>
<comment>EveryHour description</comment>
</data>
<data name="AnErrorOccurredWhenGeneratingTheExpressionD" xml:space="preserve">
<value>حدث خطأ أثناء إنشاء وصف التعبير. يرجى التحقق من صيغة تعبير cron.</value>
<comment>AnErrorOccurredWhenGeneratingTheExpressionD description</comment>
</data>
<data name="AtSpace" xml:space="preserve">
<value>عند </value>
<comment>At description</comment>
</data>
<data name="EveryMinuteBetweenX0AndX1" xml:space="preserve">
<value>كل دقيقة من {0} إلى {1}</value>
<comment>EveryMinuteBetweenX0AndX1 description</comment>
</data>
<data name="At" xml:space="preserve">
<value>عند</value>
<comment>At description</comment>
</data>
<data name="SpaceAnd" xml:space="preserve">
<value> و</value>
<comment>And description</comment>
</data>
<data name="EverySecond" xml:space="preserve">
<value>كل ثانية</value>
<comment>EverySecond description</comment>
</data>
<data name="EveryX0Seconds" xml:space="preserve">
<value>كل {0} ثانية</value>
<comment>EveryX0Seconds description</comment>
</data>
<data name="SecondsX0ThroughX1PastTheMinute" xml:space="preserve">
<value>الثواني من {0} إلى {1} من بداية الدقيقة</value>
<comment>SecondsX0ThroughX1PastTheMinute description</comment>
</data>
<data name="AtX0SecondsPastTheMinute" xml:space="preserve">
<value>عند الثانية {0} من بداية الدقيقة</value>
<comment>AtX0SecondsPastTheMinute description</comment>
</data>
<data name="EveryX0Minutes" xml:space="preserve">
<value>كل {0} دقيقة</value>
<comment>EveryX0Minutes description</comment>
</data>
<data name="MinutesX0ThroughX1PastTheHour" xml:space="preserve">
<value>الدقائق من {0} إلى {1} من بداية الساعة</value>
<comment>MinutesX0ThroughX1PastTheHour description</comment>
</data>
<data name="AtX0MinutesPastTheHour" xml:space="preserve">
<value>عند الدقيقة {0} من بداية الساعة</value>
<comment>AtX0MinutesPastTheHour description</comment>
</data>
<data name="EveryX0Hours" xml:space="preserve">
<value>كل {0} ساعة</value>
<comment>EveryX0Hours description</comment>
</data>
<data name="BetweenX0AndX1" xml:space="preserve">
<value>من {0} إلى {1}</value>
<comment>BetweenX0AndX1 description</comment>
</data>
<data name="AtX0" xml:space="preserve">
<value>عند {0}</value>
<comment>AtX0 description</comment>
</data>
<data name="CommaEveryDay" xml:space="preserve">
<value>، كل يوم</value>
<comment>CommaEveryDay description</comment>
</data>
<data name="CommaEveryX0DaysOfTheWeek" xml:space="preserve">
<value>، كل {0} من أيام الأسبوع</value>
<comment>EveryX0DaysOfTheWeek description</comment>
</data>
<data name="CommaX0ThroughX1" xml:space="preserve">
<value>, {0} حتى {1}</value>
<comment>X0ThroughX1 description - ASCII comma required, code strips ", "</comment>
</data>
<data name="First" xml:space="preserve">
<value>أول</value>
<comment>First description</comment>
</data>
<data name="Second" xml:space="preserve">
<value>ثاني</value>
<comment>Second description</comment>
</data>
<data name="Third" xml:space="preserve">
<value>ثالث</value>
<comment>Third description</comment>
</data>
<data name="Fourth" xml:space="preserve">
<value>رابع</value>
<comment>Fourth description</comment>
</data>
<data name="Fifth" xml:space="preserve">
<value>خامس</value>
<comment>Fifth description</comment>
</data>
<data name="CommaOnThe" xml:space="preserve">
<value>, في </value>
<comment>OnThe description - ASCII comma required, code uses TrimStart(',')</comment>
</data>
<data name="SpaceX0OfTheMonth" xml:space="preserve">
<value> {0} من الشهر</value>
<comment>X0OfTheMonth description</comment>
</data>
<data name="CommaOnTheLastX0OfTheMonth" xml:space="preserve">
<value>, في آخر {0} من الشهر</value>
<comment>OnTheLastX0OfTheMonth description - ASCII comma required, code uses TrimStart(',')</comment>
</data>
<data name="CommaOnlyOnX0" xml:space="preserve">
<value>, فقط يوم {0}</value>
<comment>OnlyOnX0 description - ASCII comma required, code uses TrimStart(',')</comment>
</data>
<data name="CommaOrOnX0" xml:space="preserve">
<value>, أو يوم {0}</value>
<comment>CommaOrOnX0 description - used when both day-of-month and day-of-week are specified (OR logic). ASCII comma required, code uses TrimStart(',')</comment>
</data>
<data name="CommaEveryX0Months" xml:space="preserve">
<value>، كل {0} شهر</value>
<comment>EveryX0Months description</comment>
</data>
<data name="CommaEveryX0Weeks" xml:space="preserve">
<value>، كل {0} أسبوع</value>
<comment>CommaEveryX0Weeks description</comment>
</data>
<data name="CommaOnlyInX0" xml:space="preserve">
<value>, فقط في {0}</value>
<comment>CommaOnlyInX0 description - ASCII comma required</comment>
</data>
<data name="CommaOnTheLastDayOfTheMonth" xml:space="preserve">
<value>، في آخر يوم من الشهر</value>
<comment>CommaOnTheLastDayOfTheMonth description</comment>
</data>
<data name="CommaOnTheLastWeekdayOfTheMonth" xml:space="preserve">
<value>، في آخر يوم عمل من الشهر</value>
<comment>OnTheLastWeekdayOfTheMonth description</comment>
</data>
<data name="FirstWeekday" xml:space="preserve">
<value>أول يوم عمل</value>
<comment>FirstWeekday description</comment>
</data>
<data name="WeekdayNearestDayX0" xml:space="preserve">
<value>يوم العمل الأقرب إلى يوم {0}</value>
<comment>WeekdayNearestDayX0 description</comment>
</data>
<data name="CommaOnTheX0OfTheMonth" xml:space="preserve">
<value>، في {0} من الشهر</value>
<comment>CommaOnTheX0OfTheMonth description</comment>
</data>
<data name="CommaEveryX0Days" xml:space="preserve">
<value>, كل {0} يوم</value>
<comment>CommaEveryX0Days description - ASCII comma required</comment>
</data>
<data name="CommaBetweenDayX0AndX1OfTheMonth" xml:space="preserve">
<value>, من اليوم {0} إلى {1} من الشهر</value>
<comment>BetweenDayX0AndX1 description - ASCII comma required, code checks StartsWith(", ")</comment>
</data>
<data name="CommaOnDayX0OfTheMonth" xml:space="preserve">
<value>، في اليوم {0} من الشهر</value>
<comment>CommaOnDayX0OfTheMonth description</comment>
</data>
<data name="SpaceAndSpace" xml:space="preserve">
<value> و</value>
<comment>And description</comment>
</data>
<data name="CommaEveryMinute" xml:space="preserve">
<value>, كل دقيقة</value>
<comment>CommaEveryMinute1 description - ASCII comma required, TransformVerbosity matches exact text</comment>
</data>
<data name="CommaEveryHour" xml:space="preserve">
<value>, كل ساعة</value>
<comment>CommaEveryHour description - ASCII comma required, TransformVerbosity matches exact text</comment>
</data>
<data name="CommaEveryX0Years" xml:space="preserve">
<value>، كل {0} سنة</value>
<comment>CommaEveryX0Years description</comment>
</data>
<data name="CommaStartingX0" xml:space="preserve">
<value>، بدءاً من {0}</value>
<comment>CommaStartingX0 description</comment>
</data>
<data name="AMPeriod" xml:space="preserve">
<value>صباحاً</value>
<comment>AM / In the morning</comment>
</data>
<data name="PMPeriod" xml:space="preserve">
<value>مساءً</value>
<comment>PM / In the afternoon</comment>
</data>
<data name="CommaDaysBeforeTheLastDayOfTheMonth" xml:space="preserve">
<value>، {0} يوم قبل آخر يوم من الشهر</value>
<comment>CommaDaysBeforeTheLastDayOfTheMonth description</comment>
</data>
<data name="CommaOnlyInYearX0" xml:space="preserve">
<value>، فقط في {0}</value>
<comment>CommaOnlyInYearX0 description</comment>
</data>
</root>
Loading
Loading