Skip to content

How to sort out translation issues? #14

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

Closed
railization opened this issue Apr 30, 2015 · 8 comments
Closed

How to sort out translation issues? #14

railization opened this issue Apr 30, 2015 · 8 comments

Comments

@railization
Copy link

Hi Pageflow team,

I am currently experiencing translation issues. Could you help?

Thanks...

@kioopi
Copy link
Member

kioopi commented Apr 30, 2015

For simple sentences Google Translate does an amazing job. They even have an app.

But seriously, you'd have to provide more information about your issue if you want someone to be able to help you.

@railization
Copy link
Author

[missing "en.pageflow.external_links.manage_sites" translation]�
The issue is that I have added external-links gem and i experience this translation issue , I resolved the issue on local machine by removing sprocket folder as mentioned in troubleshooting but I am unable to resolve this by doing so on server. My server is running in development.

@kioopi
Copy link
Member

kioopi commented Apr 30, 2015

Have you restarted the dev-server?

You may be able to force a reloading of you locales by doing I18n.backend.reload! in a rails console.

@railization
Copy link
Author

Yes I did restart server however let me try the other solution too and get back to you if it doesn't work.

@railization
Copy link
Author

This does not solves the issue.

@tf
Copy link
Member

tf commented May 2, 2015

There are a couple of things you can try, to diagnose the error.

  1. On your production machine start a console session (i.e. bundle exec rails console) and try to access the missing translation there: I18n.t('pageflow.external_links.manage_sites'). I suspect this will work, since you were able to see translations on your local machine, which should not be the case if this was a more general dependency problem.
  2. So translations are only missing in the editor, when they are accessed from JavaScript. During asset compilation all translations are written to the pageflow/application.js file. So if you are using asset precompilation, make sure you use up to date precompiled assets and assets compile without error. Make sure you reset all caches (sprockets tmp dir, browser cache).

@railization
Copy link
Author

Thanks alot. Issue has been resolved. :)

@tf
Copy link
Member

tf commented May 2, 2015

Just out of curiosity: What caused the issue?

@tf tf closed this as completed May 6, 2015
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