#20 ✓resolved
Tobias Lütke

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

    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

    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

    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

    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

    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

    nozitutudi January 21st, 2021 @ 03:03 PM

    A dental mirror will likewise be utilized to assist the dentist with assessing see zones in the mouth. Dental mirrors highlight stretched handles commonly associated with round mirrors. A dental mirror can assist the Dentist near Allen TX Dentist with noticing the teeth and gums for indications of bothering, growing, tarter, rot, or dying.

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.

New-ticket Create new ticket

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.

People watching this ticket

Pages