Changeset 255 for branches/1.1/coverager/common.php
- Timestamp:
- 2006-10-17T20:30:41+02:00 (7 years ago)
- Location:
- branches/1.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
coverager/common.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1
-
branches/1.1/coverager/common.php
r134 r255 3 3 function get_language_file_ex($name, $l, $s) 4 4 { 5 static $ map = array(5 static $lmap = array( 6 6 'zh' => 'zh-simplified', 7 7 'zh-hk' => 'zh-traditional', 8 8 'zh-tw' => 'zh-traditional', 9 9 ); 10 static $smap = array( 11 'gbk' => 'gb2312', 12 'gb18030' => 'gb2312', 13 ); 10 14 11 if (isset($ map[$l])) {12 $l = $ map[$l];15 if (isset($lmap[$l])) { 16 $l = $lmap[$l]; 13 17 } 14 18 if (file_exists($file = "$name-$l-$s.lang.php")) { 15 19 return $file; 20 } 21 if (isset($smap[$s])) { 22 $s = $smap[$s]; 23 if (file_exists($file = "$name-$l-$s.lang.php")) { 24 return $file; 25 } 16 26 } 17 27 if (file_exists($file = "$name-$l.lang.php")) {
Note: See TracChangeset
for help on using the changeset viewer.

