Browse files

Update the docs a bit

git-svn-id: 76147508-cf0e-11dc-b530-7f84bd3f04ff
  • Loading branch information...
1 parent bcb2f75 commit 4e9cef7a2575c64adcfd15d0595bd0940404ecb6 peburrows committed Feb 3, 2008
Showing with 13 additions and 0 deletions.
  1. +13 −0 README
@@ -25,6 +25,8 @@ This extension works well for me, but YMMV.
In the pages you wish to have different languages available,
simply create a page part with a two letter language abbreviation
suffix for every part you wish to have available in multiple languages.
+Defaults to English if a page part is not defined that matches the
+user's requested language.
NOTE: the default language is english, so page parts without the
two-letter language suffix will be considered english.
@@ -57,3 +59,14 @@ translator:
title: dieses ist der titel
+Also, if you wish to allow the user to explicitly set their language
+(instead of relying on the browser sending the proper Accept-Language header),
+this extension utilizes session variables (and an included controller to
+set those variables) which override the Accept-Language header.
+Just hit '/language/set/:lang' and replace :lang with the two-letter language
+abbreviation. Also, hitting '/language/set/reset' will clear the session
+variable and fall-back to relying on the Accept-Language header.
+* allow setting of the default language to something other than English

0 comments on commit 4e9cef7

Please sign in to comment.