Visa denna sidaEditera denna sidaLås denna sidaLänkar till denna sidaBilagor till denna sidaHistorik för denna sidaSwikins toppSenaste ändringarSök i SwikinHjälpguide

Localization

We started to add localization to Gjallar.

What we have done

Added the mechanism to translate phrases - to which you send #translated - based on the current Q2Session's #localeID,

The translations are stored in Q2NaturalLanguageTranslator, so they do not mix with the translations in NaturalLanguageTranslator. You can read about the usage in the class comments.

This will be merged by Göran soon.

The other thing is a package called LocalizationTools. It's also in the repo. It contains two tools:


Uploaded Image:localizationmanager.PNG


Uploaded Image:languageeditor.PNG

We have class comments for these too.

What have to be done

Sprinkle all those #translated messages all over the code. Transform concatenated strings into #format:-ed ones. There's more than a thousand place to change in Gjallar. It seems to be an easy task, but we can introduce bugs by accident, so care should be taken.

Ideas


Phrases receiving #translated message, but not having a translation in the translator's dictionary should be logged in a limited size, cycling list. So the translation process could be navigation driven.

Put a "hack" into seaside to store stacks of recent string renderings, so their origins can be revealed.

Levente & Balázs