Skip to content

Commit

Permalink
Documentation clarifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Batiste Bieler committed Apr 28, 2010
1 parent d26970b commit 80f58ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/settings-list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ Defines which language should be used by default. If
PAGE_LANGUAGE_MAPPING
==================================

PAGE_LANGUAGE_MAPPING should be assigned a function that takes
the language code of the incoming browser request as an argument.
PAGE_LANGUAGE_MAPPING must be a function that takes
the language code of the incoming browser as an argument.

This function maps the incoming client language code to another language code,
This function can change the incoming client language code to another language code,
presumably one for which you are managing trough the CMS.

This is most useful if your project only has one set of translation strings
for a language like Chinese, which has several variants like ``zh-cn``, ``zh-tw``, ``zh-hk``, etc.
You don't have the ressources to a real translation for every variant.
This is useful if your project only has one set of translation strings
for a language like Chinese, which has several variants like ``zh-cn``, ``zh-tw``, ``zh-hk``,
but you don't have a translation for every variant.

`PAGE_LANGUAGE_MAPPING` help you to server the same Chinese translation to all those Chinese variants,
not just those with the exact ``zh-cn`` locale.
Expand Down

0 comments on commit 80f58ac

Please sign in to comment.