You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing WikiCloth using the supplied wikicloth/i18n does not work.
Using the i18n gem works as expected
Steps to reproduce (using default wikicloth)
irb(main):001:0> require 'wikicloth'
=> true
irb(main):002:0> WikiCloth::WikiCloth.new(:data => "__TOC__\n\n= One =\n\nwth").to_html(:noedit => true)
NoMethodError: undefined method `has_key?' for nil:NilClass
from /usr/lib/ruby/vendor_ruby/wikicloth/i18n.rb:25:in `t'
from /usr/lib/ruby/vendor_ruby/wikicloth.rb:96:in `rescue in render'
from /usr/lib/ruby/vendor_ruby/wikicloth.rb:78:in `render'
from /usr/lib/ruby/vendor_ruby/wikicloth.rb:109:in `to_html'
from (irb):2
from /usr/bin/irb:12:in `<main>'
Expected result (performing require 'i18n' before I18n check in lib/wikicloth.rb):
Could you tell me what your default locale is? I suspect this may be because its trying to reference a locale it does not have translations for, but I just wanted to get a little more information first before I try resolving this issue.
Executing WikiCloth using the supplied
wikicloth/i18n
does not work.Using the
i18n
gem works as expectedSteps to reproduce (using default wikicloth)
Expected result (performing
require 'i18n'
before I18n check inlib/wikicloth.rb
):The text was updated successfully, but these errors were encountered: