-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
240 additions
and
41 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
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,55 @@ | ||
de: | ||
date: | ||
day_names: [Sonntag, Montag, Dienstag, Mittwoch, Donnerstag, Freitag, Samstag] | ||
abbr_day_names: [So, Mo, Di, Mi, Do, Fr, Sa] | ||
# Don't forget the nil at the beginning; there's no such thing as a 0th month | ||
month_names: [~, Januar, Februar, März, April, Mai, Juni, Juli, August, September, Oktober, November, Dezember] | ||
abbr_month_names: [~, Jan, Feb, Mar, Apr, Mai, Jun, Jul, Aug, Sept, Okt, Nov, Dez] | ||
seasons: | ||
spring: "Frühling" | ||
summer: "Sommer" | ||
autumn: "Herbst" | ||
winter: "Winter" | ||
edtf: | ||
terms: | ||
approximate_date_prefix_day: "circa " | ||
approximate_date_prefix_month: "circa " | ||
approximate_date_prefix_year: "circa " | ||
approximate_date_suffix_day: "" | ||
approximate_date_suffix_month: "" | ||
approximate_date_suffix_year: "" | ||
decade_prefix: "" | ||
decade_suffix: "er Jahre" | ||
century_suffix: "" | ||
interval_prefix_day: "" | ||
interval_prefix_month: "" | ||
interval_prefix_year: "" | ||
interval_connector_approximate: " - " | ||
interval_connector_open: " - " | ||
interval_connector_day: " - " | ||
interval_connector_month: " - " | ||
interval_connector_year: " - " | ||
interval_unspecified_suffix: "" | ||
open_start_interval_with_day: "bis %{date}" | ||
open_start_interval_with_month: "bis %{date}" | ||
open_start_interval_with_year: "bis %{date}" | ||
open_end_interval_with_day: "%{date} - " | ||
open_end_interval_with_month: "%{date} - " | ||
open_end_interval_with_year: "%{date} - " | ||
set_dates_connector_exclusive: ", " | ||
set_dates_connector_inclusive: ", " | ||
set_earlier_prefix_exclusive: "vor " | ||
set_earlier_prefix_inclusive: "vor " | ||
set_last_date_connector_exclusive: " oder " | ||
set_last_date_connector_inclusive: " und " | ||
set_later_prefix_exclusive: "nach " | ||
set_later_prefix_inclusive: "nach " | ||
set_two_dates_connector_exclusive: " oder " | ||
set_two_dates_connector_inclusive: " eund " | ||
uncertain_date_suffix: " ?" | ||
unknown: "Datum unbekannt" | ||
unspecified_digit_substitute: "x" | ||
formats: | ||
day_precision_strftime_format: "%-d. %B %Y" | ||
month_precision_strftime_format: "%B %Y" | ||
year_precision_strftime_format: "%Y" |
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
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
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,32 @@ | ||
# frozen_string_literal: true | ||
|
||
module Edtf | ||
module Humanize | ||
module Language | ||
module German | ||
include Default | ||
|
||
module Century | ||
extend self | ||
|
||
def humanizer(date) | ||
"#{(date.year.abs / 100) + 1}." \ | ||
"#{century_number_suffix}" | ||
end | ||
|
||
private | ||
|
||
def century_number_suffix | ||
' Jahrhundert' | ||
end | ||
|
||
def century_sign_suffix(date) | ||
return ' v. Chr.' if date.year.negative? | ||
|
||
'' | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Edtf | ||
module Humanize | ||
VERSION = '2.1.0' | ||
VERSION = '2.2.0' | ||
end | ||
end |
Oops, something went wrong.