मैं ध्यान में रखते हुए यह त्रुटि प्राप्त:रेल 3 I18: अनुवाद लापता: da.datetime.distance_in_words.about_x_hours t
translation missing:
da.datetime.distance_in_words.about_x_hours
मेरे दा स्थान फ़ाइल: http://pastie.org/2944890
मेरा विचार:
<%= distance_of_time_in_words(Time.new, konkurrancer.udtraekkes) %>
मैंने इसे अपने आवेदन में जोड़ा है। आरबी:
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :da
यदि मैं I18 कॉन्फ़िगर को हटाता हूं तो सहायक अंग्रेजी पर काम करता है।
अद्यतन:
मेरी config/enviorments/devolpment.rb में मेरे विन्यास:
config.i18n.load_path += Dir[Rails.root.join('locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :da
config.i18n.locale = :da
मेरे config/स्थानों/da.yml में अनुवाद फ़ाइल:
da:
datetime:
distance_in_words:
x_days:
one: '1 day'
other: '{{count}} dage'
और मुझे यह त्रुटि दृश्य मिलता है:
translation missing: da.datetime.distance_in_words.x_days
हाँ, इसे बहुत तेज़ देखा! –
मैंने कोशिश की है। क्या आप मेरे लिए पास्ता बना सकते हैं? –
मैं एक पास्ता बना सकता हूं लेकिन मुझे नहीं पता कि आप अपनी विशेष कॉन्फ़िगरेशन के साथ क्या करने का प्रयास कर रहे हैं। बस यह सुनिश्चित करें कि आपकी फ़ाइल को इस फ़ाइल के साथ तुलना करने के लिए सही है https://raw.github.com/clemens/i18n_demo_app/master/config/locales/en.yml – simianarmy