[ Index ] |
|
Code source de dotProject 2.1 RC1 |
1 <?php 2 ob_start(); 3 @readfile( "{$dPconfig['root_dir']}/locales/$AppUI->user_locale/common.inc" ); 4 5 // language files for specific locales and specific modules (for external modules) should be 6 // put in modules/[the-module]/locales/[the-locale]/[the-module].inc 7 // this allows for module specific translations to be distributed with the module 8 9 if ( file_exists( "{$dPconfig['root_dir']}/modules/$m/locales/$AppUI->user_locale.inc" ) ) 10 { 11 @readfile( "{$dPconfig['root_dir']}/modules/$m/locales/$AppUI->user_locale.inc" ); 12 } 13 else 14 { 15 @readfile( "{$dPconfig['root_dir']}/locales/$AppUI->user_locale/$m.inc" ); 16 } 17 18 switch ($m) { 19 case 'departments': 20 @readfile( "{$dPconfig['root_dir']}/locales/$AppUI->user_locale/companies.inc" ); 21 break; 22 case 'system': 23 @readfile( "{$dPconfig['root_dir']}/locales/{$dPconfig['host_locale']}/styles.inc" ); 24 break; 25 } 26 eval( "\$GLOBALS['translate']=array(".ob_get_contents()."\n'0');" ); 27 ob_end_clean(); 28 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 18 19:46:52 2007 | par Balluche grâce à PHPXref 0.7 |