Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 953)
+++ trunk/CHANGELOG	(revision 954)
@@ -12,6 +12,7 @@
 
 ------------------------------------- 2.8.0 -------------------------------------
 25-Feb-2009 Matthias Gallas
++	Added language support for template_description (affects templates and themes)
 #	fixed wrong path to images in news and form modul
 #	fixed manage section is showed twice (ticket #694)
 -	removed unneeded icons from wb_theme
Index: trunk/wb/admin/templates/details.php
===================================================================
--- trunk/wb/admin/templates/details.php	(revision 953)
+++ trunk/wb/admin/templates/details.php	(revision 954)
@@ -25,6 +25,7 @@
 
 // Include the config file
 require('../../config.php');
+require_once(WB_PATH .'/framework/functions.php');
 
 // Get template name
 if(!isset($_POST['file']) OR $_POST['file'] == "") {
@@ -55,6 +56,25 @@
 	$row = $result->fetchRow();
 }
 
+// check if a template description exists for the displayed backend language
+$tool_description = false;
+if(function_exists('file_get_contents') && file_exists(WB_PATH.'/templates/'.$file.'/languages/'.LANGUAGE .'.php')) {
+	// read contents of the template language file into string
+	$data = @file_get_contents(WB_PATH .'/templates/' .$file .'/languages/' .LANGUAGE .'.php');
+	// use regular expressions to fetch the content of the variable from the string
+	$tool_description = get_variable_content('template_description', $data, false, false);
+	// replace optional placeholder {WB_URL} with value stored in config.php
+	if($tool_description !== false && strlen(trim($tool_description)) != 0) {
+		$tool_description = str_replace('{WB_URL}', WB_URL, $tool_description);
+	} else {
+		$tool_description = false;
+	}
+}
+if($tool_description !== false) {
+	// Override the template-description with correct desription in users language
+	$row['description'] = $tool_description;
+}	
+
 $template->set_var(array(
 								'NAME' => $row['name'],
 								'AUTHOR' => $row['author'],
Index: trunk/wb/templates/classic/info.php
===================================================================
--- trunk/wb/templates/classic/info.php	(revision 953)
+++ trunk/wb/templates/classic/info.php	(revision 954)
@@ -1,7 +1,7 @@
 <?php
 /**
  * $Id$
- * Website Baker theme: wb_theme
+ * Website Baker theme: classic
  * This theme is the default WB backend Theme
  * Feel free to modify or build up on this template.
  *
@@ -35,6 +35,6 @@
 $template_author			= 'Matthias Gallas';
 $template_license			= '<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>';
 $template_license_terms		= '-';
-$template_description		= 'Default backend theme for Website Baker 2.8.';
+$template_description		= 'Backend theme for Website Baker 2.7.';
 
 ?>
\ No newline at end of file
Index: trunk/wb/templates/classic/languages/EN.php
===================================================================
--- trunk/wb/templates/classic/languages/EN.php	(nonexistent)
+++ trunk/wb/templates/classic/languages/EN.php	(revision 954)
@@ -0,0 +1,29 @@
+<?php
+
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2009, Ryan Djurovich
+
+ Website Baker 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.
+
+ Website Baker 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+//Modul Description
+$template_description 	= 'Backend theme from Website Baker 2.7.';
+
+?>
\ No newline at end of file

Property changes on: trunk/wb/templates/classic/languages/EN.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/wb/templates/classic/languages/index.php
===================================================================
--- trunk/wb/templates/classic/languages/index.php	(nonexistent)
+++ trunk/wb/templates/classic/languages/index.php	(revision 954)
@@ -0,0 +1,28 @@
+<?php
+
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2009, Ryan Djurovich
+
+ Website Baker 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.
+
+ Website Baker 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+header("Location: ../../../index.php");
+
+?>
\ No newline at end of file

Property changes on: trunk/wb/templates/classic/languages/index.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/wb/templates/classic/languages/DE.php
===================================================================
--- trunk/wb/templates/classic/languages/DE.php	(nonexistent)
+++ trunk/wb/templates/classic/languages/DE.php	(revision 954)
@@ -0,0 +1,29 @@
+<?php
+
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2009, Ryan Djurovich
+
+ Website Baker 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.
+
+ Website Baker 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+//Modul Description
+$template_description 	= 'Das Backend-Theme von Websitebaker 2.7.';
+
+?>
\ No newline at end of file

Property changes on: trunk/wb/templates/classic/languages/DE.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/wb/templates/wb_theme/info.php
===================================================================
--- trunk/wb/templates/wb_theme/info.php	(revision 953)
+++ trunk/wb/templates/wb_theme/info.php	(revision 954)
@@ -9,7 +9,7 @@
  *
  * LICENSE: GNU General Public License
  * 
- * @author     Matthias Gallas
+ * @author     Johannes Tassilo Gruber
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
  * @version    2.80
@@ -32,7 +32,7 @@
 $template_function			= 'theme';
 $template_version			= '2.80';
 $template_platform			= '2.8';
-$template_author			= 'Matthias Gallas';
+$template_author			= 'Johannes Tassilo Gruber';
 $template_license			= '<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>';
 $template_license_terms		= '-';
 $template_description		= 'Default backend theme for Website Baker 2.8.';
Index: trunk/wb/templates/wb_theme/languages/EN.php
===================================================================
--- trunk/wb/templates/wb_theme/languages/EN.php	(nonexistent)
+++ trunk/wb/templates/wb_theme/languages/EN.php	(revision 954)
@@ -0,0 +1,29 @@
+<?php
+
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2009, Ryan Djurovich
+
+ Website Baker 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.
+
+ Website Baker 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+//Modul Description
+$template_description 	= 'Default backend theme for Website Baker 2.8.';
+
+?>
\ No newline at end of file

Property changes on: trunk/wb/templates/wb_theme/languages/EN.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/wb/templates/wb_theme/languages/index.php
===================================================================
--- trunk/wb/templates/wb_theme/languages/index.php	(nonexistent)
+++ trunk/wb/templates/wb_theme/languages/index.php	(revision 954)
@@ -0,0 +1,28 @@
+<?php
+
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2009, Ryan Djurovich
+
+ Website Baker 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.
+
+ Website Baker 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+header("Location: ../../../index.php");
+
+?>
\ No newline at end of file

Property changes on: trunk/wb/templates/wb_theme/languages/index.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Index: trunk/wb/templates/wb_theme/languages/DE.php
===================================================================
--- trunk/wb/templates/wb_theme/languages/DE.php	(nonexistent)
+++ trunk/wb/templates/wb_theme/languages/DE.php	(revision 954)
@@ -0,0 +1,29 @@
+<?php
+
+// $Id$
+
+/*
+
+ Website Baker Project <http://www.websitebaker.org/>
+ Copyright (C) 2004-2009, Ryan Djurovich
+
+ Website Baker 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.
+
+ Website Baker 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.
+
+ You should have received a copy of the GNU General Public License
+ along with Website Baker; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+*/
+
+//Modul Description
+$template_description 	= 'Das Standard-Backend-Theme von Websitebaker 2.8';
+
+?>
\ No newline at end of file

Property changes on: trunk/wb/templates/wb_theme/languages/DE.php
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
