internationalization

Is there a web UI for modifying I18n locales for Rails 3?

孤人 提交于 2019-12-03 16:24:58
问题 I'm looking for a way to modify the values of I18n yml files for locales via web gui, is there some gem for that? 回答1: Yes, I modified the Newsdesk's translate plugin for using with Rails 3: https://github.com/romanbsd/translate 回答2: A gem that mimics Twitter Translation Center github.com/badrit/translation_center 回答3: Tolk is a web interface for doing i18n translations packaged as an engine for Rails 4 applications https://github.com/tolk/tolk 回答4: There's also tolk written by the creator of

How can I programmatically find the list of codecs known to Python?

旧巷老猫 提交于 2019-12-03 16:17:27
I know that I can do the following: >>> import encodings, pprint >>> pprint.pprint(sorted(encodings.aliases.aliases.values())) ['ascii', 'base64_codec', 'big5', 'big5hkscs', 'bz2_codec', 'cp037', 'cp1026', 'cp1140', 'cp1250', 'cp1251', 'cp1252', 'cp1253', 'cp1254', 'cp1255', 'cp1256', 'cp1257', 'cp1258', 'cp424', 'cp437', 'cp500', 'cp775', 'cp850', 'cp852', 'cp855', 'cp857', 'cp860', 'cp861', 'cp862', 'cp863', 'cp864', 'cp865', 'cp866', 'cp869', 'cp932', 'cp949', 'cp950', 'euc_jis_2004', 'euc_jisx0213', 'euc_jp', 'euc_kr', 'gb18030', 'gb2312', 'gbk', 'hex_codec', 'hp_roman8', 'hz', 'iso2022_jp

Anyone know a source for translated Time Zone descriptions?

耗尽温柔 提交于 2019-12-03 16:15:23
Does anyone know of a compiled list of translations for the time zone names in Windows? I need all 75 or so of them in German, French and Spanish. Alternatively, how would I use .Net to compile such a list? Example format: (GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague There is a list of all the time zones in the registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones Which can be loaded using: ArrayList zones = new ArrayList(); using( RegistryKey key = Registry.LocalMachine.OpenSubKey( @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" )

ReferenceError: Intl is not defined in Node.js

最后都变了- 提交于 2019-12-03 16:11:12
I'm trying to construct a new Intl.Collator() object in Node.js. Does anyone know why the Intl object wouldn't be present in a Node runtime? According to MDN , it is specified as a Namespace by ECMAScript, so I don't see why it wouldn't be there. Unfortunately node currently (as of version 0.10, at time of writing) does not support the ECMA-402 Intl object unless you perform a custom compile of node, which is documented in the node.js Readme . With libicu i18n support: svn checkout --force --revision 214189 \ http://src.chromium.org/svn/trunk/deps/third_party/icu46 \ deps/v8/third_party/icu46

How to implement multilanguage in Java/Swing applications?

眉间皱痕 提交于 2019-12-03 16:09:33
What are the different ways of implementing multilingual support in Swing applications? Are you using ResourceBundle with property file and implementing it in every frame? Does it work good for you? What if you use some kind of GUI editor? Is there any other way around? At work we are using Matisse4MyEclipse and the code gets regenerated every time we save the screen, so simply using Externalize Strings won't work here. One way is to define it as custom property for each component, which is very annoying. Another way is to go over the multilanguage components and their properties again after

ActiveRecord error messages: translation for fields

不问归期 提交于 2019-12-03 15:11:22
I've used the instructions specifies in http://guides.rubyonrails.org/i18n.html to translate fields of my model, but the labels doesn't come translated. What I'm doing wrong. I have a User model with the field name and I'd like to have it translated to Brazilian Portugues (pt_br), so I got my pt_br.yml: pt_br: errors: "Erro!" activerecord: models: user: "Usuário" attributes: name: "Nome" address: "Endereço" errors: template: body: "Por favor, corrija os campos assinalados" header: "Dados inválidos" messages: blank: "é obrigatório" taken: "já existe" too_short: "incompleto" when I got to the

Change locale for django-admin-tools

℡╲_俬逩灬. 提交于 2019-12-03 15:08:44
In my settings.py file I have: LANGUAGE_CODE = 'ru-RU' also, I have installed and working django-admin-tools. But admin language still english. What I'm doing wrong? PS. $ cat settings.py | grep USE | grep -v USER USE_I18N = True USE_L10N = True USE_TZ = True You need to set the language specifically for the admin app. Since django does not provide a language drop down as part of the default login, you have a few options: Login to your normal (non admin view), with superuser/staff credentials and the correct language, then shift over to the admin URL. Update the admin templates and add a

How to reload the screen when changing languages​ in JavaFX?

﹥>﹥吖頭↗ 提交于 2019-12-03 15:00:47
问题 Well, I'm beginner with java and fxml. I creating a application and need to change language of the screen. I have the file with internationalized keys but i no have idea as reload the screen with the changed language. The application have a menu where have the language available. I want just refresh screen when the user change language. change is still manual, as you can see on code: (Main.java): public class Main extends Application { private Locale locale = new Locale("en", "US"); private

Spring security + i18n = how to make it work together?

和自甴很熟 提交于 2019-12-03 14:52:08
My first question here and i'll try to be specific. I am quite new to Spring and i'm trying to create quite simple reservation system (but this actually doesn't matter). What matters is that I am creating some basic template which i will then fill in by real webpages. Application works on hibernate,mysql, I also setup i18n and spring security. The poblem is that I cannot change my locale. The only thing which works is changing the default one. First I browed Web A LOT and I found out that usage a i18n together with spring security is more complicated that usually. What i found out is that i

Internationalization for flash applications

人走茶凉 提交于 2019-12-03 14:46:47
I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript? How about the Globalization package from AS Foundry? Haven't used it myself, but this one looks interesting: http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php It's based on the GNU gettext implementation and tool chain. We created a nice little tool around gettext: http://code.google.com/p/asgettext/ With this tool you can