From ba32a53c7937ba5e08a96615884e45aafae63019 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 28 Mar 2013 15:17:16 +1300 Subject: [PATCH] 3.1 fixes --- docs/en/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/index.md b/docs/en/index.md index 5c8fd03..a85f953 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -85,18 +85,18 @@ Alternatives: #### ThroughObject::add_extension() -Enabling Translatable through *Object::add_extension()* in your *mysite/_config.php*: +Enabling Translatable through *add_extension()* in your *mysite/_config.php*: :::php - Object::add_extension('SiteTree', 'Translatable'); - Object::add_extension('SiteConfig', 'Translatable'); // 2.4 or newer only + SiteTree::add_extension('Translatable'); + SiteConfig::add_extension('Translatable'); // 2.4 or newer only #### Through $extensions :::php class Page extends SiteTree { - static $extensions = array( + private static $extensions = array( "Translatable" ); } @@ -118,7 +118,7 @@ Example: :::php Translatable::set_default_locale(); // Important: Call add_extension() after setting the default locale - Object::add_extension('SiteTree', 'Translatable'); + SiteTree::add_extension('Translatable'); For the Translatable class, a "locale" consists of a language code plus a region code separated by an underscore,