views:

167

answers:

2

I'm working on a multi-lingual WPF project that will be localized into many different languages. One issue we are currently having is localizing the tool tips on the minimise, maximise and close buttons. The tool tips seem to get localized when changing the OS language in Vista and Windows 7, however on XP SP3 the tool tips still appear in English even though the current OS language is set to Arabic (ar-SA) for example.

Are these tool tips controlled by the operating system or do they come from somewhere else like the .NET language pack?

UPDATE: I forgot to add, applications such as Microsoft Word and Notepad appear with localized tool tips on the same XP machine that failed to display our application's tool tips in the desired language.

The language has been changed via the Keyboards and Languages panel in intl.cpl.

UPDATE AGAIN: Installing the English version of the application on Arabic Vista also results in Arabic tool tips suggesting that the localization of these tool tips is done outside of the application. I have seen no trace of a .NET language pack on the Vista machine leading me to believe that with Vista, the tool tips are controlled by the OS. The question now is why aren't these tool tips being localized for the Arabic application being installed on Arabic XP SP3?

FURTHER UPDATE: Today I went on the XP machine and created a new WPF application out of curiosity to see what it's tool tips came out like and discovered that they were localized to Arabic; meaning that the problem with the tool tips is within the application itself. The question now is, what possible ways are there of preventing these tool tips being localized? It was suggested today that it could be the setting of the windows xml lang, however I did not get the time to test this out and can hopefully try this tomorrow.

A: 

The tooltip texts come from the operating system and the language will depend on the language version of the operating system. If you for instance open the Windows Explorer, the menus of that application should appear in the same language as the tooltips for Minimize/Maximize buttons.

Note that changing regional settings in the Control Panel does not affect this.

Fredrik Mörk
We had come to a similar conclusion. However, one of the tester's noticed that on XP SP3, our application ran with English tool tips whereas Microsoft applications like Word 2007 and Notepad had the Arabic tips. Could this simply be an XP problem considering the tool tips are fine in both Vista and Win7?
Jason
OK, that sounds a bit odd. Can't explain that, unfortunately.
Fredrik Mörk
To me, it seems logical that the OS controls them. The only way I can think of the actually modify these is to start using the Windows API. I haven't actually attempted this yet but it doesn't seem like the ideal solution because it could add a lot of ugly code and doesn't really fit very well with out localization approach.
Jason
A: 

The problem is our use of some 3rd party controls. These controls do some localization that works in Vista and Win 7 but falls back to some strings in an XML file on XP for some reason.

Jason