internationalization

Changing language by clicking a button

别说谁变了你拦得住时间么 提交于 2019-12-21 21:26:49
问题 I have a JSF/RichFaces setup, and I found this tutorial. I followed it step by step, but I can't manage to get it. Also: language.jsp is mentioned in the tutorial, can anybody tell me what exaclty it is? Or if you think this is not an appropiate tutorial and have a better one, please, let me know. 回答1: All the steps in the tutorial are not really needed. What I did (And it works) is: 1. In loging.xhtm , for instance: <f:view locale="#{languageDetails.locale}" > <head> ..... <f:loadBundle

Finding the client's timezone and culture via web service

那年仲夏 提交于 2019-12-21 21:26:18
问题 I have a .NET web service. It serves AJAX requests from web users. I would simply like to know how to automatically get the user's timezone... Not current time offset, but the actual timezone - like, Central Standard Time is -5:00 right now, but Eastern Standard Time will be -5:00 once daylight savings is over. I want to differentiate these users. I would also like to know how to get their culture settings ("en-US", etc.) so I can render DateTimes and numbers from my web service to their

Wordpress multilanguage plugin [closed]

旧城冷巷雨未停 提交于 2019-12-21 20:29:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . I have a blog on Wordpress in which I need to serve contents in several different languages. I don't want to translate the articles, I just want to have some in each of the languages and just have a way of switching between them. I was looking for a wordpress plugin that allows such functionality but so far I

iOS Localization/Internationalization of Settings Bungle using Xcode 6 XLIFF export

本秂侑毒 提交于 2019-12-21 19:46:40
问题 Background: Xcode 6 adds a quick export function that creates a single XLIFF file for each language (just select your project from the File navigator. Then choose the menu item Editor → Export For Localization ). Issue: It works really well and in the XML is included everything ... except the Settings Bundle Strings . Does anyone have an experience with this? Edit: After an intense research it looks there is no way to force Xcode (version 6.1) to include the Settings Bundle Strings to the

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

蓝咒 提交于 2019-12-21 17:44:02
问题 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

How do I make a “^” character in MATLAB?

微笑、不失礼 提交于 2019-12-21 12:59:57
问题 ^ is the exponential operator in MATLAB. The problem with it is that it isn't present on a lot of non-english keyboard layouts, and if you use it a lot in your work, switching between HR and EN becomes troublesome. Is there a way to add it to MATLAB's toolbar (like in Excel, so you can use it via mouse or touchpad), or to define a custom key (for example, F12) in MATLAB to replace it? I'm hoping for a non AHK solution, and the like. 回答1: Create a toolbar shortcut, give it a name, and put the

Error I18n::InvalidLocaleData

走远了吗. 提交于 2019-12-21 12:34:23
问题 I want use I18n and I already follow on how to do that from railscast but the thing gone wild and I don't know where the mistake, had tried check the format, tried several ways but still can't be done. my en.yml en: category: index: title: "Listing Categories" name: "Name" is_active: "Is Active" my view <%= t 'category.index.title' %> But return I18n::InvalidLocaleData in Categories#index and can not load translations from /home/lenovo/cost_control/config/locales/en.yml, expected it to return

standard function to translate iso-639 codes to language name?

会有一股神秘感。 提交于 2019-12-21 12:27:38
问题 I guess there should be some standard method for this, just to avoid everybody retyping dull constants for their applications. ;) I am looking for a function (usable in a php web app on linux) that can take two ISO639 language codes and returns the name of the first language in the second language, i.e. foo("fr","de") should return "französisch" and foo("de","fr") should return "allemagne" . Is there? 回答1: Locale::getDisplayLanguage is what you need. It is in PHP International Extension so if

Program for managing json localization files? [closed]

主宰稳场 提交于 2019-12-21 12:08:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a program that helps managing multiple json files for localization. My json structur looks like this: // locale_en-EN.json { "_TESTTEXT_": { "message": "This is a test.", "description": "A text for testing" }, ....... } Features I want: keep attributes (existens and names) for multiple files in

How to localize (i18n) moment.js within meteor.js?

允我心安 提交于 2019-12-21 09:26:08
问题 How can moment.js used within a meteor.js app be told to use another language than English? moment.js (installed as an mrt package) works fine with the default English language. Using the demo calls from the moment.js docs at http://momentjs.com/docs/#/i18n/changing-language/ always produces 'en'. I noticed there is a German language file for moment in meteor_project/packages/moment/lib/moment/lang/de.js that doesn't seem to be used though? To specify: within a template helper I tried: moment