Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Translation of scopes #14

Closed
muitocomplicado opened this Issue · 7 comments

3 participants

@muitocomplicado

I didn't find a way to translate scopes in Rails 3. Something like:

scope "national" do
  resources :events
end
scope "international" do
  resources :events
end

The "national" and "international" parts in the url don't get translated.

en: /national/events
pt: /national/eventos
en: /international/events
pt: /international/eventos

Is there anything I'm missing, or the gem can't handle it yet?

@kwi
Owner

Hi,

Yes, long time I haven't used the plugin but I think it's not already implemented yet in the rails 3 version of the gem.

I need to take some time to try to make it works.

@SweeD

Hi,

Is this still an issue, or is it fixed in the latest version?

@SweeD

Fix/Feature added here:

#18

Greetz
Markus

@kwi
Owner

Thanks a lots for doing that, but can you add tests for it if you want me to pull it ?

@SweeD

Added tests... see in pull request.
Greetz Markus

@muitocomplicado

Thanks SweeD for contributing.

@kwi
Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.