i have a website that i built in two languages including two different "dictionaries" based on browser language
in each langXX.php i have
define('SOME_STRING', 'Some string');
etc... but i hate now this solution because i'm never sure if i included a new definition in both files...so i'm trying to move including all the definition in mysql and build a function like
translate('SOME_STRING', 'en'); // ouput 'Some string'
i'm moving to mysql because id like to manage the translation directly via a CMS i will build, i dont want to have the webmaster going trough ftp and textmate...
so my question is, if this latter solution i sbetter or is too stressful for mysql to get a query for each text element of the page..
PS. as far as i remember even osCommerce used this practice right?