Questions tagged [globalize2]
26 questions
                    
                    9
                    
            votes
                
                4 answers
            
        Temporary disable i18n fallback in Rails
I18n fallback is loaded:
 I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
Any idea now to temporary disable it? I have forms, where I want to edit various language versions, and with fallback I am getting fields with default…
        
        mdrozdziel
        
- 5,528
 - 6
 - 39
 - 55
 
                    8
                    
            votes
                
                5 answers
            
        Is it possible to make rails i18n locales fallback to each other?
I'm using Rails 3 with Globalize3 0.2.0.beta4
Ideally I need :fr to fallback to :en and vice versa.
There are cases when only a French translation is available and I need to show it even if the locale is :en.
I tried
config.i18n.fallbacks = { :fr =>…
        
        marc
        
- 151
 - 1
 - 5
 
                    8
                    
            votes
                
                2 answers
            
        Rails 3 includes translations globalize3 activerecord
I have this schema: Post belongs_to Category and Category has_many Post.
Post and Category are globalize with gem globalize3
class Post < ActiveRecord::Base
  belongs_to :category
  translates :title, :excerpt, :desc # globalize3
end
class Category…
        
        Pioz
        
- 6,051
 - 4
 - 48
 - 67
 
                    6
                    
            votes
                
                1 answer
            
        Globalize3 multiple locale form
I have a problem regarding submitting multiple locale translations for model data within the same form. For example:
Post model:
translates :title
How can I post in the 'new' action view which contains the form so that I can submit my title in both…
        
        laleshii
        
- 109
 - 1
 - 10
 
                    4
                    
            votes
                
                5 answers
            
        How to manage translations as they are added by release?
I work on a RoR website that is translated into a number of languages.  It's a real pain to manage the "what's new to translate" for each release. We have to collect all the new keys and send them out in a spreadsheet to the translation team.  So,…
        
        Terry G Lorber
        
- 2,932
 - 2
 - 23
 - 33
 
                    3
                    
            votes
                
                1 answer
            
        Acts As Taggable On: translate tags
I'm working with RoR and I was wondering how can I translate Acts As Taggable On tags without having to manually insert it every time I use a tag again?
Example:
I have a Post (title and body in English) and I create it with tags "shoes, dress,…
        
        pasine
        
- 11,311
 - 10
 - 49
 - 81
 
                    3
                    
            votes
                
                3 answers
            
        How to enable fallback in I18n with globalize2
So that's the problem. In my application globalize2 returns a NIL string if there's no translation on some record, instead of falling back to default_locale. I wonder how to enable thin functionality? Does anyone figured that out? 
        
        Filip
        
- 712
 - 1
 - 6
 - 14
 
                    2
                    
            votes
                
                2 answers
            
        Sorting model instances with Globalize3
The problem seems trivial, but I can't find any reasonable solution. I have list of countries with translations stored in Globalize3 translation tables. How can I fetch the list of countries sorted by name? 
Country name isn't stored directly in the…
        
        mdrozdziel
        
- 5,528
 - 6
 - 39
 - 55
 
                    2
                    
            votes
                
                3 answers
            
        Supporting different locale regions using Rails i18n
I'm using the standard Rails I18n API to localise some of our views.  This is working really well, but we now have a few use cases for regional changes to the en locale.
The API guide mentions that this isn't supported directly, and other plugins…
        
        Olly
        
- 7,732
 - 10
 - 54
 - 63
 
                    2
                    
            votes
                
                2 answers
            
        globalize2 with xml/json support
I'm implementing a distributed application, server with rails and mobile clients in objective c (iPhone). To enable internationalization, I use the rails plugin 'globalize2' by joshmh.
However, it turned out that this plugin does not translate…
        
        Philipp Bolliger
        
- 235
 - 2
 - 8
 
                    1
                    
            vote
                
                1 answer
            
        how does globalize3 actually work?
Well, I am in the process of internationalising my current project to english and chinese.
Works flawless so far for static content with the i18n gem.
Now I installed globalize3 to translate my products, or, to be more precise, to allow the end-user…
        
        tmaximini
        
- 8,403
 - 6
 - 47
 - 69
 
                    1
                    
            vote
                
                1 answer
            
        Rails Globalize3 column sizes
How do you specify the column size of the columns in the translation tables?
From the README:
Post.create_translation_table! :title => :string, :text => :text
how would I work in a :limit => 37337?
I tried
Post.create_translation_table! :title =>…
        
        WaylandC
        
- 13
 - 3
 
                    1
                    
            vote
                
                1 answer
            
        Globalize2 problems, undefined method `translates' for?
I've set up Globalize2 on a rails app however I'm getting the following error when I put translates on the model:
undefined method `translates' for
Is anyone else getting this error? It's on rails 3 by the way.
        
        CafeHey
        
- 5,699
 - 19
 - 82
 - 145
 
                    1
                    
            vote
                
                2 answers
            
        globalize2 - create_translation_table! and options for columns
could you tell me please - how to use method create_translation_table! of globalize2 with additional options such as :null => false, :default => "abc" ???
        
        Alexey Poimtsev
        
- 2,845
 - 3
 - 35
 - 63
 
                    0
                    
            votes
                
                1 answer
            
        Globalize3 module translation for database
I got an issue with Globalize3, i have build a module to add translations in Admin for Preferences User
I display each translation by her ID and her locale. But i don't understand why the locale is not define when i want to display the page.
The…
        
        rbinsztock
        
- 3,025
 - 2
 - 21
 - 34