Skip to content

Add i18n support, some code cleanup#1

Open
sekrett wants to merge 1 commit into
perfectline:masterfrom
sekrett:master
Open

Add i18n support, some code cleanup#1
sekrett wants to merge 1 commit into
perfectline:masterfrom
sekrett:master

Conversation

@sekrett

@sekrett sekrett commented Feb 23, 2011

Copy link
Copy Markdown

Hi!

Now it supports i18n translations. I also removed some lines, but all tests pass.


This change is Reviewable

@sekrett

sekrett commented Feb 23, 2011

Copy link
Copy Markdown
Author

Here is an i18n example:

ru:
  activerecord:
    errors:
      models:
        page:
          attributes:
            from_email:
              invalid_email: "некорректный e-mail"

I don't know, why do I have to write translation for every model I have, but it works the same way on validates_as_email_address and validates_email_format_of.

@kritik

kritik commented Oct 30, 2013

Copy link
Copy Markdown
Member

If you update code I'll merge your request. Anyway thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants