[formulator-dev] Formulator i18n

Joachim Schmitz js at aixtraware.de
Mon Sep 22 21:11:46 CEST 2003


Hi,

I am working on i18n for content of Formulator-forms. That is if you
want to use a formulatorform in multilingual site. There you have to
translate for example the "title", "description", "default", "extra",
"alternate_name" and the messages: "external_validator_failed",
"required_not_found", "too_long" and the special case "items. I think a
formulatorform itself should provide the translations for those values
of fields using an existing translation service.

For that to work every message needs a message-id and the
translation-service AND formulator have to know this message-id. For
filesystem-forms, like they are used in Silva,
the message-ids could be build like this:

pathpartbefore-filename-fieldname-attributename

for the example path: Silva/views/edit/Asset/Image/scale_form.form
- pathpartbefore -> Image
- filename is the pure filename without path and extension -> scale_form
- Silva/views/edit/Asset/Image/scale_form.form --> scale_form
- fieldname is the name of the field
- attributename is one of the values. "title", "description" ...

In formulator the same message-id can also be build programatically.
I wrote an extraction tool, which outputs basically a *.po file.
When looking at the resulting po-file for a lot of forms there were many
messages, with the same text, which of course would get the same
translation, but since they are in different forms, they have a
different message-ids. So it would be good to have a possibility to
manually assign a message-id in a form.

The big question is how ?
for the xml-file could it be for example for "description":
now:
<description>Image format for web.</description>
new:
<description>
<value>Image format for web.</value>
<msgid>image-format-for-web</msgid>
</description>


-- 
Mit freundlichen Grüßen                                Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163





More information about the formulator-dev mailing list