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
2 answers

Prosy thing with I18n and redirects (RoR) locales parameter is changing

I tried to implement 'change language' feature at my app. I've looked through official guide http://guides.rubyonrails.org/i18n.html and everything was clear for me. Unfortunatly I dont know how to fix one issue. For example when I am accessing…
0
votes
1 answer

Rails 2.3.x, is there any ruby gems for editing yml locale files?

I need to know if is there any ruby gems for editing yml locale files with a web interface? I remember I have seen a kind of, but I forget the name. Some suggestions?
el_quick
  • 4,656
  • 11
  • 45
  • 53
0
votes
1 answer

CodeIgniter and i18n library

Hello Forum, while working with CI 2.0.3 and internationalization (i18n) library, i’ve run into this problem. I’ve read similar posts here, but they did not solve my issue. Hope somebody here can point me into the right direction. The routes.php:…
0
votes
1 answer

Change Language in java swing at runtime

I would like to know if this is possible in java that i want to reload a swing app so that i can set locale. Im working on a swing app project where more than 5 languages used and i have already created property file for each language. Whenever user…
Dinesh Ravichandran
  • 312
  • 1
  • 5
  • 16
0
votes
1 answer

How to use I18n.js with handlebars.js in Rails

I am using 'handlebars_assets' and i18n-js in my Rails app, I have a handlebar template, where I want to translate rails model object attributes. app/assets/javascripts/templates/questions.show.hbs
jedi
  • 2,003
  • 5
  • 28
  • 66
0
votes
0 answers

ruby I18n date format breaks after a while in production

We have a large rails4-app in production on several client machines. Recently we discovered an odd bug. After some unknown time (can be hours) in the rails app the I18n.localize(date) breaks. The format falls back to the default (2018-08-21) instead…
Skully
  • 485
  • 4
  • 13
0
votes
0 answers

Domain Specific Language and Translations in Ruby

Thinking about a nice architecture for creating a own domains specific language in ruby, I struggeld a bit about the translation part. Say we have a event problem: event "We made a profit" do income > expenditure end event "We have some…
PeterNL
  • 630
  • 6
  • 21
0
votes
1 answer

Specific activerecord attributes becomes translation missing on production with Rails i18n

My default locale is :ja, and I have this for user.ja.yml: ja: activerecord: models: user: プロフィール attributes: user: account_id: アカウントID birth_day: 生年月日 email: メールアドレス errors: user: …
DIGITALSQUAD
  • 3,384
  • 3
  • 22
  • 24
0
votes
1 answer

Multi-line i18n-tasks-use statement

We have a repo that gets its I18n keys from incoming requests. So, I've been using i18n-tasks-useto explicitly declare all the keys we intend to use to satisfy our linter. E.g.: i18n-tasks-use # i18n-tasks-use…
taniard
  • 46
  • 4
0
votes
1 answer

Ruby on Rails, internalization in coffescript

I have a coffeescript file for one of my resources. It seems like internalization doesn't work properly in my coffescript file. I want I18 gem to transform 'select' script, but it doesn't work. coffeescript: console.log('employee loaded -> '+"<%=…
0
votes
1 answer

Day name translation (I18n) doesn't seem to work

I have a Rails 2.2.2 app which uses I18n v0.6.0. I have a config/locales/da.yml file with this content: --- da: date: abbr_day_names: - søn - man - tir - ons - tor - fre - lør abbr_month_names: - - jan …
Max Williams
  • 32,435
  • 31
  • 130
  • 197
0
votes
1 answer

Sinatra I18n Fallbacks using Rack::Locale

I'm trying to set up a simple Sinatra app with I18n, following the recommended Sinatra recipe, and using Rack:Locale to determine the language. My app.rb: require 'rubygems' require 'sinatra' require 'rack/contrib' require 'i18n' require…
CDub
  • 13,146
  • 4
  • 51
  • 68
0
votes
1 answer

How to loop through all available I18n variables in Rails 4

I have a certain numbers of I18n locale available defined in application.rb config/application.rb ... config.i18n.available_locales = [:at, :de, :ch] ... I need to manually expire the cache for all languages at once in certain controller actions.…
0
votes
0 answers

Rails 4 - change pluralize rules

How can we change the pluralize rules for translations in Rails 4? I tried to modify the initialisers/inflections.rb as follows: ActiveSupport::Inflector.inflections(:fr) do |inflect| inflect.irregular 'Niveau',…
belgoros
  • 3,590
  • 7
  • 38
  • 76
0
votes
1 answer

Not able to convert language in ruby on rails

I have included given code in en.yml file en: spree: buy_now: Buy Now and in my index.html.haml .buy-now.text-center = spree.t(:buy_now) but its not converting the language everytime it shows me Buy Now when I change language to FRANCIAS then…
Dinshaw Raje
  • 933
  • 1
  • 12
  • 33