MINOR documentation

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73464 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-03-20 07:51:00 +00:00
parent 69f1595cc8
commit fceb53eae6

View File

@ -58,6 +58,18 @@
* through setting $_COOKIE['lang'], $_SESSION['lang'] or $_GET['lang'].
* Pages in different languages can have different publication states
* through the {@link Versioned} extension.
*
* Note: You can't get Children() for a parent page in a different language
* through set_reading_lang(). Get the translated parent first.
*
* <example>
* // wrong
* Translatable::set_reading_lang('de');
* $englishParent->Children();
* // right
* $germanParent = $englishParent->getTranslation('de');
* $germanParent->Children();
* </example>
*
* <h2>Translation groups</h2>
*