localization

Generating .po/.mo files

I have a database full of translations I'd like to generate either .po or .mo files. I'm using C#, but I could also port an implementation from PHP if one exists. I can't find any examples in any languages using anything other than GNUs gettext utilities. Does anyone know of one? ...

Is there an STL and UTF-8 friendly C++ Wrapper for ICU, or other powerful Unicode library

I need a good Unicode library for C++. I need: Transformations in a Unicode sensitive way. For example sort all strings in a case insensitive way and get their first characters for index. Convert various Unicode strings to upper and to lower case. Split text at a reasonable position -- words that would work for Chinese and Japanese as ...

Should I set Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture by default in my app?

I have an app which is for a global market and needs to be localisable. During development I had some problems in that my satellite assemblies never seemed to be picked up even when I changed my locale. After some research I now understand why this is and was able to test by setting the CurrentUICulture in the code and verify that thin...

Flex 3 DataGridColumn HeaderText Localization

I'm working in a multi-language application using ResourceBundle in Flex 3. I'm displaying data in a DataGrid and defined DataGridColumn headerText like this headerText="{localizedHeaderText('LABEL_USER_NAME')} this function returns the localized label for the username, but when I dynamcally select another language evertying gets refr...

Localise ASP.NET 2.0 App

At the moment, all of our localised texts are stored in resource files and then referenced using <% $Resouces:Something %>. Unfortunatly this method is not scaling too well, were getting lots of diff problems & the files are becoming rather big. Does anyone know of a better solution for localisation? Or is resource file's all I've got in...

MVC DateTime binding with incorrect date format

Asp.net-MVC now allows for implicit binding of DateTime objects. I have an action along the lines of public ActionResult DoSomething(DateTime startDate) { ... } This successfully converts a string from an ajax call into a DateTime. However, we use the date format dd/MM/yyyy; MVC is converting to MM/dd/yyyy. For example, submitting a...

What is the difference between .resx and .config files in .NET?

When should I use .resx file and when go for .config file? What is the basic difference between the both in terms of usage? ...

Image localization in asp.net

Howdy, I have a web application which needs to support multiple languages. We currently have quite a lot of images on the site with text in them. Im trying to find a way to localize these images with the least amount of hassle. What i have come up with so far is to add sub folders to the current /Images folder which relate to the requ...

How do I test localization in a winforms application?

Is there a way to test different languages in a Windows application without changing the localization of the OS or adding code to the application to forcibly change the current culture? Perhaps some type of a launcher that will launch the application with a specified culture? ...

How can I convert text with a localized number format into a number in MS SQL Server?

Let's say I have a number in the german number format "1,00" which is equal to 1.0 in the en-US locale. Is there a built-in way to convert this text in T-SQL to the corresponding number? It seems like CONVERT and CAST accept only numbers with '.' as the decimal separator and I see no way to tell them otherwise. I was thinking about sim...

ASP.Net Time Localization

I'm working on a site that lets users add calendar entries, on the main page all users can then see these entries with some text saying how long until those entries are current for example Entry 1 : 5 Minutes Entry 2 : 7 Hours Entry 3 : 4 Days The problem I'm having is that everyone could be in different timezones. I've decided I want ...

Put custom control Strings into application resource

I have a custom winforms control (inherits from Component) that has some strings displayed to the user. How can I make these strings accessible so the user of the component can customize them, and - if he wants - easily put them into a resource for localization? I thought of exposing them as browsable properties so they can be customi...

Browser language: autodetect vs user select?

Hi, I am designing a localized web app. I am leaning on auto-detect browser language setting. But I notice a number of respectable sites asking the user to select a language. Is there any usability issue you know of (from actual experiences out there) with just auto-detecting user language? Thanks. ...

Programmatic way to get all the available languages (in satellite assemblies)

I'm designing a multilingual application using .resx files. I have a few files like GlobalStrings.resx, GlobalStrings.es.resx, GlobalStrings.en.resx, etc. When I want to use this, I just need to set Thread.CurrentThread.CurrentCulture. The problem: I have a combobox with all the available languages, but I'm loading this manually: comb...

Indexing multi-lingual content with Lucene.net

I use Lucene.net for indexing content & documents etc.. on websites. The index is very simple and has this format: LuceneId - unique id for Lucene (TypeId + ItemId) TypeId - the type of text (eg. page content, product, public doc etc..) ItemId - the web page id, document id etc.. Text - the text indexed Title - web page titl...

Naming Convention for State / Region / Province

I am building a class that represents a US State or Canadian Province. What should the class be called? Some ideas: Region: Problem with this is that .Net has a RegionInfo class that uses the term Region to represent a country (and not a State or Province). State: Problem with this is that it could cause confusion with Application St...

Javascript Date Localization

I'm working with an ASP.NET app with localization and globalization. I'm having some difficulty understanding how to get the Date() function in javascript to work properly given the user's environment. My user base is split between Mexico (spanish) and the US (english). Since the Mexico date format is dd/mm/yyyy and the english format...

Testing tools for i18n application

Hi All, Any suggestion for a tool to test internationalized/ localized application? The application's UI is through web interface. The localized strings are stored in xml files. Best regards ...

Reverse a ResourceManager

If you do ResourceManager.GetString(Key), you can get the value of an item in a resource. Is there a way to do a reverse lookup to get the key from the resource given the value (essentially de-translate)? ...

Override .Net Resource file in Calling Application

I have an asp.net 2.0 web application that is calling class library. A fairly common scenario to be sure. The class library is making use of a number of resource files and a ResourceManager object to set localised strings. This works absolutely fine in most circumstances based on the user's browser settings. However there are some circ...