-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails when Fixnums are present in the locale files #99
Comments
After some debugging, one problem seems to be that the values_list array here:
Contains non-string values such as numbers (3) and boolean (boolean). If I add a to_s in to_values:
The translation completes correctly. However, lists of translation strings appear to be empty. And indeed, the one of the locales file has this:
...where precision (2) and significant, strip_insignificant_zeros (false) are not strings. |
i18n-tasks really shouldn't try to translate non-string values. In the commit above, I've changed it to skip and return them as is. |
Released in v0.7.8 |
* upstream/master: (39 commits) Tidy up the spec template indentation, use let(:unused_keys). Update README.md Added Gitter badge minor fix ignore_lines pattern travis: 2.1.1 -> 2.1.3 .travis latest jruby Bump to 0.7.8 Google Translate fixnum spec glebm#100 Improve ignore_lines glebm#96 glebm#102 initialize @key_filter glebm#101 Lines in HAML that start with # are skipped ignore config: better examples ru copy fix move error message to i18n YARD signatures for GoogleTranslation methods Possible fix for glebm#99 README: small fixes for defining custom commands Remove unused keys fix typo in gemspec [ci skip] Simplify commands DSL i18n ... Conflicts: spec/google_translate_spec.rb
i18n-tasks v0.7.7
Context:
from debugging, it looks like each_translated is an Enumerator from nil.
If I change this:
I get the error message instead:
easy_translate works with the same string (picked using puts):
The text was updated successfully, but these errors were encountered: