From 81514767330333fdcfac3dd347718d3a585ea91f Mon Sep 17 00:00:00 2001 From: mikl <> Date: Mon, 30 Jun 2008 17:04:42 +0000 Subject: Implemented MessageSource_Database --- framework/I18N/TGlobalization.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'framework/I18N/TGlobalization.php') diff --git a/framework/I18N/TGlobalization.php b/framework/I18N/TGlobalization.php index 471869c7..a30c8423 100644 --- a/framework/I18N/TGlobalization.php +++ b/framework/I18N/TGlobalization.php @@ -155,8 +155,10 @@ class TGlobalization extends TModule /** * Sets the translation configuration. Example configuration: * - * $config['type'] = 'XLIFF'; //XLIFF, gettext, mysql or sqlite - * $config['source'] = 'Path.to.directory'; //or database connection string + * $config['type'] = 'XLIFF'; //XLIFF, gettext, Database or MySQL (deprecated) + * $config['source'] = 'Path.to.directory'; // for types XLIFF and gettext + * $config['source'] = 'connectionId'; // for type Database + * $config['source'] = 'mysql://user:pw@host/db'; // for type MySQL (deprecated) * $config['catalogue'] = 'messages'; //default catalog * $config['autosave'] = 'true'; //save untranslated message * $config['cache'] = 'true'; //cache translated message @@ -266,4 +268,4 @@ class TGlobalization extends TModule } -?> \ No newline at end of file +?> -- cgit v1.2.3