lunedì 28 febbraio 2011

Traduzione Sankorè

Seguendo l'esauriente giuda fornitami da un membro dello staff che segue il progetto Sankorè ho potuto procedere con la traduzione in italiano dell'applicazione, che fino ad oggi era disponibile solo in inglese e francese.
Questa applicazione per lavagne multimediali non permette la scelta della lingua nè in fase di installazione nè una volta installata, semplicemente cerca di adattarsi alla lingua del sistema operativo. Se questa non è presente nelle lingue disponibili credo utilizzi quella predefinita, l'inglese.

Ecco il semplice HowTo su come procedere :
Here a little how to for translate Sankorè 3.1. First of all you should download the code from the adullact.net site and install the qt development tools for your operating system (http://qt.nokia.com/downloads). Pay attention at the fact that on Windows operating system the used qt development library is the VS2008 version and not the minGW library version.

Here began the process to translate the Sankorè application. First of all check if the language you are interesting in is in the project file.
Open Sankore_3.1.pro file with an editor and look for the TRANSLATIONS entry. Verify that the TRANSLATIONS list contains such an entry:

resources/i18n/sankore_TWO_CHARACTERS_LANGUAGE_CODE.ts

where the TWO_CHARACTERS_LANGUAGE_CODE is the language code you want to translate.
For example french translation need a resources/i18n/sankore_fr.ts entry.

The second step consists on extracting the strings list that has to be translated. This is easily done using the lupdate command from the root project directory:
lupdate -no-obsolete Sankore_3.1.pro.

At this point open the translation file (sankore_TWO_CHARACTERS_LANGUAGE_CODE.ts) with QT Linguist (easiest way) or edit it with your preferred editor. It is located in ROOT_PROJECT_DIRECTORY/resources/i18n/ folder.

Once the translation done execute the lrelease command from the root project directory:
lrelease Sankore_3.1.pro .
This command will create the binary file used on Sankorè 3.1 program.

Rebuild the application and the new language will be available.
That's all.
Ho seguito passo passo queste direttive e ora se il sistema operativo è in italiano anche Sankorè verrà installato in italiano. Ho poi inviato la traduzione agli attuali sviluppatori chiedendo, se lo ritengono opportuno, di aggiungerla alla versione scaricabile del progetto open-source.

Ecco come si presenta ora l'Applicazione.

1 commento:

  1. Ciao Michele, sono un insegnante dell'IIS Gadda di Paderno Dugnano, sto provando a utilizzare Sankoré in un corso Lim organizzato dal ministero. Ho visto il tuo messaggio sul forum di Sankoré, ma non ho capito se la traduzione è stata integrata al programma oppure no. Puoi farmi sapere qualcosa?
    Grazie e buon lavoro

    Roberto Marcolin

    http://twitter.com/nilocram

    RispondiElimina