Questions tagged [globalize3]

Globalize3 is a popular Ruby on Rails extension that aids development of the global-ready web applications.

Globalize3 is a popular Ruby on Rails extension that aids development of the global-ready web applications.

Globalize3 is the successor of Globalize for Rails and is targeted at ActiveRecord version 3.x. It is compatible with and builds on the new I18n API in Ruby on Rails and adds model translations to ActiveRecord.

Globalize3 is much more lightweight and compatible than its predecessor. Model translations in Globalize3 use default ActiveRecord features and no longer limit any ActiveRecord functionality.

83 questions
0
votes
1 answer

Active admin input field with locale

I have built multi-language application.But at this point I see lot of trouble to edit my translations through ActiveAdmin interface. I want to be able add/edit translations through this interface. Because using seeds.rb is not an option for…
Edgars
  • 913
  • 1
  • 19
  • 53
0
votes
1 answer

Why I got stack level too deep error with Globalize, Unicorn and Rails?

When I replace this line in the Gemfile gem 'globalize3' By this one: gem 'globalize', '~> 3.0.0' As suggested here: https://github.com/globalize/globalize, I got this error while starting Unicorn From Unicorn log file I,…
0
votes
1 answer

Rails randomically changes language on production (Globalize3 and Digital Ocean)

I'm building a rails project and everything works fine, but for some reason, when I deploy it at my Digital Ocean VM, the language of the website randomically changes while navigating. Here's the website link. http://www.adimaxpet.com.br/ Is there…
0
votes
1 answer

Globalize and Rails 4: Compatibility status

In a my previous question (asked about 2 months ago) I was trying to upgrade Ruby on Rails from version 3.2.13 to 4.0.0, without success because the globalize3 ruby-gem compatibility. Today I'm trying again to do the upgrade, without success because…
Backo
  • 18,291
  • 27
  • 103
  • 170
0
votes
1 answer

Globalize3 and creating object in all languages

I have a model named Menu which has product_types that belong to it. Upon creation of the menu I want to set some default product_types: I have this constant: DEFAULTS = [ { name_en: 'White bread', name_nl: 'Wit brood', name_fr: 'Pain blanc'}, …
rept
  • 2,086
  • 1
  • 26
  • 44
0
votes
1 answer

Couldn't find Category without an ID

I got such error after I globalized my app using globalize3 gem.Before that It worked fine. It is because of that I translated all categories in 3 different languages. And at this moment it can't find that category. Because I am using that category…
Edgars
  • 913
  • 1
  • 19
  • 53
0
votes
1 answer

Is it possible to have two cktext_area in one form for one row rails 3 globalize3

Does anyone know is it possible to have two cktext_area in one form for one row (for example description)? My rails app have two versions: english and russia. I'm using globalize3 gem and batch_translation. So in my form view i want to give…
Pogoss
  • 11
  • 3
0
votes
1 answer

Globalize3 setting same language all over

I have a form where I have 3 edits (one for each language). When I check afterwards, the text doesn't get inserted in the DB ok. (I get 3 times the same text). This is in the controller of ingredient_category, here it calls the…
rept
  • 2,086
  • 1
  • 26
  • 44
0
votes
1 answer

How can I create_or_update in seeds.rb for translations?

I now have the following in my seeds.rb os = OrderStatus.find(1) os.translations.create(:status => "In aanmaak", :locale => "nl") os.translations.create(:status => "Creating", :locale => "en") However this creates doubles. So I tried to do a…
rept
  • 2,086
  • 1
  • 26
  • 44
0
votes
1 answer

Globalize 3 on production server not working

I am trying to use Globalize3 gem for model translations to Active Record i.e. internationalization for database. After going through the documentation, I was able to implement it successfully on local server in both development and production…
manish nautiyal
  • 2,556
  • 3
  • 27
  • 34
0
votes
1 answer

Model has_many OtherModel but localized, so different OtherModel for same Model based on locale: how?

I'm having hard time with this, it's not a direct problem of implementation but I don't understand which is the right way to do it, I have two options, but first, these are my models: class Boat < ActiveRecord::Base validates :name, presence:…
0
votes
2 answers

Rails force all translations

I am using globalize3 with rails_admin thanks to this gist. What bugs me, is that the user can add as many translations as he wants. Moreover, he isn't forced to translate the content in every single locale (as in I18n.available_locales). I'd like…
mreq
  • 6,414
  • 4
  • 37
  • 57
0
votes
1 answer

Switch off I18n/Globalize3 fallbacks per Rails model basis

Is it possible to switch off I18n/Globalize3 fallbacks per Rails model basis? I.e. some models use fallback, some don't.
0
votes
1 answer

Is it "advisable" / "the right way" to store all possible translations?

I am using Ruby on Rails v3.2.2 and the Globalize3 v0.2.0 gem. At this time I am using Globalize3 in order to translate country, region and city names in two languages but I plan to use it to internationalize my application in many more languages…
Backo
  • 18,291
  • 27
  • 103
  • 170
0
votes
1 answer

Rails: Globalize3 and batch_translations

I'm using rails 3.2.8, globalize3 and batch_translations to translate specific content for an little cms and shop system. I integrated it without problems for one translation on one model. So everthings works fine. I started adding this…