internationalization

Why doesn't gettext have a db storage option?

大憨熊 提交于 2019-12-04 09:35:55
问题 I'm doing some i18n on a web-based app using Django, which uses gettext as its i18n foundation. It seems like an obvious idea that translations should be stored in the database, and not difficult to do, but po files on the filesystem are still being used. Why is this? My current suspicion is that the benefits of developing a db backaged are simply outweighed by the reliability/familiarity of gettext as a well-established package. Are there other significant reasons for continuing to store the

Websphere Application Server 6.1 (localized): Override locale for console messages

假如想象 提交于 2019-12-04 09:03:14
I have installed RAD 7.5 (based on Eclipse Ganymede 3.4.0) in Spanish. I'm working with Websphere Application Server 6.1 (spanish too). The problem I have is that all console messages appear in Spanish, but translation is, in my personal opinion, quite poor (especially since even the console errors are displayed in Spanish and it's difficult to find documentation about exact error messages). I want to start the IDE in the original language (English) and I know that there is a command line switch -nl en that, placed beside eclipse executable path on program shortcut, serves for this purpose.

What is the best free XLIFF editor? [closed]

拈花ヽ惹草 提交于 2019-12-04 08:54:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm localizing my Flash application. Flash keeps localization data in XLIFF format, this is an XML dialect. Several users from

Multi language PHP application: best practice?

£可爱£侵袭症+ 提交于 2019-12-04 08:50:12
I'd like to get your feedback over the way I implemented multi-language support on my PHP MVC web app. That's how I did: in the /app folder I created a /languages folder which contains one file per language (english.php, spanish.php, etc.) each file contains a serie of variables with the same names in each files, containing the texts to render in the views these variables are then echoed in the different views a "language" cookie variable is updated when the user changes the language in the controller of each view, I include a language file on the following format: include $_SERVER['DOCUMENT

Java Regular Expression with International Letters

て烟熏妆下的殇ゞ 提交于 2019-12-04 08:26:25
Here's my current code: return str.matches("^[A-Za-z\\-'. ]+"); I want it to include international letters. How do I do that in Java? Thanks. It seems that you want is, to match all the alphabetic characters. Typically you would do that by using Posix \p{Alpha} expression, extended by the punctuation you want also to permit. As Java Regular Expressions documentation says, it matches ASCII only. However, what documentation does not say clearly is, you can make this class work with Unicode characters. To do just that you need to turn Unicode character class matching on. You can do this in one of

Changing locale in Angular at runtime?

∥☆過路亽.° 提交于 2019-12-04 08:25:48
I was doing some research on changing Angular locale at runtime and found this thread: How to set locale in DatePipe in Angular 2? . Is it still the case that there is no way to change locale at runtime? I have an application that features several pipes to format number, date and language depending on the locale, but implementing many custom pipes for each locale -- rather than having the ability to change it during runtime--seems ridiculous. What solutions would you purpose? I bet you are searching for this because today you're upgrading @angular/material to beta.10 and the DatePicker now

Force UI update on the fly, after changing current culture in WPF

风格不统一 提交于 2019-12-04 08:25:26
问题 I need to support UI language change through the application menu. The texts are localized using resource files (similar to approach 1 here) if I set the Thread.CurrentThread.CurrentUICulture before the ctor calls to InitializeComponent() , the UI is changed as it should. However, if the CurrentUICulture is changed during the normal run of the application, the controls are not updated (i.e. the text remains the same, regardless of the current culture). Is there a way to force the controls to

In Rails, how to specify default flash messages in i18n locale file

↘锁芯ラ 提交于 2019-12-04 08:10:32
问题 I know there are some preset structures in i18n locale file so that Rails pulls values automatically. For example, if you want to set the default submit button text for new records: # /config/locales/en.yml en: helpers: submit: create: "Create %{model}" user: create: "Sign Up" With this set, in views the following will result: # /app/views/things/new.html.erb <%= f.submit %> #=> Renders a submit button reading "Create Thing" # /app/views/users/new.html.erb <%= f.submit %> #=> Renders a submit

how to translate the html5 placeholders dynamically

∥☆過路亽.° 提交于 2019-12-04 08:01:53
问题 I'm using angular-translate to translate the page content in to different languages. <input type ='text' placeholder = ' {username | translate}'> This works fine when the page loads ..but it fails to translate when I use $translate.uses('fr') depending upon language dropdown changes. Can any one kindly suggests the solution to translate the placeholders while the language changes dynamically ? 回答1: Did you try: <input type="text" placeholder="{{ 'my.i18n.key' | translate }}" ng-model="myModel

How to redirect users based on browser language

时光毁灭记忆、已成空白 提交于 2019-12-04 07:57:01
I want to redirect users based on browser language, I figured out how to do this here, it works fine, here is the code(PHP): if(preg_match('/en-US/', $_SERVER['HTTP_USER_AGENT'])) header("location:index.php"); else header("location:http://cn.gearor.com"); The problem is I only want to redirect users from other websites or at the first visit to my website. Which means I don't want users reading some pages of my website, when they go back to index, they were redirect to other page. And I also have a link in my website, like: English or Chinese, when users click English from a Chinese page, they