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

How a code can be assigned to an Application custom error messages

How a code can be given to an Application custom error messages in Ruby on Rails. when a user sees an error, he should be able to know both its error code and message. For example, I want to achieve the following result, in case of respective…
kashif
  • 1,097
  • 4
  • 17
  • 32
0
votes
1 answer

Fast_Gettext Not Displaying Translations in Rails 3.2.13 Application

I have PO files (en.po & fr.po) that I want to use to localize my Rails application into French. I submitted the question https://stackoverflow.com/questions/17203622/translating-a-rails-application-3-2-13-using-po-gettext-files recently to see if…
0
votes
1 answer

Ruby - Could not find i18n-0.6.1 in any of the sources

I'm trying to install Redmine, but I'm in trouble on the final steps. I never used a Ruby environment before, I'm a complete beginner. $ RAILS_ENV=production rake db:migrate Could not find i18n-0.6.1 in any of the sources Run `bundle install` to…
Pygmay
  • 75
  • 2
  • 9
0
votes
1 answer

Rails internationalization - is there better way to keep messages in english?

I recently make a decision to translate my tiny rails app with I18n gem as it described here. While a testing, as it expected, I got a error messages from activerecord and devise: translation missing: ru.devise.failure.user.not_found_in_database …
Rasmussen
  • 7
  • 2
0
votes
1 answer

Use translation for submit button

I don't want to use the default <%= f.submit %> and have created a helper function for it, which also embeds an icon. The helper function expects a label to put on the newly created button. I'm calling it like this: <%= submit_button("icon-plus",…
rept
  • 2,086
  • 1
  • 26
  • 44
0
votes
1 answer

How can I write this as a currency unit but forwards د.إ

I'm setting up internationalization for UAE which uses this symbol : د.إ But when I plug it into my en-UAE.rb : :currency => { :format => { :unit => 'د.إ', :precision => 2, :format => '%u%n' } } It produces…
Trip
  • 26,756
  • 46
  • 158
  • 277
0
votes
1 answer

Multiple Language Support

Android Mobile Application that Support To Multiple Languages What Is the best way Either Use different different values folder for Hindi , French etc Or Languages Translator like in Web Projects Or Any other...way Please Suggest me the best…
Ram
  • 233
  • 4
  • 17
0
votes
1 answer

I18n.translate(:countries) doesnt return countries for some locales

I have a very strange issue. I have 6 locales (en, ca, es, es_PE, es_MX, es_Cl) If i type I18n.translate(:countries) It returns the countries for some locales and other locales it returns: "translation missing: es-PE.countries" I have 6 country…
Michael Koper
  • 9,586
  • 7
  • 45
  • 59
0
votes
2 answers

Apply I18 to Ruby on Rails Completed Site.

I am new to Internationalization(I18). I want to apply I18 to my Ruby on Rails site but the problem is site is already complete and I don't want to go to each HTML page change the code. I want my site in English, French, and Spanish language.…
urjit on rails
  • 1,763
  • 4
  • 19
  • 36
0
votes
1 answer

Calling I18n translation method from within a simple_form marked up using haml

I am working with the I18n gem and am just wondering how the translation method can be called while using a haml based simple_form. Current my code is as follows: \users\new.html.haml - content_for :title, "Admin | Create New User" …
Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
1 answer

Hook into Rails' I18n

I've written a little library to hold translated content in model attributes. All you have to do is add the following to a model: class Page < ActiveRecord::Base i18n_attributes :title, :content end By convention, the data is written to the real…
svoop
  • 3,318
  • 1
  • 23
  • 41
0
votes
1 answer

Rails CollectiveIdea Audit i18n

I'm using https://github.com/collectiveidea/audited in order to get my app audits. But my entity names still on english, all my app is i18ned. Couldnt found any info in the docs. Any clues?
damuz91
  • 1,461
  • 2
  • 21
  • 37
0
votes
1 answer

Rails 3 locale - path to locale tag too long?

I've just noticed silly error with locales - when the path for specific locale tag is too long e.g. t('placeholders.organization.participantsNo') then there is a locale translation missing error, but when I modify locales on my site and in locale…
0
votes
1 answer

Rails 3.1, internalization of values from a habtm relationship?

I got a Event model that HABTM Categories. The relationship works fine and I can insert/retrieve values from Categories with no problem. My questions is, is there a way to interzationalize(I18n) the values of this categories. Category Model class…
-5
votes
1 answer

Passing variables for gritter gem to translate in gflash.en.yml

How do you pass a variable or argument to the gritter Ruby on Rails gem so that it can be used as part of internationalisation (i18n) replacement? You can hard code gflash in the controller like so: butter = 'melted' gflash :notice => "The knob of…
random
  • 9,774
  • 10
  • 66
  • 83
1 2 3 4 5 6
7