-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Romania to the list of locales * Fixing the `mix holidefs.download` task It was actually a problem in the compilation process. As we were raising an exception when there was no file for a given locale, which is the case when we just added a new locale to the list and we're trying to use `mix holidefs.download` to download that file. * Downloading the Romania holiday definitions file * Logging when a definition file is not present * Translating Romania's holidays
- Loading branch information
Showing
8 changed files
with
284 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ config :holidefs, | |
:ph, | ||
:pl, | ||
:pt, | ||
:ro, | ||
:rs, | ||
:ru, | ||
:se, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
# Romanian holiday definitions for the Ruby Holiday gem. | ||
# | ||
# Created: 2013-07-23 by Mihai Târnovan | ||
# Sources: | ||
# - http://ro.wikipedia.org/wiki/S%C4%83rb%C4%83tori_publice_%C3%AEn_Rom%C3%A2nia | ||
# - http://en.wikipedia.org/wiki/Public_holidays_in_Romania | ||
--- | ||
months: | ||
0: | ||
- name: Paștele - duminică | ||
regions: [ro] | ||
function: orthodox_easter(year) | ||
- name: Paștele - luni | ||
regions: [ro] | ||
function: orthodox_easter(year) | ||
function_modifier: 1 | ||
- name: Rusaliile - 50 | ||
regions: [ro] | ||
function: orthodox_easter(year) | ||
function_modifier: 49 | ||
- name: Rusaliile - 51 | ||
regions: [ro] | ||
function: orthodox_easter(year) | ||
function_modifier: 50 | ||
1: | ||
- name: Anul nou | ||
regions: [ro] | ||
mday: 1 | ||
- name: Anul nou | ||
regions: [ro] | ||
mday: 2 | ||
5: | ||
- name: Ziua muncii | ||
regions: [ro] | ||
mday: 1 | ||
8: | ||
- name: Adormirea Maicii Domnului | ||
regions: [ro] | ||
mday: 15 | ||
11: | ||
- name: Sfântul Apostol Andrei | ||
regions: [ro] | ||
mday: 30 | ||
12: | ||
- name: Ziua Națională | ||
regions: [ro] | ||
mday: 1 | ||
- name: Sărbătoarea Nașterii Domnului | ||
regions: [ro] | ||
mday: 25 | ||
- name: Sărbătoarea Nașterii Domnului | ||
regions: [ro] | ||
mday: 26 | ||
|
||
tests: | ||
- given: | ||
date: '1961-04-09' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Paștele - duminică" | ||
- given: | ||
date: '1961-04-10' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Paștele - luni" | ||
- given: | ||
date: '2013-05-05' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Paștele - duminică" | ||
- given: | ||
date: '2013-05-06' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Paștele - luni" | ||
- given: | ||
date: '2027-05-02' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Paștele - duminică" | ||
- given: | ||
date: '2027-05-03' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Paștele - luni" | ||
- given: | ||
date: '2012-06-04' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Rusaliile - 51" | ||
- given: | ||
date: '2013-06-23' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Rusaliile - 50" | ||
- given: | ||
date: '2013-06-24' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Rusaliile - 51" | ||
- given: | ||
date: '1986-06-22' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Rusaliile - 50" | ||
- given: | ||
date: '1986-06-23' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Rusaliile - 51" | ||
- given: | ||
date: '2009-01-01' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Anul nou" | ||
- given: | ||
date: '2014-01-02' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Anul nou" | ||
- given: | ||
date: '2009-05-01' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Ziua muncii" | ||
- given: | ||
date: '2012-08-15' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Adormirea Maicii Domnului" | ||
- given: | ||
date: '2013-11-30' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Sfântul Apostol Andrei" | ||
- given: | ||
date: '2013-12-01' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Ziua Națională" | ||
- given: | ||
date: '2013-12-25' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Sărbătoarea Nașterii Domnului" | ||
- given: | ||
date: '2013-12-26' | ||
regions: ["ro"] | ||
options: ["informal"] | ||
expect: | ||
name: "Sărbătoarea Nașterii Domnului" | ||
- given: | ||
date: '2013-07-23' | ||
regions: ["ro"] | ||
expect: | ||
holiday: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
## "msgid"s in this file come from POT (.pot) files. | ||
### | ||
### Do not add, change, or remove "msgid"s manually here as | ||
### they're tied to the ones in the corresponding POT file | ||
### (with the same domain). | ||
### | ||
### Use "mix gettext.extract --merge" or "mix gettext.merge" | ||
### to merge POT files into PO files. | ||
msgid "" | ||
msgstr "" | ||
"Language: en\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
msgid "Paștele - duminică" | ||
msgstr "Easter - Sunday" | ||
|
||
msgid "Paștele - luni" | ||
msgstr "Easter - Monday" | ||
|
||
msgid "Rusaliile - 50" | ||
msgstr "Pentecost - 50" | ||
|
||
msgid "Rusaliile - 51" | ||
msgstr "Pentecost - 51" | ||
|
||
msgid "Anul nou" | ||
msgstr "New Year" | ||
|
||
msgid "Ziua muncii" | ||
msgstr "Labor Day" | ||
|
||
msgid "Adormirea Maicii Domnului" | ||
msgstr "Assumption of the Virgin Mary" | ||
|
||
msgid "Sfântul Apostol Andrei" | ||
msgstr "Saint Andrew the Apostle" | ||
|
||
msgid "Ziua Națională" | ||
msgstr "National Day" | ||
|
||
msgid "Sărbătoarea Nașterii Domnului" | ||
msgstr "The Feast of the Nativity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by `mix holidefs.gettext.extract` | ||
# for the locale RO - Romania | ||
msgid "" | ||
msgstr "" | ||
|
||
|
||
msgid "Paștele - duminică" | ||
msgstr "" | ||
|
||
msgid "Paștele - luni" | ||
msgstr "" | ||
|
||
msgid "Rusaliile - 50" | ||
msgstr "" | ||
|
||
msgid "Rusaliile - 51" | ||
msgstr "" | ||
|
||
msgid "Anul nou" | ||
msgstr "" | ||
|
||
msgid "Ziua muncii" | ||
msgstr "" | ||
|
||
msgid "Adormirea Maicii Domnului" | ||
msgstr "" | ||
|
||
msgid "Sfântul Apostol Andrei" | ||
msgstr "" | ||
|
||
msgid "Ziua Națională" | ||
msgstr "" | ||
|
||
msgid "Sărbătoarea Nașterii Domnului" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters