Browse files

Update the docs a bit

  • Loading branch information...
peburrows committed Feb 3, 2008
1 parent 7c64c3f commit eb6db675cabdd198689c4fe297f267ae4a592bb3
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 eb6db67

Please sign in to comment.