mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
69f1595cc8
commit
fceb53eae6
@ -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>
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user