Changing locale: Force activity to reload resources?

In your AndroidManifest.xml, add this attribute to your Activity android:configChanges=”locale” In your activity override onConfigurationChanged() @Override public void onConfigurationChanged(Configuration newConfig) { // refresh your views here super.onConfigurationChanged(newConfig); } https://developer.android.com/guide/topics/manifest/activity-element.html#config

Best practice for ASP.NET MVC resource files

You should avoid App_GlobalResources and App_LocalResources. Like Craig mentioned, there are problems with App_GlobalResources/App_LocalResources because you can’t access them outside of the ASP.NET runtime. A good example of how this would be problematic is when you’re unit testing your app. K. Scott Allen blogged about this a while ago. He does a good job of … Read more

A good date converter for Jalali Calendar in Java? [closed]

For better localization and language support, it is often convenient to use the ICU (International Components for Unicode) library from IBM. The APIs are similar to the standard Java APIs, but add additional support for localization and internationalization (e.g. time and calendar issues, sorting, formatting rules and a regex implementation with proper Unicode support). To … Read more

Why does Chrome incorrectly determine page is in a different language and offer to translate?

Update: according to Google We don’t use any code-level language information such as lang attributes. They recommend you make it obvious what your site’s language is. Use the following which seems to help although Content-Language is deprecated and Google says they ignore lang <html lang=”en” xml:lang=”en” xmlns= “http://www.w3.org/1999/xhtml”> <meta charset=”UTF-8″> <meta name=”google” content=”notranslate”> <meta http-equiv=”Content-Language” … Read more

.NET (3.5) formats times using dots instead of colons as TimeSeparator for it-IT culture?

I can guarantee in Italy we use colons to separate hour and minute digits, and we use the 24-hour format. Wikipedia is correct (at least this time). Your problem is likely that you’re not setting the Thread’s UI culture. Something like this should work: Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(“it-IT”);

How do I change the culture of a WinForms application at runtime

This worked: private void button1_Click(object sender, EventArgs e) { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(“fr-BE”); ComponentResourceManager resources = new ComponentResourceManager(typeof(Form1)); resources.ApplyResources(this, “$this”); applyResources(resources, this.Controls); } private void applyResources(ComponentResourceManager resources, Control.ControlCollection ctls) { foreach (Control ctl in ctls) { resources.ApplyResources(ctl, ctl.Name); applyResources(resources, ctl.Controls); } } Be careful to avoid adding whistles like this that nobody will ever use. … Read more

How to explain sorting (numerical, lexicographical and collation) with examples to non technical testers?

Here are some explanations: Lexicographical In this case, you sort text without considering numbers. In fact, numbers are just “letters”, they have no numeric combined meaning. This means that the text “ABC123” is sorted as the letters A, B, C, 1, 2 and 3, not as A, B, C and then the number 123. This … Read more