> First, I have the strings "Invalid" and "Missing" embeddeed in the code as the
> default messages to return when a
> field is missing or invalid. Other people will want to return strings in other
> languages. Should I just use
> "gettext" here as a basic internationalization solution?
where ever strings are in embedded, replace with a variable reference. the variable
reference could
be set by reading in a lang-specific file of lines containing <variable>=<replacement
text>.
then just make sure each lang file has the same variable names.
> Secondly, there is a bit of HTML that's used to format the message returned, such as
> making it bold and red for
> example.
>
> I'd like a solution where people can specify overrides if they'd like, and not have
> to be explicit about it for
> every project, as the same defaults will be good ones most of the time for anyone.
sounds like a config issue, per cgi. each cgi could have its PARAMS which set
different HTML inserts.
--
Maark
----------------------------------------------------
Mark Koopman
WebSideStory, San Diego CA 92121
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]