moodle/filter/multilang
moodler df1c46115b Improvement to filters, providing speed boost AND better compatibility
with Turck MMCache.

Filter function must now have a particular name

   eg resource_filter

where "resource" is the name of the directory that filter.php is in.
2004-08-08 06:57:44 +00:00
..
filter.php Improvement to filters, providing speed boost AND better compatibility 2004-08-08 06:57:44 +00:00
README.txt Working code by Gaëtan Frenoy to allow texts to contain multiple languages! 2004-01-20 08:56:38 +00:00

///////////////////////////////////////////////////////////////////////////
// This program is part of Moodle - Modular Object-Oriented Dynamic      //
// Learning Environment - http://moodle.com                              //
//                                                                       //
//  Multilingual Filter                                                  //
//  $Id$ //
//                                                                       //
///////////////////////////////////////////////////////////////////////////

This filter implements an XML syntax to provide
fully multilingual website.  No only the Moodle interface
can be translated but also the content!

To activate this filter, add a line like this to your
config.php:

   $CFG->textfilter1 = 'filter/multilang/multilang.php';

Syntax to display a multilingual content:

 <lang lang="en" format="auto">
 Introduction
 </lang>

 <lang lang="es" format="auto">
 Introducción
 </lang>

 <lang lang="de" format="auto">
 Einleitung
 </lang>


///////////////////////////////////////////////////////////////////////////
//                                                                       //
// Copyright (C) 2004  Gaëtan Frenoy <gaetan à frenoy.net>               //
//                                                                       //
// This program is free software; you can redistribute it and/or modify  //
// it under the terms of the GNU General Public License as published by  //
// the Free Software Foundation; either version 2 of the License, or     //
// (at your option) any later version.                                   //
//                                                                       //
// This program is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
// GNU General Public License for more details:                          //
//                                                                       //
//          http://www.gnu.org/copyleft/gpl.html                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////