Showing posts with label internationalization. Show all posts
Showing posts with label internationalization. Show all posts

Windows XP SP3 Installation Error

I was installing Service Pack 3 for Windows XP, Portuguese version, and I got this wierd message:

Este Service Pack requer a ligação à electricidade de rede antes de iniciar o programa de configuração.

Translated into english is something like "This Service Pack requires a connection of the machine to the electicity of the network before initializing the configuration program".
What is "a connection of the machine to the electricity of the network"? It does not make any sense!
After thinking a bit about this wierd message, I finally found out what the message ment: "the machime must me plugged into electricity". I was using a laptop and it was running on the battery, so SP3 refused to install.

The Portuguese internationalization team made e serious translation mistake, since the message does not make any sense, any sense at all, in Portuguese

./M6

i18n RCP applications

I'm developing an RCP application, also known as Eclipse Application, with a couple of friends and it is internationalized (i18n) for English, Portuguese and, currently non-officially and incomplete, Spanish.

Currently it is being developed on Europa (3.3.2) and after fetching the i18n Eclipse packages for Portuguese, I was unable to use the i18n files withing the application.
What this means is that the application specific stuff was i18n but the RCP core was not. For instance, the menus were in Portuguese but the welcome page navigation buttons, and all JFace stuff and alike, were in English.

I've digged for "awhile" in the official RCP documentation, FAQs, How-Tos, and non-official stuff like news groups, forums and blogs. I've made some posts in some-what official RCP fóruns/news groups but I haven't got a single answer.

After almost two weeks fighting with this problem, I've finally solved it!
It's actually quite easy and all it requires is a couple mouse clicks.

Here's what it takes to i18n the core of an RCP application:
  1. Download the language packages from the Babel project using the Eclipse install/update mechanism.
  2. Open the RCP application ".product" file.
  3. Go to the "Configuration" section.
  4. Press "Add Required Plug-ins" button.
This last step is the "magical step", it includes the i18n plugins to the RCP application.
You can identify the language plugins by their name. They come in the "<plugin>.nl_<language>" format. For instance, Portuguese JFace translation file is "org.eclipse.jface.nl_pt".

I sure hope this information helps others and save their time.

./M6