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 -
gojec63917 August 1st, 2023 @ 10:45 AM
When will they come out with a better converter for pdf to jpg. Right now they have launched how-to-sign-as-power-of-attorney which is more concerned with protecting it than converting it. Any guesses anybody?
-
gojec63917 August 2nd, 2023 @ 09:12 AM
This website, https://www.airslate.com/bots/slack, is a great place to start fixing your concerns. I actually had everything in my hands in record time. There are no disadvantages!
-
Kelsey Radley August 31st, 2023 @ 05:58 AM
This essay truly serves as an example of elegance and flair. I saved it so I could read more of your educational post when I got a chance. tunnel rush
-
gojec63917 September 14th, 2023 @ 11:56 AM
I can't believe I waited so long to switch to home internet plans toronto. Super impressed!
-
Adam Kris September 25th, 2023 @ 06:08 AM
I appreciate your post because it has a lot of good information that I can absorb and learn. retro bowl
-
elijahnelson October 16th, 2023 @ 11:42 AM
I really like the post's superb style, clarity, mapquest and material.
-
mariah9x October 17th, 2023 @ 04:54 AM
I want to thank you sincerely for creating such a wonderful and wordle simple post.
-
zetisda November 3rd, 2023 @ 09:59 AM
Players can join forces with friends or make new Dinosaur Game connections through in-game chat, guilds, or clans. This social aspect of gaming has led to the formation of tight-knit communities that extend beyond the virtual world.
-
ryanrobbie December 4th, 2023 @ 09:57 AM
You seem to know what you're dealing with, even though it's hard to find knowledgeable people on this subject mapquest driving directions
-
WayneKWeiss December 9th, 2023 @ 11:45 PM
It is good to share the detail so you can get it fixed later on. I saw many issues that were resolved. If you want to check my reference you can try these out and see her comment is here with the best details that is required.
-
Kelsey Radley January 11th, 2024 @ 08:56 AM
Despite the difficulty in Retro Bowl College finding competent persons on this issue, you seem to know what you're doing.
-
Maru Kari January 15th, 2024 @ 02:58 AM
I am very impressed with the information you shared. I have learned many interesting things from your post and I will definitely follow your next posts. slope
-
kalyl January 23rd, 2024 @ 08:19 AM
Ensure that you are using a recent version of geometry dash the I18n gem. Outdated versions may have issues that are resolved in newer releases.
-
WayneKWeiss March 1st, 2024 @ 12:40 AM
This code is good and we can find the best ideas here that can help us to read the code that we need and use it by making necessary changes. While using the Melbourne Pressure Cleaning Pros when I got the best results many people ask me about it and they want to use it too.
-
kanecharles March 7th, 2024 @ 11:08 AM
The above code shows an error during interaction with i18n when using the "%%" character in the string. This error seems quite annoying and should be corrected immediately to ensure the correctness of the string time calculator interaction.
-
login ligaciputra May 21st, 2024 @ 09:02 AM
login ligaciputra adalah platform terpercaya untuk para penggemar game slot online. Dikenal sebagai link bandar slot gacor dengan jackpot menarik tiap harinya, slot Ligaciputra sudah jadi pilihan utama untuk pecinta judi daring. Dengan koleksi game yang beragam, slotter dapat menikmati pengalaman bermain yang seru dan mendebarkan.
-
Randall Wolf June 14th, 2024 @ 09:23 AM
The issue you're encountering with i18n failing geometry dash interpolation with %% in strings, resulting in the error ArgumentError: one hash required, is typically due to how the interpolation syntax is being handled.
-
yostidista July 23rd, 2024 @ 10:52 PM
It is a great place for us to get the solution of the issues we face. I saw people are good and give the best possible answers to help us. When I used the services from the tree surgeons it provide great results. By sharing about it can help other people who are in need of the same services.
-
Lee Joyce Miles October 11th, 2024 @ 08:12 AM
If you're curious about exploring a unique variety of blooms, our website offers a dedicated section for flowers that start with V. This page provides detailed information on these flowers, including their names, characteristics, and beautiful images. Visit this link to learn more and expand your knowledge of floral diversity.
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.