Changeset 1429
- Timestamp:
- 03/14/2010 02:32:39 PM (23 months ago)
- Location:
- branches/omcollab_multilang
- Files:
-
- 2 deleted
- 3 edited
-
_InstallationResources/.htaccess (modified) (1 diff)
-
_InstallationResources/omconfig.php (modified) (1 diff)
-
wiki/LocalSettings-en.php (deleted)
-
wiki/LocalSettings-zh.php (deleted)
-
wiki/LocalSettings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/omcollab_multilang/_InstallationResources/.htaccess
r1411 r1429 18 18 19 19 # other languages 20 RewriteRule ^wikizh src/(.*)$ /w/$1 [PT,L,QSA]20 RewriteRule ^wikizh/(.*)$ /w/$1 [PT,L,QSA] 21 21 RewriteRule ^wiki/zh/(.*)$ /w/index.php?title=$1 [PT,L,QSA] 22 22 RewriteRule ^wiki/zh/*$ wiki/zh/ [L,QSA] 23 23 24 24 # default language - en 25 RewriteRule ^wikiensrc/(.*)$ /w/$1 [PT,L,QSA]26 25 RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA] 27 26 RewriteRule ^wiki/*$ wiki/ [L,QSA] -
branches/omcollab_multilang/_InstallationResources/omconfig.php
r1425 r1429 78 78 define( 'OMFORUM_APPLICATION_NAME' , '{omforum_application_name}' ); 79 79 80 # [ omwiki script & article paths ]81 //define( 'OMWIKI_SCRIPT_PATH' , '{omwiki_script_path}' );82 //define( 'OMWIKI_ARTICLE_PATH' , '{omwiki_article_path}' );83 84 80 $callingURL = strtolower($_SERVER['REQUEST_URI']); //the requesting url 85 81 // Let English language be processed at last 86 82 if ( strpos( $callingURL, 'wiki/zh') | strpos( $callingURL, 'wikizh') ) { 87 define( 'OMWIKI_SCRIPT_PATH' , '/wikizh src' );83 define( 'OMWIKI_SCRIPT_PATH' , '/wikizh' ); 88 84 define( 'OMWIKI_ARTICLE_PATH' , '/wiki/zh/$1' ); 89 85 } 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}' ); 92 89 } 93 94 95 90 96 91 # [ google codes (requires a google account) ] -
branches/omcollab_multilang/wiki/LocalSettings.php
r1428 r1429 345 345 // Let English language be processed at last 346 346 if ( 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 348 359 } 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' ); 350 370 } 351 371
Note: See TracChangeset
for help on using the changeset viewer.
