From: Reini U. <ru...@x-...> - 2004-03-16 16:07:39
|
Reini Urban schrieb: > I decided now to write a _WikiTranslation plugin, which helps > * on translating strings, > * pages - by using an external translator (Google) -, and > * displaying the translation matrix for certain lists, > like pages, buttons, plugins and all wikiwords. It's in CVS as plugin/_WikiTranslation.php Should be at the demo site tomorrow Pacific Time (0 am pacific time or 9:00 CET). _WikiTranslation: Display pagenames and other strings in various languages. Can also be used to let a favorite translation service translate a whole page. Current favorite: translate.google.com if from_lang = en or fr Examples: <?plugin _WikiTranslation page=HomePage languages=fr ?> Translation service for HomePage into french (redirect to translate.google.com) <?plugin _WikiTranslation what=pages ?> Translation matrix of all pages with proper translations (all pages in pgsrc) <?plugin _WikiTranslation what=wikiwords match="W*" limit=20 ?> Translation matrix of the first 20 wikiwords matching "W*" <?plugin _WikiTranslation string=HomePage languages=fr,de,sv ?> Translation matrix for all given languages <?plugin _WikiTranslation string=HomePage ?> Translation matrix for all supported languages <?plugin _WikiTranslation string=HomePage languages=fr ?> Just return the translated string for this language. What I want to add is a link in the matrix to let users suggest translations online to ease localisation. This would help the wikiadmin to add needed strings to locale/$lang.po > But no locale redirector yet, though I think it's a cool idea. Mediawiki (wikipedia) uses it's own db table for the page translation matrix and uses its own syntax to link to a different language. We could make use of the _WikiTranslation helpers and define special interwiki monikers for translated pages, similar to the magic "Upload:" moniker. I think this would be the most transparent method. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |