i18n-gem Questions

5

Solved

I currently have the following 4 files in my config/locales of my root application: -en.yml -de.yml -simple_form.en.yml -simple_form.de.yml In my application.rb which resides in a spec/dummy fol...

3

just having troubles to make I18n to work without Rails environment: irb> require 'i18n' => true irb> I18n.load_path=Dir['/usr/lib/ruby/gems/1.9.1/gems/rails-i18n-0.6.6/rails/locale/en....
Catechumen asked 16/10, 2012 at 14:44

2

I have a date which works fine when using it as English > Date.strptime("Aug 02, 2015", "%b %d, %Y") Sun, 02 Aug 2015 However when I use it another language es, that doesnt work. E.g. > D...
Thaliathalidomide asked 7/9, 2017 at 21:35

1

Solved

I've created a gem (TranslationsGem) which I use in multiple projects (an engine and a Rails app). This gem sets up several hashes which are loaded into the I18n backend. A method #store_dynamic_t...
Fideicommissum asked 25/6, 2016 at 18:37

2

Solved

Consider the following code in a view: <%= link_to 'Delete!', item , :confirm => t('action.item.confirm_deletion'), :method => :delete %> It will normally come out as: <a href="/...
Greenland asked 7/8, 2012 at 10:25

1

Solved

I am trying to organize my localization files with a nested file structure so that it is easier to look up. I have followed Organization of Locale Files in rails app How do you structure i18n y...

2

Solved

Whats your opinion on translation services and which one would be a good fit for rails project with 2,3 but growing number of languages? Perhaps we can compile a list of services with pro's ...

2

Solved

What I understand Suppose I have a class with a handy validation like: User < ActiveRecord::Base validates :username, :format => {/regex/}, :message => :name_format end In this case, ...
Salmonella asked 15/2, 2013 at 0:37

3

I am using I18n-js, and my client side I18n.t calls all return a translation missing message when running in production. All is ok in development and test. The root of this issue appears to be i...
Essential asked 11/4, 2012 at 8:45

1

Solved

I want to set the locale by the clients browserlocale request.env['HTTP_ACCEPT_LANGUAGE'] and by the URL. If a user visits a URL (e.g.: myapp.com) it should check the HTTP_ACCEPT_LANGUAGE and red...
Septuagenarian asked 2/5, 2012 at 15:19
1

© 2022 - 2024 — McMap. All rights reserved.