multilingual

How to achieve multilingual support in ASP.NET

旧巷老猫 提交于 2019-12-03 23:18:14
I want to internationalize my asp.net application. How to do this? What steps exactly do I have to follow? Simply make a basepage class that will inherited from Page class, put this method in basepage class and inherit basepage class in your every aspx.cs page to acheive globalization. protected override void InitializeCulture() { Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); base.InitializeCulture(); } set in this method whatever culuture you want, like ar-sa for arabic.... 1.) If you use database, then you

ASP.NET Web Page Globalization & Localization in Master Page C# 3.0

不想你离开。 提交于 2019-12-03 21:09:41
I cant use the following code in Master page for Globalization & Localization. It gives the error as commented in the code part "does not contain a defination for InitializeCulture" protected override void InitializeCulture() { if (Request["Language"] != null) { //String selectedLanguage = Request["Language"]; // code wil go here } base.InitializeCulture(); //base.InitializeCulture gives error as mentioned in the next line //does not contain a defination for InitializeCulture } When i add this code to other pages other than Master Page it works fine. is there any restriction on using this code

Solr: DIH for multilingual index & multiValued field?

不羁的心 提交于 2019-12-03 20:57:44
I have a MySQL table: CREATE TABLE documents ( id INT NOT NULL AUTO_INCREMENT, language_code CHAR(2), tags CHAR(30), text TEXT, PRIMARY KEY (id) ); I have 2 questions about Solr DIH: 1) The langauge_code field indicates what language the text field is in. And depending on the language, I want to index text to different Solr fields. # pseudo code if langauge_code == "en": index "text" to Solr field "text_en" elif langauge_code == "fr": index "text" to Solr field "text_fr" elif langauge_code == "zh": index "text" to Solr field "text_zh" ... Can DIH handle a usecase like this? How do I configure

How to implement multilanguage in Java/Swing applications?

眉间皱痕 提交于 2019-12-03 16:09:33
What are the different ways of implementing multilingual support in Swing applications? Are you using ResourceBundle with property file and implementing it in every frame? Does it work good for you? What if you use some kind of GUI editor? Is there any other way around? At work we are using Matisse4MyEclipse and the code gets regenerated every time we save the screen, so simply using Externalize Strings won't work here. One way is to define it as custom property for each component, which is very annoying. Another way is to go over the multilanguage components and their properties again after

Str::slug alternative for hindi and arabic strings?

試著忘記壹切 提交于 2019-12-03 16:00:14
I use Str::slug to generate friendly URL's, however Str::slug() method returns null on arabic and hindi strings. Probably chinese, japanese, korean and those charsets too. For example: return Str::slug('मनोरंजन'); //null How can I solve this issue efficiently? I have faced this problem when I was working with Arabic language, so I've made the following function which solved the problem for me. function make_slug($string = null, $separator = "-") { if (is_null($string)) { return ""; } // Remove spaces from the beginning and from the end of the string $string = trim($string); // Lower case

Testing In-App purchases for multilanguage

百般思念 提交于 2019-12-03 11:35:38
I have included various localized descriptions in iTunesConnect (English, French, Chinese) for an in-app product. I am displaying the localizedTitle and localizedDescription properties after fetching them from apple's server using an SKProductsRequest. My understanding from the docs and other threads is that if I change the test phone to the relevant language it will display the correct language. However in testing with my phone in French or Chinese the product descriptions are still in the original English. I am not logged on with any iTunes account during the testing (Settings=>Store=

How to do an app with truly multilingual strings?

只谈情不闲聊 提交于 2019-12-03 08:44:23
问题 what should be the best approach to make strings for different languages? I have this problem, I am trying to display strings such as 'month', 'months', 'year', 'years'. Currently I am working on 3 languages I know: spanish, english and polish. For english and spanish this is straight forward. But for instance, in polish 'years' can become 'lata' (after numbers 2 - 4) or 'lat' (after numbers from 5). I was thinking on adding an extra string for this, and making it empty in the other languages

How to force a piece of text to be 'direction ltr' inside a 'direction rtl' paragraph

柔情痞子 提交于 2019-12-03 08:38:07
问题 So, phone numbers are always ltr (left to right). Working on a multilingual website I need to insert a phone number (with a '+' prefix and numbers separated by '-') inside a text paragraph that has direction rtl (for relevant languages of course) So I have something like this: .ltr #test {direction:ltr} .rtl #test {direction:rtl} #phone {direction:ltr} <div class="ltr"><p id="test">Please call to <span id="phone">+44-123-321</span> for some help.</p></div> <div class="rtl"><p id="test">Please

Multi-language attributes in MongoDB

南笙酒味 提交于 2019-12-03 07:10:17
I'm trying to design a schema paradigm in MongoDB which would support multilingual values for variable attributes in documents. For example, I would have a product catalog where each product may require storing its name, title or any other attribute in various languages. This same paradigm should probably hold for other locale-specific properties, such as price/currency variations I've been considering a key-value approach where key is the language code and value is the corresponding value: { sku: "1011", name: { "en": "cheese", "de": "Käse", "es": "queso", etc... }, price: { "usd": 30.95,

What multinlingual database support for Django 1.3?

◇◆丶佛笑我妖孽 提交于 2019-12-03 07:01:12
I am using Django for quite a while but each time I ask myself the same question again and again. Which multilingual database backend should I use ? I used django-multilingual on Django 1.1, django-multilingual-ng on Django 1.2 I add a look at django-nani for Django 1.3 but there quite few problems : No ModelAdmin API support : I cannot modify the TranslatedFields on the save() method since the object is created by a post_signal after. I which some people overthere could help me find a way to handle multilingual websites. I like the way multilingual, multilingual-ng and nani handle languages