internationalization

How does Internationalization in ASP.NET work?

时间秒杀一切 提交于 2019-12-10 11:20:53
问题 I wonder if it is possible to make your application multilingual by simply creating resource files for every required language Like Resource.resx for English //string abc(name)=xyz(value) Resource.zh.resx for Chinese //string abc(name)=zh(value) And simply placing a string in your view(single view only that support multilingual) string like @appName.Resource.abc and <globalization culture="en-GB" uiCulture="auto:en-GB" /> in Web.Config Now my question is Is this enough to get started with

Grails message.properties changes not taking effect in deployed application

 ̄綄美尐妖づ 提交于 2019-12-10 11:01:38
问题 I have a really annoying problem with a deployed Grails application on tomcat 7 I created a tool in my website that basically allows the site admin to edit message.properties files so that he can change the messages for a certain language as he desire. All the changes are saved successfully to the file he edited. In development, while running the website from STS (Soring Source Tools Suite; somethng like eclips) I just refresh the website in the browser and I see the changes instantly, all

another jsf <f:selectItems> itemValue and message bundle question

杀马特。学长 韩版系。学妹 提交于 2019-12-10 10:55:40
问题 i have a selectOneMenu with selectitems. if i use <f:selectItem itemValue="3" itemLabel="#{hrBundle['phoneType3']}"/> it works well, displaying the localized label. i have more options inside a List and when i use f:selectItems, it stops working. this code: <f:selectItems value="#{values}" var="item" itemLabel="#{hrBundle[item.label]}" itemValue="item.value"/> shows the key('phoneType3') as label, and even <f:selectItems value="#{values}" var="item" itemLabel="#{hrBundle['phoneType3']}"

What's the expected outcome of uppercasing embedded English words in Turkish text?

折月煮酒 提交于 2019-12-10 10:43:46
问题 I am aware of the Turkish "I" problem, where uppercasing of "i" is different in Turkish and in English. However, does Turkish commonly embed foreign words (e.g. English names) in Turkish text? For example let's say someone embeds the text "Microsoft Windows" in otherwise Turkish text and I'd like to uppercase the text. Should the "i"'s in the English words (company and product) be uppercased using English rules or using Turkish rules? Or would the English word already be such a form that

Can xgettext be used to extract specific domain strings only?

荒凉一梦 提交于 2019-12-10 10:25:17
问题 (Really surprised this isn't answered anywhere online; couple posts over the past few years with a similar question, but never answered. Let's hope the Stackoverflow crew can come to the rescue) Situation: When using gettext to support application localization, one sometimes wishes to specify a 'domain' with dgettext('domain', 'some text string'). However, when running xgettext , all strings wrapped with dgettext(...) are spit out into one file (default: messages.po). Given the following

Making strings URL Friendly (eg: convert Montréal to Montreal)

无人久伴 提交于 2019-12-10 10:08:45
问题 I am writing a web application that requires friendly urls, but I'm not sure how to deal with non 7bit ASCII characters. I don't want to replace accented characters with URL encoded entities either. Is there a C# method that allows this sort of conversion or do I need to actually map out every single case I want to handle? 回答1: I don't know how to do it in C#, but the magic words you want are "Unicode decomposition". There's a standard way to break down composed characters like "é", and then

Changing locale in karma-jasmine unit test for angularJS

纵饮孤独 提交于 2019-12-10 10:06:10
问题 I am attempting to change locale in a jasmine unit test for angularJS (being run through Karma) using angular-dynamic-local . describe('currency filter', function () { var currencyFilter; var tmhDynamicLocale; beforeEach(function () { module('tmh.dynamicLocale'); inject(function ($injector) { var $filter = $injector.get('$filter'); currencyFilter = $filter('currency'); tmhDynamicLocale = $injector.get('tmhDynamicLocale'); }); }); it('formats US currency in standard form', function () { expect

angular-translate: Translate dynamic value

拟墨画扇 提交于 2019-12-10 10:03:24
问题 We're using angular-translate to translate our app. Regular translations with dynamic number values are no problems, like 'LIVES_LEFT': 'You have {{ lives }} left.' used like <p>{{ 'LIVES_LEFT' | translate:player }}</p> The problem comes when the dynamic value is a string that itself needs to be translated, like 'YOU_HAVE_A_CHILD': 'You have a {{ gender }} that is {{ age }} years old.' Used like <p>{{ 'YOU_HAVE_A_CHILD' | translate:child }}</p> gender in this case should end up resolving to

Use Symfony 2 component in non-Symfony project?

馋奶兔 提交于 2019-12-10 09:16:22
问题 For getting XLIFF/2 support in PHP, in another answer, it was suggested to use the Symfony 2 Translation component. So I downloaded it from Github into a directory ../vendor/ and naively tried to use it: <?php require_once '../vendor/Symfony/Component/Translation/Translator.php'; require_once '../vendor/Symfony/Component/Translation/MessageSelector.php'; require_once '../vendor/Symfony/Component/Translation/Loader/ArrayLoader.php'; use Symfony\Component\Translation\Translator; use Symfony

Displaying urdu characters in JTextPane

老子叫甜甜 提交于 2019-12-10 08:51:49
问题 How can I display a single Urdu character in a JTextPane? I have translated English characters to Urdu characters. But I can't find any way to correctly display those characters into my text component. My goal is to: Get the key pressed on the keyboard. Convert that key into the equivalent Urdu character. Display it in my text component (JTextPane). I've completed step 1 and 2 but can't work out the last one. 回答1: to 3- display it in my text component that is JTextPane source Wikipedia