![]() |
|---|
| [ Index ] |
Source Code Reference for V1.00 |
[Summary view] [Print] [Text view]
1 <?php /* $Id: core.php 183 2008-07-21 01:22:03Z pedroix $ $URL: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk/locales/core.php $ */ 2 if (!defined('W2P_BASE_DIR')) { 3 die('You should not access this file directly'); 4 } 5 6 ob_start(); 7 8 @readfile(W2P_BASE_DIR . '/locales/' . $AppUI->user_locale . '/common.inc'); 9 10 // language files for specific locales and specific modules (for external modules) should be 11 // put in modules/[the-module]/locales/[the-locale]/[the-module].inc 12 // this allows for module specific translations to be distributed with the module 13 14 if (file_exists(W2P_BASE_DIR . '/modules/' . $m . '/locales/' . $AppUI->user_locale . '.inc')) { 15 @readfile(W2P_BASE_DIR . '/modules/' . $m . '/locales/' . $AppUI->user_locale . '.inc'); 16 } else { 17 @readfile(W2P_BASE_DIR . '/locales/' . $AppUI->user_locale . '/' . $m . '.inc'); 18 } 19 20 switch ($m) { 21 case 'departments': 22 @readfile(W2P_BASE_DIR . '/locales/' . $AppUI->user_locale . '/companies.inc'); 23 break; 24 case 'system': 25 @readfile(W2P_BASE_DIR . '/locales/' . $w2Pconfig['host_locale'] . '/styles.inc'); 26 break; 27 } 28 eval('$GLOBALS[\'translate\']=array(' . ob_get_contents() . "\n'0');"); 29 ob_end_clean(); 30 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Nov 20 03:00:14 2008 | Cross-referenced by PHPXref 0.7 |