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 ;-).