localization

How do you fill in a resource string at run-time?

I have an application I'd like to localise. However, the strings to be localised occasionally contain parts I'd like to provide at runtime, such as action links. For example, I have a string like this: Please <a href="/help">click here</a> for help. I can't just split it into two resources since in different languages it'll be in a diff...

NSLocale always returns en_US

I want to get current selected iphone language. If using "NSLocale" it returns always the same language. It seems that this is not the one you choose inside iphone settings. NSLocale * locale = [NSLocale currentLocale]; NSString * localLanguage = [locale objectForKey:NSLocaleLanguageCode]; NSLog (@"Language : %@", localLanguage); // Ret...

Localize iphone application with a application defined language

Heey, I can localize my iPhone app with the systems local by localizing the nib files and adding a Localizable.strings file to my project. Is there a way to set the language to a application specific language and then load the correct stings/files? (The idea comes from an Canadian, he wants his device in english, but some apps in fre...

String Localisation Problem in Silverlight Application

I have an odd problem in silverlight. I use the following XAML to bind the content of a label to a double property in my viewmodel. Content="{Binding FeePeriodActual, Mode=OneWay,StringFormat=\{0:c\}}" However, the display string always shows the $ Dollar Currency symbol rather than the the £. This is the same on the production serv...

Design Database Architecture: DB for use with a couple different languages

I have a web site that should have translation of the same content on different languages. So it should have the databases entries with different translations of same strings. It is not just a small website, so there is a lot of different complicated data structures. I have one idea how to realize this. But I don't really like it. I t...

Android & menu localization

I would like to change language (locale of application) programmatically. The main problem for me is updating menu labels. I tried the following method: @Override public boolean onMenuOpened(int featureId, Menu menu) { if (shouldChangeMenuLabels) { for (int i = 0; i < menu.size(); i++) { MenuItem menuItem = m...

How to make PoEdit correctly parse custom "ngettext" implementation?

I've coded a gettext wrapper that makes the whole process of l10n a little bit simpler but somehow I can't get PoEdit to correctly identify and parse plural version calls to the function. This is what I originally had: _e(array('%d house', '%d houses'), 5); But that doesn't work at all, PoEdit picks nothing at all. I also tried: _e('...

Crystal Reports Localization

We're developing an existing application with C# 2.0 and Crystal Reports for Visual Studio 2005. The problem is we want to localize the report dynamically. How to achieve it in Crystal Reports 2005? So if the current culture is "id-ID", I want my report to display "Rp" instead of "$" , and the date format in in Indonesian format. ...

localization of web.sitemap using a resx file in other project

Hi, I'm developing a web application and i'm using culture info localization. All the localization resources of my application are in another project containing only resource (resx) files. This architecture is used because I have other applications using the same resources. My problem now is the localization of web.sitemap. Currently I...

NSDate formatting using locale

Hi All, I was using the following method for creating NSDate Object based on the timezone and locale. descriptionWithCalendarFormat:timeZone:locale: [[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d" timezone:nil locale:nil]; But this method is no mo...

.NET: Local date format from language tag/culture?

Given a CultureInfo object or language tag (e.g. "en-US") string, is there a function that will give me the default DateTime string format (e.g. "mm/dd/yyyy") for that specific culture/language? ...

WindowsForm switch between languages ?

Initially i tried to set: Thread.CurrentThread.CurrentUICulture = new CultureInfo("new selected language"); But from what i saw it doesnt change what was there already, only what comes after it. So i would need to refresh all the current text i had from the past language in use. i am looking for the best appoch to refresh my UI ...

Enterprise Library Validation Application Block and Internationalization

Scenario A .NET/WPF desktop application should be localized (or in MS terms globalized) to a different language than English. That is, the UI needs to be adopted completely (labels, icons, ...). Log file entries, audit trail entries, and other outputs of the application, however, should remain in English to allow the English-speaking ...

Best practices for localization

HI there, i am localizing my application. i have some REG EX(for english) expression for client side validation.if i want to localize for non-english ,what is the best approach should i have REG-Ex for all languages chosen for localization comments\suggestions appreciated. Thanks DEE ...

ICEfaces v2.0.0 Internationalization problem - form is not redisplayed upon action listener call

Hello everyone, I am experiencing problems with localization. i am using JSF 2.0 Mojarra (xhtml not jsp) (2.02 - FCS) IceFaces Core 2.0.0 - beta1 IceFaces Compatibility Library v2.0.0. - beta1 Here is the sample of the xhtml page. DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh...

There has to be a better way to do localized database fields

So far there've been several questions regarding this, and they've all come down to the same answer: one table for the language-neutral data, 1-* to a table with the translations and an indexed language ID field. This has several problems: Twice as much CRUD. Need for Ajax CRUD if you want a decently friendly web UI. More than twice t...

iPhone app using different language than the one set in OS / device?

Hi, Is it possible to have my app running in a different language than the one that is set in the OS? I want to have a language switch in my app’s setting menu, where the user can e.g. select german for the app, while his system is running in english. From what I’ve already read, it seems it’s not possible without having my own localiz...

App_GlobalResources being used for non-localization related files

The App_GlobalResource folder is for localizing strings, but in a project I'm working on there are xslts in it. Furthermore, we have a custom localization provider that gets all the strings from the database, so we don't use file based localization and hence don't use the App_GlobalResource folder for localization. I talked to the develo...

Localization of Default.png is not working

Hi I wonder if anyone has encountered the same problem and how they solve it. I want to localize Default.png so I do the following steps which from what I understand should be the correct way (please correct me if I'm wrong). Select Default.png in xcode Command-I to Get Info Click on Make File Localizable Go back to General Tab (wh...

Is there an example of a custom ResourceProvider for storing RESX files in an external assembly?

We have so, so many RESX files in our ASP.NET 3.5 web application (for localisation purposes) and it's making code changes very slow; every time it runs for the first time all the symbols are built for the re-compiled RESX files. Ideally I'd like to store these files in an external assembly and create a ResourceProvider that acts as a b...