bjoern michaelsen - Sun Microsystems - Hamburg Germany wrote:
Hi List,

here is a template that creates links to the translated pages, if they
exist at the recommended location:
http://wiki.services.openoffice.org/wiki/User:B_michaelsen/Default_Language_Links

Here is a test showing how it works:
http://wiki.services.openoffice.org/wiki/User:B_michaelsen/Default_Language_Links_Test
http://wiki.services.openoffice.org/wiki/User:DE/B_michaelsen/Default_Language_Links_Test

Maybe that should be used on pretty much all pages that have a
translation? It would also encourage using the standard locations for
translations.

This template would only work on the english pages linking to the
translated pages, but not on a translated page themselves, because to
navigate from one translated page to another one needs to
replace/remove the language prefix instead of prepending it. However,
this is a start and a template to use on the translated pages is just a
little more work.

Opinions? Otherwise, feel free to copy the template into the global
namespace and use it. ;-)

If I follow this right.. this will only work if the PAGENAMEs are identical below the ISO lang code. That is not being done with any consistency on any Wiki docs except the Developer's, Admin and Basic Guides. Also, as you said it is not working to go from any language except the English pages.

I've used a variation on this that works both ways, but requires passing a variable to get around restrictions on the PAGENAME variable. When a translation is done, the translatior has to do nothing more than copying the Template name to the translated page... then he/she automatcially will get all known translated languages. I've used one template per manual to allow for the dfferent languages the documents have been translated into. For example the Dev Guide uses:
http://wiki.services.openoffice.org/wiki/Template:Documentation/DevGuideLanguages
and the Admin guide uses:
http://wiki.services.openoffice.org/wiki/Template:InterWiki_Languages_AdminGuide
(which now that I look at it, needs to be cleaned up... different naming structure because it was done at different times)

Restrictions on the PAGENAME variable... you can only have the entire page name including the ISO lang code at the beginning or the very last subpage (SUBPAGENAME). Short of fiddling with lots of parser coding, you cannot easily extract everything past the ISO Lang code.

I wonder if there is some combination of the two ideas we can use?

C.
--
Clayton Cornell       [email protected]
OpenOffice.org Documentation Project co-lead
StarOffice - Sun Microsystems, Inc. - Hamburg, Germany

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to