I wanted to translate the data fields, but without changing their
names (because the original names "author" and "title" are used in the
system). So I added the usual translation markup (>>  <<) in the
template used by the action.data page:

[r][c top]>>{+p}:<< [c][box {+p} "{:{+p}}" cols=50 rows=5][(source {p}:
{+p})][box][else]
[r][c]>>{+p}:<< [c][text {+p} "{{p}:{+p}}" size=60][if]

I left the colons inside to prevent coincidences. Then I added the
translations to my language page:

!!Data fields
author: :: Autor:
changesummary: :: Comentario:
title: :: Título
created: :: Fecha de creación:
description: :: Descripción:
accesskey: :: Tecla de acceso

You see, I use three new default fields I'm experimenting with. They
hold metadata about the page, useful for usability and Search Engine
Optimization. The "created" (the creation time) and "description" will
appear in the XTHML header (they have special XHTML tags reserved),
and I'm planning to make the link markup to automatically add the
accesskey parameter if the accesskey data field exists in the linked
page. By the way, those metadata fields are provided by default by
most CMSs I know.

Well, the translation didn't wok. I thought the markup proccessing
order was the cause. I was right. I moved the translation markup to
the "end" group but it didn't work. I moved it to the "form" group and
it worked! Here are the lines I added to my config.php:

MarkUp('pre', 'translate', '');
MarkUp('form', 'translate', '/>>(.+)&lt;&lt;/me', 'BOLTtranslate("$1",
"")');

Is it needed the first line? Would the translations be proccesed twice
without it?

What is the markup proccesing order? Are the groups and markups
processed in the order they were defined? Are the individual markups
processed in alphabetical order inside their group?

Do you think this "solution" can be useful for the docs or is it too
much evident?

Thanks

Marcos

--
http://alinome.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to