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/_InstallationResources/omconfig.php

    r1425 r1429  
    7878define( 'OMFORUM_APPLICATION_NAME'         , '{omforum_application_name}' ); 
    7979 
    80 # [ omwiki script & article paths ] 
    81 //define( 'OMWIKI_SCRIPT_PATH'           , '{omwiki_script_path}' ); 
    82 //define( 'OMWIKI_ARTICLE_PATH'          , '{omwiki_article_path}' ); 
    83  
    8480$callingURL = strtolower($_SERVER['REQUEST_URI']); //the requesting url 
    8581// Let English language be processed at last 
    8682if ( strpos( $callingURL, 'wiki/zh') |  strpos( $callingURL, 'wikizh')  ) { 
    87         define( 'OMWIKI_SCRIPT_PATH'           , '/wikizhsrc' ); 
     83        define( 'OMWIKI_SCRIPT_PATH'           , '/wikizh' ); 
    8884        define( 'OMWIKI_ARTICLE_PATH'          , '/wiki/zh/$1' ); 
    8985} else { 
    90         define( 'OMWIKI_SCRIPT_PATH'           , '/wikiensrc' ); 
    91         define( 'OMWIKI_ARTICLE_PATH'          , '/wiki/$1' ); 
     86        # [ omwiki script & article paths ] 
     87        define( 'OMWIKI_SCRIPT_PATH'           , '{omwiki_script_path}' ); 
     88        define( 'OMWIKI_ARTICLE_PATH'          , '{omwiki_article_path}' ); 
    9289} 
    93  
    94  
    9590 
    9691# [ google codes (requires a google account) ] 
Note: See TracChangeset for help on using the changeset viewer.