On 01-09-2008 at 08:36:54 Tero Heikkinen <[EMAIL PROTECTED]> wrote:

MidCOM 3 uses datamanager - called component to handle form data input. If some form field's validation fails, it re-displays form and puts error messages in place. Generally error messages are generated on the fly. What I want to do is following:

<code>

<input type='text' name='somthing' value='False value'>
<p i18n:translate="">${some_error_message}</p>

Use <p i18n:translate="some_error_message"/>

Now that approach gives "interpolation error, var "com_rohea_testing/ errormessages/keytest" not set. If I try to directly output that variable "com_rohea_testing/errormessages/keytest", it works perfectly well and gives the string that need to get translated.

This error refers to variables defined with i18n:name rather than variables/paths available in a template (I should probably change this error message to make this clearer).

This indirection is there to have simple, clear names in translation keys that your translators won't be confused about and won't break :)

See http://phptal.motion-twin.com/manual/en/split/ar05s04.html#id470279

--
regards, Kornel

_______________________________________________
PHPTAL mailing list
[email protected]
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to