[drupal-devel] Help system redesign

piotrwww at krukowiecki.net piotrwww at krukowiecki.net
Sun Sep 25 10:33:15 UTC 2005

On Sat, Sep 24, 2005 at 11:52:46PM -0500, Larry Garfield wrote:
> On Saturday 24 September 2005 11:25 pm, Khalid B wrote:
> > 2. XML
> > While everyone is using XML today, and it is very much in vogue, do we
> > really needed? Wouldn't a simple:
> >
> > key1:text goes here
> > key2:other text goes here
> >
> > Be just as adequate?
> Probably.  As long as it's easily hand-editable it should work fine.  I 
> suggested XML because of the plethora of editing tools available and it's 
> good design vis a vis escape-needing characters.  A colon-delimited text file 
> or some such would work too, as long as we handle escaping of real colons in 
> the string.

Assuming that keys does not contain colons (which is quite safe to
assume/impose) you don't need any escaping. Before the first : is a key,
after that is a text...

> The idea is to not use PO files and t() in the first place for the help text, 
> because for larger text strings they're much slower than a simple database 
> hit.  

How are they slower?

irc: #debian.pl
Mors Drosophilis melanogastribus!

More information about the drupal-devel mailing list