TitleWiki-based localization
Date20-Mar-2007 15:35:08 EET
JSPWiki version2.6
SubmitterJanneJalkanen
Idea CategoryUserInterfaceIdea
Reference
Idea StatusNewIdea

Translating property files is boring and error-prone, and they easily fall out of use. We should have a LocalizationPlugin (or some other tool), which takes the contents of a wiki page, and creates a regular property file out of it.

The contents could e.g. look like this:

[{Localize source='LatestBaseBuild/i18n.properties' language='fi_FI' version='2.6.1'

info.title = Sivuhistoria
info.welcome = Tervetuloa
}]

Which would generate something like this:

Language: fi_FI
Version: 2.6.1
Latest source version: 2.6.5

ID English fi_FI
info.title Page History Sivuhistoria
info.welcome Welcome Tervetuloa
info.goodbye Goodbye

Where "info.goodbye" is an addition between 2.6.1 and 2.6.5, and therefore appears as blank. That would make it really easy with one glance to see what is missing from localization.

It would also be relatively trivial to convert the contents of the plugin to a property file automatically and include it in a build.

The base for the translation would be taken from the default language bundle which ships with JSPWiki; someone would just need to upload the new version into wiki.

This idea works also for multiple files.

This is not without precendent, Meebo is already using a wiki for translations. It has spawned translations for useless languages as well, such as "l33t" and "bork", but I think we could survive those ;-)

Problem: How to defend against vandalism? Maybe allow only trusted users to edit?


Additional issue: how to add missing/new localization id's automatically to the page?

--JanneJalkanen, 20-Mar-2007


Second issue: somehow comments need to be included as well so that users know in which context a particular string appears.

--JanneJalkanen, 20-Mar-2007

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 20-Mar-2007 15:37 by JanneJalkanen