ruby on rails - I18n strange behaviour -


i using i18n redis store, , have strange behavior after updating rails 3.2.13

[6] pry(main)> i18n.t("my_website_field") => "m" [7] pry(main)> $redis.get("en.my_website_field") => "\"my website\"" 

i getting first letters of translations

to knowledge believe redis-store has issues versions of rails (3.2.13 happens 1 of those).

since curious why happening opened github change log , took @ logic changed in 3.2.12 -> 3.2.13 update.

the main change noticed dependency chain in activesupport i18n. code changed from

s.add_dependency('i18n', '~> 0.6') 

to

s.add_dependency('i18n', '= 0.6.1')  

the other changes (from changelog):

add i18n scope `distance_of_time_in_words

so if had take educated guess forcing of use of i18n 0.6.1 created type of conflict redis-store.

note: i continue issue change logs i18n , post if have more information on subject. can't find specific issue in commit history , don't keep changelog (havent 3 years :/) i'd curious see if forcing old version control allow i18n function properly.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -