Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CopyCopter copies other locales' strings #73

Open
kwerle opened this issue Jul 31, 2012 · 0 comments
Open

CopyCopter copies other locales' strings #73

kwerle opened this issue Jul 31, 2012 · 0 comments

Comments

@kwerle
Copy link

kwerle commented Jul 31, 2012

I thought this was a client issue (see copycopter/copycopter-ruby-client#33), but it looks like it's server. Bummer I can't just move the issue over.

Here's the short version:
I use copycopter for a lot of text.
I use rails-i18n for validation text (must be filled in, etc).

If an error is first generated in English, then copycopter will display that error and copy the English text to every other language as a default string. Those error messages are generated appropriately by rails-i18n in other languages, so I don't want that behavior.

Is there a way to turn that off?

In addition, some of our validations are complex:

  validates :some_field, :presence => true, :if => :some_condition?, :numericality =>
                {
                  :greater_than_or_equal_to => lambda {|o| o.min_value},
                  :less_than_or_equal_to => lambda {|o| o.max_value}
                }

where min_value and max_value vary depending on conditions in the object. It seems that CopyCopter is caching the first 'hit' of this error. This seems related, but maybe it isn't?

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

No branches or pull requests

1 participant