Michal Čihař schrieb:
Hi
I guess this should go to the list :-)
On Thu, 22 Dec 2005 08:16:41 +0100 Sebastian Mendel lists@sebastianmendel.de wrote:
Michal Čihař schrieb:
I don't see much benefit of this. This would mean to split files into smaller ones, what means more maintenance. For most things splitting will be tricky or will end in main category.
with templates PMA will not include the text itself, but its name
<?php ... $strings['CouldNotLoadExtension'] = null; $template->append_by_ref( 'errors', $strings['CouldNotLoadExtension'] ); ... ... // load strings from DB $sql = 'SELECT `id`, `string` FROM `cz` WHERE `id` IN (\'' . implode(array_keys($strings)) . '\')'; $strings = PMA_DBI_fetch_result($sql, 'id', 'string'); ... ... $template->display(); ... ?>
Yes, templates would be great, but I still do not see advantage of db stored strings ;-).
- strings will be fetched at and of script (after all other tasks finished) -> saves memory for other tasks - only really needed strings will be fetched - loading strings take time and memory - less strings less time and memory, and i don't think that PMA will uses less strings in future ... ;-)