From: Reini U. <ru...@x-...> - 2004-03-10 10:52:36
|
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/ |