internationalization

how to change language (culture) of aspx and ajax controls

hi I am working on a project and I have one page that displays a calendar extender in English and another extender in another page in Hebrew. How do I set up the culture of a control/page? The page that displays the calendar extender in Hebrew, also displays the File uploader in English, how is that possible? ...

What's the best way to manage a lot of text in code (and also support translations)?

I'm developing an application which has a lot of text and also different modules which can be included or not in every build. For each saved project we generate automatically a report with all the details (i.e. description of algorithms used in that project and so on). Currently we embed all text as strings in the source code and we als...

NSDateFormatter won't parse dates using locale settings?

I'm trying to parse dates using the user's date preferences [NSDateFormatter setDefaultFormatterBehavior:NSDateFormatterBehavior10_4]; NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; [dateFormatter setDateStyle:NSDateFormatterShortStyle]; NSDate *date = [ dateFormatter dateFromString:@"7/4/2008" ]; NSLog(@...

How to create own header.jsp in JBoss Portal with language support?

I want to create own header.jsp file instead of the one included in the JBoss Portal 2.6 but have to support the locale set by the user. The original header.jsp does not contain any i18n and I don't know how to do it, especially how to get the actual locale. ...

Parse multiple languages in php

I am working on a small parser that should accept input in a number of languages. I am going to have maybe 50 strings that will serve as keywords/anchors in parsing the input. In PHP, what would be the best way to organize these translated keywords? One possible solution that comes to my mind is to use an associative array. Like this: ...

UTF-8 URI explodes Apache & mod_rewrite

I have Apache with mod_rewrite, and whenever I enter a URI with an accented character in it, Apache gives me a "Page Not Found" error. The URI is: /places/tags/Café My page encoding is UTF-8. My database connection & tables are UTF-8. My Apache DefaultCharacterSet = UTF-8. Yes, Apache has language packs, but I believe they're there for...

Internationalizing Desktop App within a couple years... What should we do now?

So we are sure that we will be taking our product internationally and will eventually need to internationalize it. How much internationalizing would you recommend we do as we go along? I guess in other words, is there any internationalization that is easy now but can be much worse if we let the code base mature and that won't slow us do...

How do you handle translation of text with markup?

I'm developing multi-language support for our web app. We're using Django's helpers around the gettext library. Everything has been surprisingly easy, except for the question of how to handle sentences that include significant HTML markup. Here's a simple example: Please <a href="/login/">log in</a> to continue. Here are the approache...

Enumerating all strings in resx

We would like to enumerate all strings in a resource file in .NET (resx file). We want this to generate a javascript object containing all these key-value pairs. We do this now for satellite assemblies with code like this (this is VB.NET, but any example code is fine): Dim rm As ResourceManager rm = New ResourceManager([resource name], ...

i18n - best practices for internationalization - XLIFF, gettext, INI, ... ??

EDIT: I would really like to see some general discussion about the formats, their pros and cons! EDIT2: The 'bounty didn't really help to create the needed discussion, there are a few interesting answers but the comprehensive coverage of the topic is still missing. Six persons marked the question as favourites, which shows me that there...

Locales and ResourceBundles in a plugin-based program

We need to start adding internationalisation to our program. Thankfully not the whole thing yet, just a few bits, but I want the way we do it to scale up to potentially cover the whole program. The thing is, our program is based on plugins, so not all strings belong in the same place. As far as I understand it, Java's ResourceBundle wor...

What's the best way to test a site which displays differently depending on the client location?

I am using an IP location lookup to display localised prices to customers depending on whether they are visiting from the UK, US or general EU and defaulting to the US price if the location can't be determined. I could easily force the system to believe I'm from a specific country for testing but still there is no way of knowing for su...

ASP.NET Globalization -- Displaying dates

Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization settings. Background info: I have a website which displays a <table> HTML object. In that <table> HTML object, I have a column which displays dates. My server being in the US, those dates show up as MM/DD/YYYY. Many of my us...

How do you internationalise text in the database?

Having a fully internationalised application is a necessity if you want to sell worldwide. In Java we're using resource bundles and that solves things for static text codeside. But what do you do about text that is stored in the database? Starting with static definitions, to user modifiable objects, ending with user entered data. Assum...

Localization: Do all locales put the weekday before the date?

Here's a simple (hopefully) L10N question: Do all locales want this format: Sunday, Nov 23, 2008 with the weekday before the date, or do some locales want it after the date like this? Nov 23, 2008, Sunday ...

Using font resources for graphical languages in Java 1.4

I have the following issue using java 1.4 I try to display a very simple HTML document in a JTextPane that contains chinese characters. If the locale used when launching the java virtual machine is user.language=zh and user.country=CN the graphical characters are rendered correctly. For any other locale, the characters are rendered as...

Obtaining an NSDecimalNumber from a locale specific string?

I have some string s that is locale specific (eg, 0.01 or 0,01). I want to convert this string to a NSDecimalNumber. From the examples I've seen thus far on the interwebs, this is accomplished by using an NSNumberFormatter a la: NSString *s = @"0.07"; NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; [formatter setForm...

Mix of Arabic and English causes problems in JTextArea (Java)

I have a JTextArea which displays HTML of an Arabic web page. So it's essentially a mix of English and Arabic. In the JTextArea, with columns set to 30, certain text just disappears instead of wrapping properly. The weird thing is that if I copy the invisible text and paste it into Notepad, then I can see it in Notepad. If I change the n...

Application internationalization/translation experience using crowd-sourcing? Mechanical Turk?

I have developed a web application using internationalization best practices such as putting all my displayable strings in property files, etc, etc. I would like to have the strings in the property files translated into 5 different languages. Does anyone have any experience using Mechanical Turk or another crowd sourcing service for la...

How do I automatically set a user's locale in PHP?

Is there an easy way to parse the user's HTTP_ACCEPT_LANGUAGE and set the locale in PHP? I know the Zend framework has a method to do this, but I'd rather not install the whole framework just to use that one bit of functionality. The PEAR I18Nv2 package is in beta and hasn't been changed for almost three years, so I'd rather not use th...