On Nov 30, 1:12 am, Philip Olson <[email protected]> wrote: > Hello all, > > The following: > -http://wiki.habariproject.org/en/Creating_A_Plugin > > Links to this: > -http://schemas.habariproject.org/pluggable-sample.xml > > Which contains: > ----- > <!-- help can come from the info file --> > <help name="main"> > <value><![CDATA[This is helpful stuff.]]></value> > <value xml:lang="es-es"><![CDATA[Esto es útil cosas.]]></value> > </help> > <help name="secondary"> > <value><![CDATA[This is more helpful stuff.]]></value> > <value xml:lang="es-es"><![CDATA[Esto es más útil cosas.]]></value> > </help> > ----- > > I have two questions: > - How do the 'main' and 'secondary' name attributes apply in real life?
I'd be interested in the answer to this, too. > - Is this schema considered final and implementation ready for 0.7? > > And for what I [think I] know is true: > - 0.7+ utilizes these XML files, whereas 0.6 does not > - The lang attributes are not implemented currently, unlike help() usage today These two points are true. As yet, the code isn't implemented to properly use translations in the xml. > - Not many (4) plugins in habari-extras use <help> yet, whereas several do > within system/plugins > - None use 'main' or 'secondary', but instead simply <help> The main reason for this is that the help() in the plugin code came first. With support still remaining for it in the core code, and considering that if translation files are distributed with the plugin the help in this function can be properly translated, there has been little incentive to update the plugins. The core plugins, on the other hand, try to stay in step with current code as examples of best practices in writing plugins. Once translation support is incorporated in the core code, having help in the xml should save having to load what could be an extensive amount of text every time the plugin is loaded. > > Regards, > Philip Rick -- 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/habari-dev
