railsinstaller/railsinstaller-windows — pull request #36 by kelvinst (2013-10-31 19:25:59+00:00)
Title: Translate for brazilian portuguese

So, I was working on this since yesterday. :smiley:

It was really easy, since Inno already supports i18n. But I simplified a little how to translate, separating the messages into other files. So basically, if anyone want to translate, just need to:

- Copy the `resources/railsinstaller/Default.isl` to the `Languages` subdirectory and rename it to the correct language name (e.g. `Russian.isl`).
- Translate the messages inside it.
- Add the translation to the `[Languages]` section in `railsinstaller.iss` file.

> e.g.
> `Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl,Languages\Russian.isl"; LicenseFile: "LICENSE-RU.txt"`

- Be happy. :smile:

So, about how the translations are loaded. In [this help file](http://www.jrsoftware.org/ishelp/index.php?topic=custommessagessection), says that Inno Setup search for a `LanguageID` that match the UI language of the user machine. These `LanguageID`s are already setted by the default language scripts of Inno, that are in `%InnoInstallationDir%/Languages`, so, if you use one of them, you'll be covered on tranlation loading.

The only one behavior change is that now: before open the main installation wizard, a window asking the user the language for the installation is shown. Yes, even if the language is discovered by Inno it will show the window, but with the language already assigned to the UI language. But, I think that this will not annoy at all, so you think?