Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing some translations #53

Open
wants to merge 4 commits into
base: romania
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions lib/holidefs/definition.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule Holidefs.Definition do
alias Holidefs.Definition
alias Holidefs.Definition.Rule

require Logger

defstruct [:code, :name, rules: []]

@type t :: %Definition{
Expand Down Expand Up @@ -54,6 +56,7 @@ defmodule Holidefs.Definition do
}

{:error, _} ->
Logger.warn("Definition file for #{code} not found.")
nil
end
end
Expand Down
174 changes: 174 additions & 0 deletions priv/calendars/definitions/ro.yaml
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
12 changes: 0 additions & 12 deletions priv/gettext/bg.pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,39 @@ msgstr ""
msgid "Разпети петък"
msgstr ""


msgid "Велика събота"
msgstr ""


msgid "Възкресение Христово. Великден"
msgstr ""


msgid "Нова година"
msgstr ""


msgid "Освобожението на България"
msgstr ""


msgid "Ден на труда"
msgstr ""


msgid "Гергьовден. Ден на храбростта"
msgstr ""


msgid "Ден на славянската писменост"
msgstr ""


msgid "Ден на Съединението"
msgstr ""


msgid "Ден на Независимостта"
msgstr ""


msgid "Ден на Народните будители"
msgstr ""


msgid "Бъдни вечер"
msgstr ""


msgid "Рождество Христово. Коледа"
msgstr ""

2 changes: 1 addition & 1 deletion priv/gettext/en/LC_MESSAGES/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ msgstr ""
msgid "Islander Day"
msgstr ""

msgid "St. Patrick's Day"
msgid "St. George's Day"
msgstr ""

msgid "Victoria Day"
Expand Down
24 changes: 12 additions & 12 deletions priv/gettext/en/LC_MESSAGES/co.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,12 @@ msgid ""
msgstr ""
"Language: en\n"

msgid "Año nuevo"
msgstr "New Year's Day"

msgid "Día de los Reyes Magos"
msgstr "Epiphany"

msgid "Día de San José"
msgstr "Saint Joseph's Day"

msgid "Jueves Santo"
msgstr "Maundy Thursday"

msgid "Viernes Santo"
msgstr "Good Friday"

msgid "Primero de Mayo"
msgstr "Labour Day"

msgid "Ascensión del señor"
msgstr "Ascension of Jesus"

Expand All @@ -37,6 +25,18 @@ msgstr "Corpus Christi"
msgid "Sagrado Corazón"
msgstr "Sacred Heart"

msgid "Año nuevo"
msgstr "New Year's Day"

msgid "Día de los Reyes Magos"
msgstr "Three Kings Day"

msgid "Día de San José"
msgstr "Saint Joseph's Day"

msgid "Primero de Mayo"
msgstr "Labour Day"

msgid "San Pedro y San Pablo"
msgstr "Saint Peter and Saint Paul"

Expand Down
60 changes: 60 additions & 0 deletions priv/gettext/en/LC_MESSAGES/cy.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
## "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 "Green Monday"
msgstr ""

msgid "Good Friday"
msgstr ""

msgid "Easter Sunday"
msgstr ""

msgid "Easter Monday"
msgstr ""

msgid "Festival of the Flood"
msgstr ""

msgid "New Year's Day"
msgstr ""

msgid "Epiphany Day"
msgstr ""

msgid "Greek National Day"
msgstr ""

msgid "National Anniversary Day"
msgstr ""

msgid "Labour Day"
msgstr ""

msgid "Assumption of the Virgin Mary"
msgstr ""

msgid "Cyprus Independence Day"
msgstr ""

msgid "Greek National Anniversary Day"
msgstr ""

msgid "Christmas Eve"
msgstr ""

msgid "Christmas Day"
msgstr ""

msgid "Boxing Day"
msgstr ""
Loading