localization

Date format broken in .net 4.0 for uk format

I'm in the process of converting a couple of sites up to .net 4.0 and I seem to have a problem with regionalisaion of dates. This code: Date.Today.AddDays((Date.Today.DayOfWeek - 1) * -1).ToString() In .net 3.5 produces: '19/04/2010 00:00:00' but as soon as I change the app pool to 4.0 it produces: '4/19/2010 12:00:00 AM' Where can...

How should I add multi language support to my web app across PHP, JS and Template Files?

I'm building a website that needs to support different language translations. I have strings in PHP, JavaScript and Smarty Template files that need to translated. I want to use something like PHP's gettext() function and have a single language file for each locale. This is easy when the translatable strings are in the PHP files but I ...

Do I need to translate (local) in a sql server connection string?

When connecting to sql server, I have the hardcoded string "(local)". Is this a string I need to make available for localisation? ie, does (local) always work no matter the current language settings? ...

parsing msinfo32 report file with different language settings

Hey guys, i started to write a mini diagnostic tool for a few friends of mine. I want to collect system information via msinfo32.exe and using the report switch, so i can write a normal txt file. After that, i want to remove some categories (e.g. error reporting and start menu, because it is so much stuff), but I ran into some problems ...

Find resource for CultureInfo

Hi, I need to determine whether there is a resource file for the given CultureInfo or not. Is there an easy way? Regards ...

hook up resource manager in windows form

In Visual Studio 2008, develop legacy windows form (not wpf), I wrote customized resource manager which fetched data from sql server rather than assembly. In windows form, there is property related to language setting. Once I change language, I want to form being updated automatically. Is there any elegant way to hook up my resource ...

Match language code with countries where this language is an official or commonly used language

Is there any python library to get a list of countries for a specific language code where it is an official or commonly used language? For example, language code of "fr" is associated with 29 countries where French is an official language plus 8 countries where it's commonly used. ...

MSTest project can't get localized string?

I ran into a strange problem. In my unit test, I want to check the localized strings. However, I can't seem to get it work. For example, I created two resources: Resource1.resx for English and Resource1.zh-CN.resx for Chinese. The unit test project can only get the (default?) English resource string. This is the code I'm using: Resource...

Localize WiX installer which uses the Firewall extension

I've got a WiX installer project which uses MSBuild to generate the MSI file. The WXS file includes the WiX firewall extension: xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension" I've defined two cultures in the MSBuild file with the following definition: <PropertyGroup> ... <Cultures>en-us;no-no</Cultures> </Prop...

String resource file naming schemes and management

A trivial question perhaps, but I'm interested in the answers. I'm currently refactoring some very large monolithic string resource files (one dumpster resource file per project, in about 30 projects). I'm splitting them such that we follow a convention for our files and make the strings easier to find and manage when coding. Generally...

ResourceBundle/Propertie file to accept array of String in argument {0}

Is there a way to pass an array of String to a resource bundle to localize an unknown number of argument for a given key? I have: my.message=List of retired products: {0} getValue(bundle, "my.message", list.toArray()); With this, only the first item in the array is showed in the resulting message. ...

Since upgrading a website from ASP.NET 3.5 to ASP.NET 4.0 my dates come out in US format

Since upgrading a website from ASP.NET 3.5 to ASP.NET 4.0 my dates come out in US format, ie 3/24/2010. How can I change it back to UK format (24/3/2010) for all pages on my site? Is there a default setting somewhere? ...

what localization changes are needed for Arabic with Java Applet

How big task is it to implement support for Arabic localization, our Java 1.5 Applet was designed as fully localizable (european languages) but now we plan to add also arabic as a new language. We are using custom GUI text i/o components inherited from Component class using e.g. Drawstring, how well is arabic supported within Component...

Localization of icon and default screen in iPhone

Can the app icon and default screen be localized in iPhone? Has anyone tried it? In theory it should be possible as they're just image resources, but I found no explicit mention of this in the documentation, and I wouldn't like to have my app rejected or failing for this. ...

Various country's "currency decimal places width" in the iPhone-SDK

I read about NSLocaleCurrencySymbol, but where would I find the variable used to determine the "number of decimal places" used in a country's currency? I.E. In the USA, it's common to see dollar amounts written with 2 decimal places: $1.23 What about many other countries? Thanks. ...

Simple web general localization/translation backend (using mysql)?

Hi is there a free avaible translation backend with database avaible which can handle multiple users(no login needed), multiple languages (UTF-8) and provides automatic google translation? I just need this tool to fill a database (preferable mysql) with simple tables like this: language | label | text english | _helloworld | Hello Wor...

iPhone - How can i change the language of UIAddressBook to german?

Hello Everybody, i'm using the UIAddressBook interface to create a new Contact in my App. The problem is, that if the iPhone / Touch / Simulator is in German the UI is Englisch, has someone an idea? Greetings Fil ...

Localization problems in iPhone

Hi I have been trying to localize my iPhone app in two languages - english and german I have created two folders en.lproj and de.lproj each containing Localizable.strings file for respective language. I have included these files in my resources folder, changed the encoding of these files to UTF-16. I have tried cleaning the project an...

How to force .NET4 & it's tools to use English for exceptions and other messages.

I would like for my Win7-x64 dev box to remain in the current locale (pl-PL), but at the same time for whole .NET tools to run in English locale. I previous releases this could be achieved by not installing a language pack add-on that came up in windows update. This time it did sneak up and I cannot find it in windows update history and...

Postgresql database creation problem with localization

Hi everyone, as the output of this command createdb -E UTF8 --lc-collate=hr_HR.UTF8 --lc-ctype=hr_HR.UTF8 tempdb I get createdb: database creation failed: ERROR: invalid locale name hr_HR.UTF8 I'm a noob in postgresql so any help will be appreciated! As you can see from above command, I need to create database with support for Cr...