northcreation-agency / multilingual

Multilingual support for Silverstripe, an alternative way

Home Page:http://www.kreationsbyran.se/blogg/multilingual-module-for-silverstripe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

###############################################
Multilingual Module
###############################################

Maintainer Contact
-----------------------------------------------
Herbert Cuba Garcia
<herbert (at) kreationsbyran (dot) se>

Requirements
-----------------------------------------------
Tested on Silverstripe 2.4.6

For Multilingual module 2.0, for Silverstripe 3.0 see
http://www.kreationsbyran.se/blogg/multilingual-module-2-0-for-silverstripe-cms-3-0/

Documentation
-----------------------------------------------
This module allows you to add multilanguage fields to your page/dataobjects.
Read more on http://www.kreationsbyran.se/blogg/multilingual-module-for-silverstripe/

and 

http://ss-multilingualdemo.kreationsbyran.se/documentation/

On classes that have extended from MultilingualPage/MultilingualDataObject one might 
be forced to use:

function getCMSFields() {
		
		SiteTree::disableCMSFieldsExtensions();
		$fields = parent::getCMSFields();
		SiteTree::enableCMSFieldsExtensions();
		...
		....
		.
		.
		$this->extend('updateCMSFields', $fields);
		return $fields;
}

in order to get all the fields to appear in the CMS as multilingual.



Installation Instructions
-----------------------------------------------
Add the module to the root of your site and name it to "multilingual" if not already namned that way.
- Make your Page class extend from MultilingualPage (both class and controller)
- Make SiteConfig extend MultilingualSiteConfig
- Make all Dataobjects you want in multilingual extend from MultilingualDataObject instead of DataObject.
Open up /multilingual/_config.php and set the module up
Do /dev/build/ and Voila! 
You can also do a /dev/build/?en=1 if you want all pages (that extend multilingualpage) to be viewable for english.

Usage Overview
-----------------------------------------------
Use this module if you want to add multilanguage to your site in
an easy way.

About

Multilingual support for Silverstripe, an alternative way

http://www.kreationsbyran.se/blogg/multilingual-module-for-silverstripe

License:Other


Languages

Language:PHP 89.6%Language:JavaScript 4.8%Language:Racket 4.2%Language:Scheme 0.7%Language:Perl 0.4%Language:Shell 0.2%