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

Localizing directory names #911

Closed
rjewson opened this issue May 27, 2013 · 4 comments
Closed

Localizing directory names #911

rjewson opened this issue May 27, 2013 · 4 comments

Comments

@rjewson
Copy link

rjewson commented May 27, 2013

I have a site with basic localization working fine. My filename 'testFile.html.erb' located in the root of /localizable gets translated with the following:

en:
  hello: "hello"
  paths:
    testFile: "testFile_i18n"

If I add a folder at the the following location /localizable/folder1 and add a file to it, I can translate the new filename by adding it to the paths definition above, but how do I localize the folder name 'folder1'? I didn't see any reference to this in the documentation and our use case requires fully localizable paths, not just files.

@rjewson
Copy link
Author

rjewson commented Jul 15, 2013

Guess there is no solution atm them.

@rjewson rjewson closed this as completed Jul 15, 2013
@tdreyno
Copy link
Member

tdreyno commented Jul 15, 2013

I think you're right, but we definitely need to address this with the planned i18n re-write.

@tdreyno tdreyno reopened this Jul 15, 2013
@demogar
Copy link

demogar commented Dec 7, 2013

@tdreyno is there a workaround to accomplish this so far?

@tdreyno
Copy link
Member

tdreyno commented Dec 8, 2013

There are some sitemap gymnastics you could do, but nothing simple.

Looks like this could be fixed in the i18n extension pretty easily, but I'm not available over the holidays to do this. Happy to accept a PR and push a release, though.

@tdreyno tdreyno closed this as completed Jul 7, 2014
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

3 participants