Permalink
Browse files

3.1 fixes

  • Loading branch information...
1 parent 5c76820 commit ba32a53c7937ba5e08a96615884e45aafae63019 @halkyon halkyon committed Mar 28, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/en/index.md
View
@@ -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(<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,

0 comments on commit ba32a53

Please sign in to comment.