Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on May 17, 2012
aai10 aai10 Исправление некорректного отображения названия месяца в случае исполь…
…зования ключа %-d или %1d:

Russian::strftime(Time.now-1000000,"%d %b %Y") => "06 мая 2012"
Russian::strftime(Time.now-1000000,"%-d %b %Y") => "6 май 2012"
Russian::strftime(Time.now-1000000,"%1d %b %Y") => "6 май 2012"
060d0f4
Yaroslav Markin Merge pull request #37 from aai10/patch-1
Исправление некорректного отображения названия месяца в случае использов...
c77e058
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/russian.rb
4 lib/russian.rb
View
@@ -21,8 +21,8 @@ def locale
end
# Regexp machers for context-based russian month names and day names translation
- LOCALIZE_ABBR_MONTH_NAMES_MATCH = /(%d|%e)(.*)(%b)/
- LOCALIZE_MONTH_NAMES_MATCH = /(%-?d|%e)(.*)(%B)/
+ LOCALIZE_ABBR_MONTH_NAMES_MATCH = /(%[-\d]?d|%e)(.*)(%b)/
+ LOCALIZE_MONTH_NAMES_MATCH = /(%[-\d]?d|%e)(.*)(%B)/
LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH = /^%a/
LOCALIZE_STANDALONE_DAY_NAMES_MATCH = /^%A/

No commit comments for this range

Something went wrong with that request. Please try again.