This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
When i hit save button i get the undefined method `create' for Psych::Visitors::YAMLTree:Class #5
Comments
Ok, fixed the above error, by removing datetime: from yml. But now i get: NoMethodError at /update Ruby /home/miha/.rvm/gems/ruby-2.0.0-p247/gems/psych-2.0.2/lib/psych.rb: in dump, line 407 |
Hello Can you provide an example yml file? |
Hi. This are first lines of en.yml #encoding: utf-8
en:
date:
order:
- :year
- :month
- :day
datetime:
distance_in_words:
x_days:
one: "1 day"
other: "%{count} days"
about_x_months:
one: "about 1 month"
other: "about %{count} months"
x_months:
one: "1 month"
other: "%{count} months"
about_x_hours:
one: "about 1 hour"
other: "about %{count} hours"
about_x_years:
one: "about 1 year"
other: "about %{count} years"
almost_x_years:
one: "almost 1 year"
other: "almost %{count} years"
half_a_minute: "half a minute"
less_than_x_minutes:
one: "less than 1 minute"
other: "less than %{count} minutes"
less_than_x_seconds:
one: "less than 1 second"
other: "less than %{count} seconds"
over_x_years:
one: "over %{count} years"
other: "over 1 year"
x_minutes:
one: "%{count} minute"
other: "%{count} minutes"
x_seconds:
one: "%{count} seconds"
other: "%{count} seconds"
support:
array:
words_connector: ", "
last_word_connector: " or "
will_paginate:
previous_label: "← Previous"
next_label: "Next →"
page_gap: "…" |
Any hints? |
Even with 1.0.2 version of IYE and Psych 2.0.5 I still get the same error. :( |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I18nYamlEditor::TransformationError at /update
Failed to nest key: "zh-tw.datetime.distance_in_words.x_days.one"
It looks like my YAMLs are not properly structured?
example:
I have complete en.yml, but others are missing the translations.
Thanks
The text was updated successfully, but these errors were encountered: