
i18n fails interpolation with %% in strings (ArgumentError: one hash required)
Reported by Tobias Lütke | February 10th, 2010 @ 07:55 PM
Steps to reproduce error:
[tobi@tobbook6:~]% irb
requree-1.8.7-2009.10 > require 'rubygems'
=> true
ree-1.8.7-2009.10 > "hello %d%% of world" % 100
=> "hello 100% of world"
ree-1.8.7-2009.10 > require 'i18n'
=> true
ree-1.8.7-2009.10 > "hello %d%% of world" % 100
ArgumentError: one hash required
from /Users/tobi/.rvm/gems/ree-1.8.7-2009.10/gems/i18n-0.3.3/lib/i18n/core_ext/string/interpolate.rb:88:in `%'
from (irb):4
Comments and changes to this ticket
-
Sven Fuchs February 25th, 2010 @ 02:54 PM
- State changed from new to resolved
Thanks for reporting, Tobias!
This is fixed in http://github.com/svenfuchs/i18n/commit/bd740600683ca2aae78e4abf898... which is contained in I18n 0.3.4 and available on Gemcutter.
This was also reported on http://github.com/svenfuchs/i18n/issues/closed#issue/9
-
AlexanderCooperman October 9th, 2019 @ 04:49 PM
A lighthouse is produced for welcoming items for the humans. It is cited for the flow of the edubirdie for all products for the field. It is done for the mutual ay for the terms. The range is done for the diffused options for the strength and all weakness for the approach for the field for the approval of tones for the humans.
-
emilwashington January 7th, 2020 @ 09:34 AM
Ruby is a precious and highly best botox doctor near me sought after red gemstone varying in color from pink to blood red. It has for a long been regarded among the most valuable gemstones on earth and is blessed with all the traits that a precious gemstone should possess viz
-
Debra P. Kennedy May 19th, 2020 @ 10:55 AM
I'm a fan of Chinese buffets and so is the whole family. I do have somewhat high standards, enjoying tasty and authentic Chinese food. I know authentic as I've lived in China before,enquiry and don't expect the food to be exactly the same here. Here are a few guidelines to enjoy the buffet.
-
nozitutudi December 21st, 2020 @ 06:44 PM
We should get this straight: light complexion is a misinterpreted thought of magnificence. Your skin tone doesn't decide your excellence. Be that as it may, spots, pigmentation, staining, age spots, and other skin care issues can cause your skin to seem dull, dry, and dim. Skin helping creams can chip away at these issues and make your skin healthy and sparkling.
-
nozitutudi January 21st, 2021 @ 03:03 PM
- no changes were found...
-
johndavidd January 6th, 2023 @ 05:10 AM
I18n fails interpolation with %% in strings. The following error is encountered:
ERROR: Invalid input in bitlife '%%'
-
sidnolan February 2nd, 2023 @ 07:41 AM
Really, this piece of writing is a model of style and grace. I bookmarked it so I can come back later and read more of your informative post.
geometry dash -
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Internationalization API for Ruby.
This library is used in Ruby on Rails but also suited for use in other contexts.