From: Reini U. <ru...@x-...> - 2004-03-14 11:48:17
|
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. But no locale redirector yet, though I think it's a cool idea. Norberto Meijome schrieb: > I thought of a dictionary lookup, but I thought it was overkill--at > least for my needs. > Virtual paths would be cool if I would have every page translated... > IMHO, it would be handy to present the translated version if it existed, > or the default if that was the only one...growing on a per case basis. > > Do you mind me asking why " don't do it with plugins"? > > TIA, > Beto > > Reini Urban wrote: > >> we came to this conclusion: don't do it with plugins. >> we do it with virtual paths on >> http://phpwiki.sf.net/demo/(en|de|es|fr|...)/ and do the linking >> manually. >> >> of course it would be fine to have a tool which helps in localizing >> new wikipages by lookup in a wikiword dictionary. >> >> >> Norberto Meijome schrieb: >> >>> Hi list, >>> Is there a plugin to aid with *content / wikiwords* localisation? >>> Auto-translation of wikiwords was a passing thought...but riddled >>> with problems. >>> >>> I know pgsrc has been localised to several languages (I'll be glad to >>> help with Spanish, BTW), but I'm looking for something that will help >>> visitors see the version of a page in the correct language. >>> >>> (excuse my poor knowledge of plugin syntax and phylosophy in the >>> following examples...) >>> something like... >>> >>> <?plugin LocalisedVersion Lang="en-*" default="yes"> >>> [ALL TEXT FOR ALL ENGLISH LOCALES HERE] >>> <?plugin LocalisedVersion Lang="es-*"> >>> [ALL THE TEXT FOR SP LOCALES HERE] >>> >>> etc. >>> and only the right text would show depending on your language. >>> Notes : how to manage editing? show everything? enhance editing so >>> that only you get to edit the language you are seeing? that could be >>> problematic with versioning...maybe? >>> >>> Or maybe a combination of language detection and http redirection. >>> Say, in AWikiPage >>> >>> <?plugin LocalisedVersionRedirect Lang="en-*" >>> WikiWord="AWikiPageEnglish"> >>> <?plugin LocalisedVersionRedirect Lang="es-*" WikiWord="MiPaginaWiki"> >>> >>> Note: how to handle defaults? maybe all in one plugin declaration?: >>> >>> <?plugin LocalisedVersionRedirect Values="[en-*, AWikiPageEnglish, >>> es-*,MiPaginaWeb,ab-*, HowDoYouSayWikiPageInArabic]" default="en-*" > >>> >>> ( or default="DefaultPageForNewLanguage"). >>> >>> Or even better, include instead of redirection... >>> >>> Any suggestions on how to best implement this if not implemented yet? >>> I'm happy to do it :-) >>> >>> Best regards, -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |