multilingual

Seeking source for localized Countries, Languages and Region names

不想你离开。 提交于 2019-12-07 02:56:25
问题 I seek a source for the world's main language names, country names, and territory names, localised into a long list of languages. Example of localised names of languages: EN EN English EN ES Inglés ES EN Spanish ES ES Español Example of localised names of a certain country in south-west Europe: ES ES España ES FR Espagne ES EN Spain Any idea where can I take/build that from? 回答1: You can find the information you are looking for in the Unicode Common Locale Data Repository (CLDR) here: http:/

C++, Multilanguage/Localisation support

安稳与你 提交于 2019-12-07 00:33:31
问题 what's the best way to add multilanguage support to a C++ program? If possible, the language should be read in from a plain text file containing something like key-value pairs (§WelcomeMessage§ "Hello %s!"). I thought of something like adding a localizedString(key) function that returns the string of the loaded language file. Are there better or more efficient ways? //half-pseudo code //somewhere load the language key value pairs into langfile[] string localizedString(key) { //do something

Best way for multi-language sites virtual Directories

。_饼干妹妹 提交于 2019-12-06 22:07:28
I have a site that will ultimately support 4 languages and 2 countries (US & Canada, English and Spanish) I'm wondering what's the best way to set up the directory structure? Right now, I have a root site called site.com: This will take you to a page where you choose your country and language. Ideally, I want to have the directory like so: site.com/ca/en/ (Canada English) site.com/ca/fr/ (Canada French) site.com/us/en/ (US English) site.com/us/es/ (US Spanish) But that will mean I will be putting a "ca" and a "us" virtual directory and language virtual directories inside that. IS that good

in MVC4 shows and error that I have to implement some Interface but I am already done it

﹥>﹥吖頭↗ 提交于 2019-12-06 21:21:34
问题 I am trying to create own filter attribute in order to support multilinguality. The idea is simple. URL stands for language. *http://host.ext/ en /rest_of_the_url* will open in English and *http://host.ext/ hy /rest_of_the_url* will open in Armenian. The problem is that at run it says that MultilingualActionFilterAttribute Here is the error text "The given filter instance must implement one or more of the following filter interfaces: IAuthorizationFilter, IActionFilter, IResultFilter,

Why Java Character.toUpperCase/toLowerCase has no Locale parameter like String.toUpperCase/toLowerCase

三世轮回 提交于 2019-12-06 20:33:15
问题 I am wondering that why Character.toUpperCase/toLowerCase has no Locale parameter like String.toUpperCase/toLowerCase . I have to first uppercase of a text that can be in Any language. I have 2 solutions: Use Character.toUpperCase String text = "stack overflow"; StringBuilder sb = new StringBuilder(text); sb.setCharAt(0, Character.toUpperCase(sb.charAt(0))); // No Locale parameter here. String out = sb.toString(); //Out: Stack overflow Use String.toUpperCase Locale myLocale = new Locale

C# Windows Phone 8.1 Language selection

。_饼干妹妹 提交于 2019-12-06 14:43:59
I hope this wasn't asked before, I couldn't find an easy solution in MSDN or here. The windows phone 8.1 application is deployed in more than one language. To do so I use the default language (english) in Strings\en-US\Ressources.resw and installed the Multilingual App Toolkit with all further languages added there. To change the language, I have the following code: private void changeLang(string cul) { Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = cul; Windows.ApplicationModel.Resources.Core.ResourceContext.GetForViewIndependentUse().Reset(); Windows.ApplicationModel

Translating a Visual Studio project

筅森魡賤 提交于 2019-12-06 14:19:41
问题 I have a big project written in my native language (hun) in c# with Visual Studio 2012. I'd like to translate it to english. Of course if I get a text in hungarian, I can translate it, so the point is not about how to translate a text, but how to make the whole translation easier. I don't need the software to change the language while runtime, it is also ok if I get a different project with a different language. One way is go go through the whole project and change all the labels, but that's

Multilingual Android app: Display English keyboard in Email & Password fields

偶尔善良 提交于 2019-12-06 11:27:06
We are working on a multilingual Android app, targeting both English & Arabic. An issue being faced is in the Login & Registration screens, where we want the username and password fields to be entered only in English text & thus display the English keyboard, irrespective of the device locale language Have tried setting the inputtype="email" in edittext but, this didn't work as desired. Can someone please point out if there are any possibilities. Thanks & regards, Jigar J Jigar Joshi Finally got the solution. Usecase : Enforcing user to enter input in ‘English’ regardless of current Locale set

Issues with translating the strings

只愿长相守 提交于 2019-12-06 10:18:27
I am using multiple translation in my project For that I have updated my settings file as LANGUAGE_CODE = 'en-us' gettext = lambda s: s LANGUAGES = ( ('es', gettext('Spanish')), ('en', gettext('English')), ) LOCALE_PATHS = ( '/mnt/aviesta/pythondev/django/locale', ) USE_I18N = True MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale

Is this good design for multi-language of system text to support x number of langs? [closed]

拥有回忆 提交于 2019-12-06 08:34:07
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Does this implementation scale well: Requirement is: System must support x number of languages; where x will = as many languages as business can translate All system maintained values (page content, email content, values stored in the hundreds of lookup tables which are user