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

Survey translation and url #487

Open
ghost opened this issue Oct 12, 2014 · 1 comment
Open

Survey translation and url #487

ghost opened this issue Oct 12, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 12, 2014

I am trying to use the translation yml file for my surveys, it is very difficult to make it work correctly for long surveys. The yml file is like 800 lines and my surveys got half translated. It breaks at many points.

So one easier way to do what to upload a file for each languages. It works well but since the survey name is used as the controller name it put ugly url, every accents became a dash in french for example.

What can i do to set the access code to something else like the id or a complete other name (for example no accents)?

@yoon
Copy link
Member

yoon commented Jan 19, 2015

There are two ways to change the access code. One is to specify it as an attribute in your survey dsl, e.g.

survey "É", :access_code => "e" do...

or to change the survey's access_code attribute from the console

survey.update_attributes(:access_code => "e")

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