Ignore:
Timestamp:
03/14/2010 02:32:39 PM (2 years ago)
Author:
Xiping.Wang
Message:

[omcollan_multilang] refactor multi lang setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/omcollab_multilang/wiki/LocalSettings.php

    r1428 r1429  
    345345// Let English language be processed at last 
    346346if ( strpos( $callingURL, 'wiki/zh') |  strpos( $callingURL, 'wikizh')  ) { 
    347         require_once('LocalSettings-zh.php' ); 
     347        // Chinese site 
     348        $wgDBprefix = 'zh_'; 
     349        $wgArticlePath = 'wiki/zh/$1'; 
     350        $wgScriptPath = '/wikizh'; 
     351 
     352        // site name 
     353        $wgSitename = OMWIKI_APPLICATION_NAME.' (Chinese)'  ; 
     354        //  
     355        # [ omwiki script & article paths ] 
     356        define( 'OMWIKI_SCRIPT_PATH'           , '/wikizh' ); 
     357        define( 'OMWIKI_ARTICLE_PATH'          , '/wiki/zh/$1' ); 
     358 
    348359} else { 
    349         require_once('LocalSettings-en.php'); 
     360        // default language - English 
     361        $wgDBprefix = OMWIKI_DB_TABLE_PREFIX; 
     362        $wgArticlePath = OMWIKI_ARTICLE_PATH; 
     363        $wgScriptPath = OMWIKI_SCRIPT_PATH; 
     364        // default site name 
     365        $wgSitename = OMWIKI_APPLICATION_NAME; 
     366        //  
     367        # [ omwiki script & article paths ] 
     368        define( 'OMWIKI_SCRIPT_PATH'           , '/w' ); 
     369        define( 'OMWIKI_ARTICLE_PATH'          , '/wiki/$1' ); 
    350370} 
    351371 
Note: See TracChangeset for help on using the changeset viewer.