Log in

View Full Version : Phrase use and management within products, plugins and hacks


buro9
09-16-2005, 01:44 PM
Really... can someone write a comprehensive guide on this?

What the XML schema within plugin and product XML is.

How do you call a phrase in your plugin?

How do you pass a phrase parameters?

Is there a maximum to the number of parameters a phrase can take?

Are phrases eval'd like templates are?

I'm really tired of being lost in this area and just hard coding English... I'd actually like to do things properly but can't find documentation on what proper is.

Andreas
09-16-2005, 05:14 PM
> What the XML schema within plugin and product XML is.
Don't think it's really that important to explain the schema in detail, as it is created automatically anyway.

> How do you call a phrase in your plugin?
$vbphrase['varname'] in PHP, $vbphrase[varname] in Templates

> How do you pass a phrase parameters?
construct_phrase($vbphrase['varname'], $param 1, $param2); in PHP
<phrase 1="$param1" 2="$param2">$vbphrase[varname]</phrase> in Templates

> Is there a maximum to the number of parameters a phrase can take?
Not "really"

> Are phrases eval'd like templates are?
No.