forked from codegram/date_validator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request codegram#13 from cryo28/master
Russian locale and dates interpolated into validation error messages are localized themselves by using I18n.localize
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rvm --create use ruby-1.9.2@date_validator | ||
rvm use ruby-1.9.2@date_validator --create |
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,8 @@ | ||
ru: | ||
errors: | ||
messages: | ||
not_a_date: "неверный формат" | ||
after: "должна быть позднее чем %{date}" | ||
after_or_equal_to: "должна равняться или быть позднее чем %{date}" | ||
before: "должна быть ранее чем %{date}" | ||
before_or_equal_to: "должна равняться или быть ранее чем %{date}" |
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