Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Sometimes translations shown as missing #20

Open
akzhan opened this Issue · 21 comments

3 participants

Akzhan Abdulin Andrey Sitnik Mika Tuupola
Akzhan Abdulin

`Sometimes transcations of some keys shown as missing (but they exists in YAML, of course).

On next response it will be translated or not too.

http://combats.me/i/r18n-issue.png

Andrey Sitnik
Owner
ai commented

Maybe they keys contain special YAML names, such as “yes”, “no” or other?

Akzhan Abdulin

This problem is very fluctuable. These keys are translated OK on next request.

http://combats.me/i/r18n-issue.png

Andrey Sitnik
Owner
ai commented

Can you show me YAML files?

Akzhan Abdulin

Source code of project is on https://github.com/Undev/runit-man.

Problem is very rare (but somebody seek this error very often on same site).

runit-man is Sinatra application that ran using thin.

Andrey Sitnik
Owner
ai commented

Hm, maybe problem is in caching? Can you try to disable cache on next problem?

Akzhan Abdulin

Caching of what?

Andrey Sitnik
Owner
ai commented

Caching for translation. R18n.cache = {} will clean cache.

Andrey Sitnik
Owner
ai commented

In Rails project caching doesn’t create problems, but it may in Sinatra :(.

Akzhan Abdulin

Thanks, I'll try to clear cache before each request on problematic machines (before applying to runit-man/master).

Andrey Sitnik
Owner
ai commented

Please write if this fix problem, I will add caching fixes for Sinatra plugin.

Akzhan Abdulin

Oops. One of users seen these artefacts after cache cleaning.

Akzhan Abdulin

This code on test machine looks like:

before do
  R18n.cache = {}
  @scripts = []
...
end
Akzhan Abdulin

Problem exists for now :(

Akzhan Abdulin

Has been moved to i18n gem :)

Andrey Sitnik
Owner
ai commented

:(

Mika Tuupola

Maybe related to this?

http://goo.gl/RZxXm

Andrey Sitnik
Owner
ai commented

Thanks, I will see later (sorry, I am at trip now).

Akzhan Abdulin

No, this is not related to Passenger.

This was reproduced under thin server.

Mika Tuupola

@akzhan Yes I do understand. However the symptons were similar (randomly failing translation) so my problem might be related to problem you had.

Andrey Sitnik
Owner
ai commented

Issue #68 has very similar situation. Issue was in Sinatra settings in application, which was splited to several modules. I move to global R18n settings and it fix that bug, but maybe and this issue too.

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.