localization

free to use, in a programmer-friendly format, dictionaries for european languages

I want to experiment with an idea I have of automatically localizing software, or at least suggesting a reasonable translation if a localized string is not available. I'm not sure this will be working satisfactorily tomorrow morning but I just wanted to play with this idea. Does anybody know of a dictionary that is free to use, and is ...

PHP date() in foreign languages - e.g. Mar 25 Aoû 09

I have a script that needs to display date data to an international audience - e.g. "submitted Tue 25 Aug 09" Is there an easier/cleaner way to get this converted to the French(etc) equivalent "Mar 25 Aoû 09" than: Setting a constant LANG and a $LANGUAGES array of include files & : if(LANG != 'EN') { include $LANGUAGES['LANG']; }...

Localizing MVVM based WPF applications

What would be a good aproach to localize a MVVM based WPF allication that can change its language at runtime? Of course I could create a string property in the ViewModel for each and every string that is displayed somewhere in the View but that seems rather tedious to me. Is there a common approach/best practice for this? ...

Gender problem in a django i18n translation

I need to solve a gender translation problem, and Django doesn't seem to have gettext contexts implemented yet... I need to translate from english: <p>Welcome, {{ username }}</p> In two forms of spanish, one for each gender. If user is a male: <p>Bienvenido, {{ username }}</p> and if is a female: <p>Bienvenida, {{ username }}</p>...

How to have userfriendly names for enumerations?

Hi, I have an enumeration like Enum Complexity { NotSoComplex, LittleComplex, Complex, VeryComplex } And I want to use it in a dropdown list, but don't want to see such Camel names in list (looks really odd for users). Instead I would like to have in normal wording, like Not so complex Little complex (etc) Also, my applicat...

How to change the language of 'Google News' regarding the GSnewsBar object (Ajax API)?

The following deals with GSnewsBar object of the Goolge-Ajax search API which is explained here: http://www.google.com/uds/solutions/newsbar/reference.html There are some parameters which allow to change the layout of the news. But there is no example of how to set the news language. Currently I always get news in English but my aim i...

Java's equalsIgnoreCase fails with ß ("Sharp S" used in German alphabet)

Hi, my first question here :-) Did my best reading the rules and searching if the question was already asked before. The following code String[] strings = {"cAsE", "\u00df"}; for (String str : strings) { System.out.println(str.equalsIgnoreCase(str.toLowerCase())); System.out.println(str.equalsIgnoreCase(str.toUpperCase())); } ...

Prevent java from localizing SimpleDateFormat output

Basicaly I want to format a Date object using a specific pattern and the output should be in English. How can I prevent java from translating the output in the system language? String date = new SimpleDateFormat("EEE MMM dd kk:mm:ss yyyy").format(myDate); // output is in German: // Mi Aug 26 16:35:55 2009 ...

Localization of Settings.bundle defaultvalues

How can I have a localized default values in the Settings bundle? I encounter this problem for regionally sensitive defaults. Consider an option in the settings bundle to indicate whether to show distances in miles or kilometers. The default settings for en_US and en_GB is 'miles, and km for everywhere else. Does the SDK provide a se...

ASP.NET 3.5 / IIS 6 Output Garbled / Corrupt

I have inherited a web application and when trying when trying to put it on the same server on a different IP and IIS site I get a page full of stuff like this in all browsers. (not sure how the server here will output this but it is basically the same as if you were to open a binary in a text editor or bad character encoding). ���r#ə6�...

Why does my localization cookie seem to not want to change?

Why cant I change cookie? If you chose a language you cant change. You have to empty your cookies if you want to change language. Why is that? if (isset($_GET['setLang']) && $_GET['setLang'] == 'en' || isset($_COOKIE['setLang']) && $_COOKIE['setLang'] == 'en') { setcookie("setLang", 'en', time()+(3600*12)); //expires in 12 hours incl...

jQuery UI Dialog Buttons from variables

I have variables holding the translated labels for buttons inside a jquery ui dialog. I cannot fill the button array key with the variable itself, and can't find any way to let it treat my variable just as string. translations['ok'] = 'ok'; translatinos['cancel'] = 'cancel'; // not working jQuery('#foo').dialog({ buttons: { ...

List of availible cultures

Hi, I have a WinForms application which can be localized through satellite assemblies for the resx-files. The user can switch the application language at runtime. So my question is: Is there any way to dynamically find out which cultures are shipped as localized resources with my client? ...

Managing the localization of Java properties files

I have a Web application written in Java that is targeting several countries, all of which speak different languages (and more often than not, several languages -- that's Europe for you). We have a bunch of .properties files that hold the localized strings, and our current procedure is to e-mail the language-specific files to our partne...

Is it possible to generate a global list of marked strings at compile time/runtime?

So, I'm working on translating my C++ app into multiple languages. What I'm currently using is something like: #define TR(x) (lookupTranslatedString( currentLocale(), x )) wcout << TR(L"This phrase is in English") << endl; The translations are from a CSV file which maps the english string to the translated string. "This phrase is in...

Is C# in English universally?

Does the C# language localize for people that have their machine's set to some language other than English? In other words, is C# always unconditionally written in English? ...

CultureInfo.ClearCachedData does not work. It randomly sometimes works sometimes not.

I want to detect the regional settings changes and show the dates in the correct format in a WPF application. But there is a strange problem with CultureInfo.ClearCachedData. It randomly either works either not. Does anybody know why, and a workaround for this ? I know that the regional settings are stored in the registry, but it's too p...

Which is a good way to maintain resources for Internationalization in .Net

I have thought of three approaches to create and maintain resources in .Net projects for WinForms using Visual Studio 2008. (I am sure there should be more than three ways.) I need to decide on one before starting to implement internationalization for our product. Have individual sets of resource files (resx) for each windows form or p...

Java library to "spell out" numbers in localized fashion

I'm looking for a java library that would be able to format numbers as words for specified locale, (e.g. 17 = seventeen, 1023 = one thousand twenty three for en_US). I need this to work with monetary amounts, so decimal fractions need to be supported. The only thing I found on Google was ICU project, particularly this class. It looks so...

Is there a tool that finds strings in XAML to localize?

I am needing to localize an existing app written in C# with WPF/XAML. I have found the Rgreatex plugin to Resharper that helps find and move strings found in C# to resource files. But, it only works with *.cs files. Does anyone know of a tool that helps find localizable strings in XAML? ...