Questions tagged as 'i18n'

2
answers

Multilanguage site Codeigniter

I need to create a multilingual website in codeigniter. The texts must come from the database. My intention is that each table has both languages. For example. Table sobre would have id | titulo_br | titulo_en | conteudo_br | conteudo_e...
asked by 29.09.2016 / 15:16
1
answer

I18n translate enum

I have an enum in my model containing the states, and I created a translation for it with I18n but it gives the following error:    translation data {...} can not be used with: count = > 1 My enum: unless instance_methods.include? :u...
asked by 09.04.2015 / 19:58
2
answers

i18 - How to translate attributes in error messages

Friends I have something like this: user.rb: class User < ActiveRecord::Base has_one :address, autosave: true, dependent: :destroy accepts_nested_attributes_for(:address, update_only: true, allow_destroy:true) end address.r...
asked by 27.12.2014 / 05:36
2
answers

Rails 4 translated error messages, change model name and attributes

Hello, I'm starting in rails and I'm getting to handle the error messages in pt-BR. I'm using MongoDB / Mongoid for the database layer. I have a user model, with attributes name , email and password I downloaded the gem 'rails-i18n',...
asked by 11.02.2015 / 03:06
0
answers

How to update the language of a JavaFX application at runtime

I have a combobox that contains the languages, when selecting it stores and I would like to already apply the language update. But I wanted to do it dynamically. The problem is that I do not know how to change the language. This method is...
asked by 13.08.2017 / 18:17
1
answer

Internationalization, L10n and I18N

According to w3 , with regard to L10n and I18N , I have separated the explanation below that will serve as a basis to illustrate my doubts . L10n [ source ]    Generally considered only as a synonym for translating a GUI or documen...
asked by 04.11.2014 / 21:28
1
answer

Internationalization with Enums Labels

Hello, I'm trying to internationalize with labels coming from an enum: public enum WeekDay { MONDAY("msg.week_monday", "mon"), TUESDAY("msg.week_tuesday", "tue"), WEDNESDAY("msg.week_wednesday", "wed"), THURSDAY("msg.week_thursday",...
asked by 30.03.2016 / 19:25
1
answer

How to work with I18N in PHP and Symfony?

Is there an add-on for Symfony that allows working with i18n and .po and .mo files, or is it really necessary to implement a solution for this? Ideally, I could call the translation in both the twig and the Controller. If there is any or what th...
asked by 30.07.2014 / 23:09
0
answers

ZF3 - Define language via url / route

I'm migrating to Zend Framework 3 and am having trouble with the following question: In Skeleton, I made the internationalization settings as recommended by the documentation, with _Zend\I18n_ and _Zend\Mvc\I18n_ in _modules.co...
asked by 16.04.2018 / 17:51
1
answer

i18n grails and jquery with different languages

I'm using the Language Internationalization (i18n) feature in a Grails project. Some of the tags are inserted directly into the .gsp files and another part is in the JS (Jquery / Bootstrap) scripts. These in the scripts need to use a third-party...
asked by 15.09.2017 / 17:01