localization

Strange IIS Caching Behavior with Resx files

I'm having some strange problems with a site using .net 2.0 and IIS 6. The site uses resx files so it's localized in many languages. In some of those files we make changes to the resx and recompile, and the changes don't show up on the site. Ever. It's primarily in one language (Arabic) that this happens, but occasionally other languages...

What Should I Know and Consider To Create Multi Language Web Site

I'm Creating a Multi Language website with at least 5 language, what should I consider ...

How does JavaScript `Date` object determine the locale of the users browser?

I am trying to understand how the JavaScript running in the various browsers determines the locale that will be used by the JavaScript Date object when using the method toLocaleString. I have changed the language and locale settings of my system through windows control panel and I have also changed every browsers language settings to t...

Override the neutral language of a specific resource file within an assembly

I have an assembly that contains several resource files. Most of them have the neutral language 'nl' (Dutch, specified on the assembly as the neutral language), so I don't specify the 'nl' in their filenames. However, I'm putting strings in the English language in some other resource files (they are internal error messages) and I will ...

Adding Folders in App_LocalResources

Hi everyone, I want to add folders to keep things organized in App_LocalResources. Because when adding a lot of resorce files for different languages in this folder, files are getting messy. I added folders like Default.aspx (Folder) Default.aspx.en.resx Default.aspx.sp.resx Contact.aspx (Folder) Contact.aspx.en.resx Contact.aspx....

Is there a built in mechanism for Miles/KM interchangeability for iPhone?

I am currently working on a map-based iPhone application and wish to display some information to the user. For my application, it makes sense to have a setting of some sort where the user can choose Miles or Kilometers. Is there a built in mechanism (maybe similar to string localization) for doing this kind of value switching so that I...

GWT DatePicker Locale

is possible to set a Locale for com.google.gwt.user.datepicker.client.DatePicker? I need to show the days and the weeks in italian style. thanks ...

Read a localization string from a CustomAction in wix

I have a localizated wix project, and some custom actions in c#. Those custom actions sets some properties with customer facing text, so i want to assing a localizated text to those properties. Does any one know if i can read a localization string from a c# custom action? ...

Data Annotation validation messages are not localized when UICulture is changed in an ActionFilter

The reason seems simple enough: model binding (and therefore validation) happens before the earliest ActionFilter method (OnActionExecuting) is executed, therefore changing UICulture has no affect on validation messages. Is there an earlier integration point (besides an IHttpModule) that I could use here? I'd rather an Attribute-based ...

How to detect a user's language through their IP Address.

I have developed a website www.tenxian.com. It has three language versions, English, Japanese and Chinese. How can I write an effective PHP program which can automatically choose a language version based on the IP address of the visitor? If I use "if-else", the code would be much complicated; If I use switch-case, how to write it sin...

How to get the language value from $_SERVER['HTTP_ACCEPT_LANGUAGE'] using PHP?

<?php $language=$_SERVER['HTTP_ACCEPT_LANGUAGE']; echo $language; ?> When I use Firefox to test this block of code, I get en-us,en;q=0.7,ja;q=0.3 ; When I use IE to test the block of code, I get zh-cn . Is the value of $_SERVER['HTTP_ACCEPT_LANGUAGE'] a string? How to determine whether the preferred language is Ch...

How to localize the label of a file_field in Rails?

I want to localize a form in my app so that all the labels are in Finnish. This is easy with all other form components, but how do I do this with a file field? It always seems to give me a label "choose file" in the button and "no file chosen" immediately after the button. ...

Manage country wise databases on different servers in iPhone App

Hello all, I have current a developed app which I am going to submit in just few days . Currently The Application shows data by calling a web service and fetches data from a server . Now client requirement is to build two different databases. So the question is should I make two different builds for two different countries or should...

Why is EnumUILanguages returning only one language?

I'm using the Win API function EnumUILanguages on a Windows XP Embedded build that has Chinese and French shell language packs (MUI) installed, however the API call only returns one language code: 0409 (the base en-US installed language). If I look in the registry under HKLM\SYSTEM\CurrentControlSet\Control\Nls\MUILanguages\ then I can ...

Translation issue - wrong language is displayed by default.

Hello. I have just started writing a multilingual application for the very first time. I have read about the concept of language resource files and I think I get the main idea. I have tried to implement it, and instantly found an issue: I have entered the default language strings to a resx file, and then added another resource file (fo...

Localizing Classic ASP

HOw to localize classic asp? I got something from below link http://networkprogramming.spaces.live.com/blog/cns!D79966C0BAAE2C7D!379.entry but when i do that, i am getting error. Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: 'xmlResx' /MySite/default.asp, line 14 ...

Localization of strings in static lib

I have a project that uses a static library (SL). In that SL, there are a couple of strings I'd like to localize and the project includes all of the localization files. The localization works just fine when storing all text translations in the same file. The thing is that I'd like to separate the SL strings from the other strings. I have...

Where does ResourceBundle.getBundle("ResourceFile", new Locale("us", "US")) look for the file?

I'm running Eclipse and trying to create a simple test program trying our ResourceBundle with a couple of different files. The file is properly named as ResourceFile_us_US.properties. But I'm getting an exception on the getBundle() call because it apparently can't find the file. Where should it be located so it can be found? ...

Is there any way to automatically generate corresponding resx files for string localization in .NET?

Using this answer, I created a sample localized app. My question is, is there some way to have Visual Studio automatically generated the strings.fr.resx file with the same strings (same names that is, with blank values), so someone who knows French can just fill them in, or do I actually have to manually create the resource for each lang...

Is it possible to use data annotations for LabelFor,ValidationMessageFor, EditorFor with strongly typed resources?

I would like to use DataAnnotations in my ASP.NET MVC application. I have strongly typed resources class and would like to define in my view models: [DisplayName(CTRes.UserName)] string Username; CTRes is my resource, automatically generated class. Above definition is not allowed. Are there any other solutions? ...