localization

locale.getlocale() problems on OSX

I need to get the system locale to do a number of things, ultimately I want to translate my app using gettext. I am going to distribute it on both Linux and OSX, but I ran into problems on OSX Snow Leopard: $ python Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" f...

How to localize numbers for iPhone app?

In my iPhone app, I need to display object counts which I then localize, since English makes the distinction of singular and plural, I do the following // pseudocode if (objectList.count == 1) { NSLog(@"%@", NSLocalizedString(@"1 object", @"display one objects"); } else { NSLog(@"%@", NSLocalizedString(@"%d objects", @"display mu...

ASP.NET MVC: When to set Thread.CurrentThread.CurrentUICulture?

I am just beginning to localize an ASP.Net MVC application. Most of the strings will be defined in resource files and retrieved via Matt's Localization Helpers. Other strings must be stored in a database. My Question: Should I set CurrentUICulture early in the request pipeline and use that throughout the application, or directly use ...

Any tips on localizing dates in .NET or in general?

I understand different cultures specify dates differently. Some put day before month (27/10/2009 vs. 10/27/2009) and others use dots instead of slashes (10.27.2009 vs. 10/27/2009). However, is there anything special that needs to be done regarding the year? Do non-Christian cultures refer to the same numeric year (2009) as Christian c...

Change language in mobile application

I make application for windows mobile 5 in Visual Studio 2005 in C#. How can change language of my mobile application. I made each form localizable and i have 2 resources files for each form. but i dont know how to change the language. It doesnt have to be changable in program beacuse i need to 2 version of this application ...

ASP - Insert French Character in Access Database

I want to insert french characters in an Access database using ASP. Can you please suggest me what can i do?? Many Thanks Shaheen ...

Can I combine local resources in satellite assemblies?

I have a lot of local resourse files /Controls/App_LocalResources/SomeControl.ascx.resx, /Pages/App_LocalResources/SomePage.aspx.resx, etc. I want to add another language and I do not want to go through all folders and add SomeControl.ascx.de.resx files for example and then have to recompile the whole think. I would like to use sa...

C# WPF Converting english numbers to arabic numbers.

I need to display an english double in arabic numerical characters for an application I am working on. Here is an example class that holds the double: public class Class1 { private double someDouble = 0.874; public double SomeDouble { get { return someDouble; } } } I want to convert the value of SomeDouble to...

Dojo custom build with NLS / localisation

Hello everyone, I have a problem implementing a cross domain custom build in Dojo. The situation is as follows: i have a pretty large application, with a good number of localisation bundles, so basicly the directory structures is like core\ (my module) nls\ fr\ en\ .... When building my module the result is a big...

How to localize new 'posts' with ASP.net MVC

Im just starting with localization today and need some information. I have a project running in ASP.net MVC using .resx (global / local) files to place text based on the chosen language on the page. But this is premade/static content. How to do this for, for instance, new posts if you have a blog? Do you have to do it by loading differe...

Localizing Application (main) Menu?

I'm porting a UNIX application which uses the Qt framework (Qt, not QuickTime) to Mac/Cocoa. Life is good, generally. Qt has a Cocoa implementation, so with some Objective-C++, I've gotten lots of Mac-specific bits working. I can't get the main menu (i.e., the Application menu) to translate. It's set using: [NSApp setMainMenu:menu]...

Override culture when using GetGlobalResourceObject or GetLocalResourceObject in ASP.NET

I've implemented localization in this ASP.NET project using resource files and that's working as expected. But there is one situation where I have to display the whole page in one language and then a section of it in some other language based on the selection from a dropdown list. From what I can see, the GetGlobalResourceObject() and G...

Choose specific localization on an iPhone app

How can I let the user choose a specific localization in my app? I have a book and I'd like the users to be able to read all the different translations of it. ...

How to use dynamic localization in an asp .net web application

Hi, I have added a resourcefile named language.resx to my App_GlobalResources folder, which enables me to access strings like App_GlobalResoureces.Language.MyString. How do I make this dynamic? So if I have a string called ResourceID, how do I pull the correct resource from the resource file? so far I tried this: string s = "MyString...

Localization of text that includes subscript and inline images in WPF

I have a small WPF application that I am working on localizing. I have read thru a number of documents but I have not found a good source of information about dealing with 'rich' content - for example: I have a ui element (TextBlock) that contains a mix of text with formatting, inline images and symbols. I want to localize this element....

Handling localization + customer differentiation

We're maintaining a web product that we've sold to several different customers. We support the site in native and english. As a part of the maintainence we've begun updating to .NET 3.5 and while during this we would like to have better support for differentiated layout/localization in the product. We're trying not to have any customer ...

Detect underlying cause for java.io.FileNotFoundException

FileNotFoundException is thrown on all sorts of occasions - not necessarily only when the file name is invalid, but also when e. g. permissions do not allow a file to be created or read: java.io.FileNotFoundException: \\server\share\directory\test.csv (Anmeldung fehlgeschlagen: unbekannter Benutzername oder falsches Kennwort) at jav...

Crystal Reports in Visual Studio 2008 and Localization

I can't seem to find any information about localizing reports created with Crystal Report that ships with Visual Studio 2008. How do you change the reports to be localized? Do they use resx files? Any links to where to find out more information about how localization using Crystal Reports in Visual Studio 2008 would be very helpful. ...

Nested content localization in ASP.NET

Having the following markup <p> No items found. Want to <asp:LinkButton ID="LinkButton1" runat="server" OnCommand="LinkButton1_Command" Text="create" /> a new one? </p> how do i localize both the text and LinkButton.Text? I don't want to create two literals that frame the link. Is there a better way? ...

Improving WPF RichTextBox Language Support?

After a bit of digging it would appear that the WPF built in spell checker only supports English, Spanish, French, and German - which beggars belief somewhat. I can understand they can't really ship comprehensive spell checkers for every language with WPF, but I'd at least expect it to be able to use the Office ones if they are installed...