Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (57 sloc) 1.262 kb
- during export resolve links if :merge => true
- make sense of timezone data
- hook into Rails' select_month and DateTime helpers
extract:
- territoryContainment (groups territories)
- languageData (maps languages/scripts to territories)
- territoryInfo (?)
- calendarData
- weekData
what do the following tags in supplementalMetadata mean?
- variable
- defaultContent
Instead of exporting YAML, maybe by default export Ruby classes:
module Cldr
module Data
class De::Numbers
def currency_format
"#,##0.00 ¤"
end
def symbols
{ ... }
end
end
class De::Calendars::Gregorian
def months(context, type)
case context
when :format
case type
when :wide
{ :sat => "Samstag", :sun => "Sonntag", :mon => "Montag", ...}
end
when :'stand-alone'
case type
when :narrow
{ ... }
else
months(:format, :wide)
end
end
end
def date_format(type)
case type
when :full
"EEEE, d. MMMM y"
when :medium
"dd.MM.yyyy"
else
date_format(:medium)
end
end
end
class DeAt::Numbers < De::Numbers
end
class DeAt::Calendars::Gregorian < De::Calendars::Gregorian
end
end
end
Jump to Line
Something went wrong with that request. Please try again.