Created
January 3, 2014 22:50
-
-
Save ukasiu/8248216 to your computer and use it in GitHub Desktop.
Polish long date format translation with grammatical cases aka stycznia, lutego, marca...
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
# To be added in proper place | |
pl: | |
date: | |
genitive_month_names: | |
- | |
- stycznia | |
- lutego | |
- marca | |
- kwietnia | |
- maja | |
- czerwca | |
- lipca | |
- sierpnia | |
- września | |
- października | |
- listopada | |
- grudnia |
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
# Polish long date format translation with grammatical cases | |
# https://github.com/svenfuchs/rails-i18n/issues/284 | |
Time::DATE_FORMATS[:long_pl] = ->(time) { time.strftime("%e #{I18n.t('date.genitive_month_names')[time.month]} %Y, %H:%M") } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment