internationalization

WiX: How to automatically include localized satellite assemblies?

强颜欢笑 提交于 2019-12-04 14:02:00
Can WiX be set to automatically include all generated satellite assemblies? The goal is to have a single English language MSI that installs an application with localized strings available for ~10 languages. I found this existing SO quetsion: How do I include Satellite Assemblies(Localized Resources) in an MSI built with WiX? However that solution suggests that new component and directory definitions needs to be manually added for each culture variant. Is that the only way, or can WiX somehow automatically learn about each language from the Visual Studio project definitions? (Running VS2010 and

How to handle multiple languages in java?

☆樱花仙子☆ 提交于 2019-12-04 13:53:31
问题 I am writing a program use jsp and java, how can i use properties files to support multiple languages ? and by the way, there are always something like \u4345, What's this ? How do they come ? 回答1: For the multiple languages, check out the ResourceBundle class. About the \u4345 , this is one of the dark and very annoying legacy corners of Java. The property files need to be in ASCII, so that all non-ASCII characters need to encoded as \uxxxx (their Unicode value). You can convert a file to

Eclipse French support

家住魔仙堡 提交于 2019-12-04 13:32:16
I need to enter some French chars in eclipse. How do I configure eclipse to enter French? I do have all the fonts that come with default eclipse packaging. VonC Preference / General / Workspace / Text file encoding In my configuration, I see Cp1252 (probably set after my OS current setup) and have no problem with any French character. UTF-8 is a more general setting which will accommodate any OS language setup. As noted in this blog entry , this should be UTF-8 by default, for encoding unlimited number of universal (Unicode) code points instead of a specific encoding grid like Cp1252. (see The

iPhone: localization / internationalization default strings file

…衆ロ難τιáo~ 提交于 2019-12-04 13:18:23
问题 I currently have two supported languages: English and Spanish. Thus I have two main.strings files for each language. One in en.lproj and one in es.lproj . What I want now is that the English main.strings is the default file if a user with a locale other than en or es arrives at the application, e.g. de or fr . I know I can set it manually for each string in the code with the defaultString parameter: NSLocalizedStringWithDefaultValue(key, @"main",[NSBundle mainBundle], defaultString, comment);

How do you enable LocaleInterceptor to change the locale in spring-security login page?

南楼画角 提交于 2019-12-04 13:17:23
问题 Pardon me if this question has been asked before, but I haven't gotten a straight answer that helped me solve my problem. I have a gwt application that I have secured using spring-security. Spring security just authenticates the user and redirects to the gwt application. Now i want the user to be able to change the locale from a link on the login page after which the locale will be stored on a cookie and used in the app. I have the following configurations, in my applicationContext.xml <http

How do you rescue I18n::MissingTranslationData?

谁都会走 提交于 2019-12-04 12:55:37
I want to be able to rescue I18n::MissingTranslationData like so: begin value = I18n.t('some.key.that.does.not.exist') puts value return value if value rescue I18n::MissingTranslationData puts "Kaboom!" end I tried the above, but it doesn't seem to go into the rescue block. I just see, on my console (because of puts ): translation missing: some.key.that.does.not.exist . I never see Kaboom! . How do I get this to work? IMO, it's pretty strange but in the current version of i18n (0.5.0) you should pass an exception that you want to rescue: require 'i18n' begin value = I18n.translate('some.key

How to use django.views.i18n.set_language() function?

不羁岁月 提交于 2019-12-04 12:45:29
I read a tutorial in Django site but I don't understand how to use the set_language() function. For example, I have a demo follow as: index.html {% trans "Hello World." %} <form action="/i18n/setlang/" method="post"> {% csrf_token %} <input name="next" type="hidden" value="/next/page/" /> <select name="language"> {% get_language_info_list for LANGUAGES as languages %} {% for language in languages %} <option value="{{ language.code }}">{{ language.name_local }} ({{ language.code}})</option> {% endfor %} </select> <input type="submit" value="Go" /> </form> urls.py urlpatterns = patterns('', (r'

AngularJS and i18next

萝らか妹 提交于 2019-12-04 12:39:13
问题 I have seen some i18n plugins for Angular but I don't want to re-invent the wheel. i18next is a good library and so, I intend to use it. I have created a directive i18n which just calls i18n library: define(['app', 'jquery', 'i18n'], function(app, $, i18n) {'use strict'; app.directive('i18n', function() { return function($scope, elm, attrs) { attrs.$observe('i18n', function(value) { if ($.fn.i18n) {// for some reason, it isn't loaded quickly enough and first directives process fails $(elm)

Localization of Text File resources in .NET

一个人想着一个人 提交于 2019-12-04 12:38:47
Localization/Globalization is pretty easy in Visual Studio using RESX files. I just add a resource file, like MyTextSnippets.resx , add key/value pairs, and create copies for every language I'd like to support like MyTextSnippets.de.resx , MyTextSnippets.fr.resx etc. Now think of longer texts, where the String resource editor grid doesn't work very well. No problem, just choose "Add Resource | Add New Text File" from the designer, and you can edit as many text files as you want. Example: I add MyTemplates.resx , and to this RESX I add a file called SomeEmailTemplate.txt . Works fine so far,

Cyrillic letters not displaying in PDF generated with iText in Android

a 夏天 提交于 2019-12-04 12:12:14
问题 I am tring to generate a PDF in my android application. I use iText and it generates PDF but only letters in english are shown. I found example code for iText working with unicode. I tried this example code in a simple comsole java application and it worked fine. This is the code: * --> Copyright 2001 by Paulo Soares, Bruno Lowagie <-- public class Chap0903 { public static void main(String[] args) { System.out.println("Chapter 9 example 3: True Types (embedded)"); Document document1 = new