[pmwiki-users] i18n and hidden path

dso dso at moosoft.com
Sun Nov 12 12:59:16 CST 2006


I am using .htaccess mod_rewrite to hide the path on my wiki:

# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.  It's not necessarily PmWiki's directory.
RewriteBase /test
# Send requests without parameters to pmwiki.php.
RewriteRule ^$           pmwiki.php  [L]
# Send requests for index.php to pmwiki.php.
RewriteRule ^index\.php$ pmwiki.php  [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([^/a-z].*) pmwiki.php?n=$1  [QSA,L]

I loaded a french translation:
XLPage('fr','PmWikiFr.XLPage');

But that makes the prompts always in French.

How do I make it so a user can select the language they want without
duplicating the site or is that a necessity?

Daniel




More information about the pmwiki-users mailing list