Questions tagged [i18n-gem]

Ruby internationalization and localization solution.

Ruby internationalization and localization solution.

For more information, see the official GitHub repository of the project.

105 questions
0
votes
1 answer

Running Sonarqube on AIX

Here is my setup AIX Version 7.1 SonarQube 5.1 Java71_64 I try to start up sonarqube with /usr/java71_64/bin/java -jar ./sonarqube-5.1/lib/sonar-application-5.1.jar all seems good and I get following output: /usr/java71_64/bin/java -jar…
AlfonsSocken
  • 68
  • 2
  • 10
0
votes
2 answers

Rails I18n not replacing variable

I'm having trouble with some of my translations not having their variable replacements replaced with the text I supply and instead just outputting the translation literally. An example translation formats: view_all_other: "View all other…
UberMouse
  • 917
  • 2
  • 12
  • 26
0
votes
1 answer

rails I18n wrong parameter order in route (id as locale and id is nil)

I want to internationalize an external code (see github) with i18n for rails. I have read the guide for Rails Internationalization (I18n) API. Translating the text is not a problem, but the underlying code seems not to work properly anymore in all…
0
votes
0 answers

redmine bundler i18n fail

I have tried and tried. And yet it still goes on with the following error: Error message: Could not find i18n-0.7.0 in any of the sources (Bundler::GemNotFound) I tried to upgrade bundler, and later the i18n (even though both are already ready…
osomanden
  • 599
  • 1
  • 10
  • 26
0
votes
1 answer

Timeout loading translations from YML file with I18n

I'm getting lots of these I18n::InvalidLocaleData errors when trying to load translation files on heroku: I18n::InvalidLocaleData can not load translations from /app/config/locales/pt.yml: # The files exist in our…
ckbhodge
  • 913
  • 2
  • 9
  • 19
0
votes
1 answer

i18n Pluralization of a sentence with few counts

Looks like I got to a real challenge... I want to translate the following sentence: You got XX new messages in YY forums I already used translation pluralization, but this one is different since instead of array of pluralization I need a…
guyaloni
  • 4,972
  • 5
  • 52
  • 92
0
votes
1 answer

Localizing a rails ruby gem

I'm writing a rails gem that provides some partials and assets that I'd like to translate. So far the partials and assets work in the main rails app just fine, but I don't know how to have it register the localizations (I keep getting…
Jeremy Gillick
  • 2,560
  • 3
  • 27
  • 35
0
votes
1 answer

RubyMine RoR I18n config/locals/en.yml syntax error "file should have single root"

I don't know if this is just a goof syntax error, or if this is something I should legitimately be concerned about. I've searched online for this error and have found very little concerning it. So my guess is that this is either something so "no…
CreationTribe
  • 562
  • 1
  • 5
  • 17
0
votes
1 answer

Locale not set in Application Controller

I've spent the last few hours trying everything possible to make this work, googled, redesigned, tested, etc. - but somehow doesn't get it working. ok, I would like to set the I18n.locale - fairly simple. Basically I implemented what is written on…
0
votes
2 answers

i18n rails 4 production error. not development

I'm developing a rails 4 application with i18n support. I've installed i18n gem. In my application.rb file I have this code config.i18n.enforce_available_locales = true config.i18n.available_locales = [:es] config.i18n.default_locale = :es In…
0
votes
3 answers

Load languages files with I18n

I have a problem to load files with I18n. Befor I had all my translations in only one file called fr.yml. But I decied to split them in some files like clubs.fr.yml, searcher.fr.yml ... The problem it that I18n apparently only load fr.yml. Here my…
0
votes
2 answers

How select the default value when loading edit form

customer_gender is a array of array. I want to select the current value on edit form But it didn't work. I think the problem is the gender's value is not a number but a string, How to solve this problem if the value is a string customer_gender=…
newBike
  • 14,385
  • 29
  • 109
  • 192
0
votes
1 answer

Change i18n translations inline

I am developing a rails web application in which the user need the ability of changing the text which appears in it. I have been using i18n gem in all page to manage the different languages. Now, I am developing the editable part, so I am…
0
votes
1 answer

Translation bundling error in Ruby on Rails

I've recently updated my Ruby on Rails project and then when I try to run the rake i18n:js:export command, I'm getting the following error uninitialized constant I18n::INTERPOLATION_PATTERN This happens in both windows 8.1 and centos6 machines. My…
Mujahid
  • 1,227
  • 5
  • 32
  • 62
0
votes
1 answer

Google Website translator translates only single page in Rails

I'm trying to have a multi language website in rails. So I added the google translate from here I added the meta script to my application.html.erb so that my whole site is translated. And the div to my index page only. But it just translates the…