[Phpmyadmin-devel] Re: globals
Sebastian Mendel
lists at sebastianmendel.de
Sun Dec 11 09:49:09 CET 2005
Michal Čihař schrieb:
>> it would be possible to load only contextual strings, not with current
>> lang files, but possible later with optionally in db saved strings with
>> context information
>
> What would be reason to store strings in DB?
DB was only an example ... you could set the strings into context, f.e.
not always loading strings for server status
only load the strings needed on page
PMA_str_load('main');
loads only strings needed in main and makes them available, as constants
or whatever
additionally you could use
PMA_str() to retrieve strings not in current context but needed, f. e.
in case of an error
i do not say that it is necessary to make a function call for every
single string
>> and i dont know if it is a good practice to use constants for strings
>
> Why not?
i dont know ... ;-)
--
sebastian
More information about the Developers
mailing list