summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-12-31 11:29:56 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-12-31 11:29:56 +0000
commit0e1e4d51a36ea713c7bc00812d256f8ea1a63b10 (patch)
tree1720ab53b182d7a9a46e6f06afed5af3c8805d35 /modules
parent086e1a9e8e3c102469e36ff9e12c3b62aac5212b (diff)
downloadsearch-0e1e4d51a36ea713c7bc00812d256f8ea1a63b10.tar.gz
search-0e1e4d51a36ea713c7bc00812d256f8ea1a63b10.tar.bz2
search-0e1e4d51a36ea713c7bc00812d256f8ea1a63b10.zip
translate content description
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_global_search.php12
-rw-r--r--modules/mod_package_search.php15
2 files changed, 14 insertions, 13 deletions
diff --git a/modules/mod_global_search.php b/modules/mod_global_search.php
index be6b09c..274a4b3 100644
--- a/modules/mod_global_search.php
+++ b/modules/mod_global_search.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_global_search.php,v 1.5 2006/02/10 23:53:38 lsces Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_global_search.php,v 1.6 2006/12/31 11:29:56 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,18 +8,18 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: mod_global_search.php,v 1.5 2006/02/10 23:53:38 lsces Exp $
+ * $Id: mod_global_search.php,v 1.6 2006/12/31 11:29:56 squareing Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
* @subpackage modules
*/
global $gLibertySystem;
-if ( empty($contentTypes) ) {
- $contentTypes = array( '' => 'All Content' );
+if( empty( $contentTypes ) ) {
+ $contentTypes = array( '' => tra( 'All Content' ) );
foreach( $gLibertySystem->mContentTypes as $cType ) {
- $contentTypes[$cType['content_type_guid']] = $cType['content_description'];
+ $contentTypes[$cType['content_type_guid']] = tra( $cType['content_description'] );
}
- $gBitSmarty->assign( 'contentTypes', $contentTypes );
}
+$gBitSmarty->assign( 'contentTypes', $contentTypes );
?>
diff --git a/modules/mod_package_search.php b/modules/mod_package_search.php
index 9433cd8..375577c 100644
--- a/modules/mod_package_search.php
+++ b/modules/mod_package_search.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_package_search.php,v 1.8 2006/02/10 23:53:38 lsces Exp $
+ * $Header: /cvsroot/bitweaver/_bit_search/modules/mod_package_search.php,v 1.9 2006/12/31 11:29:56 squareing Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: mod_package_search.php,v 1.8 2006/02/10 23:53:38 lsces Exp $
+ * $Id: mod_package_search.php,v 1.9 2006/12/31 11:29:56 squareing Exp $
* @author Luis Argerich (lrargerich@yahoo.com)
* @package search
* @subpackage modules
@@ -26,13 +26,14 @@
$searchTemplateRsrc = 'bitpackage:search/global_mini_search.tpl';
$searchTitle = '';
}
- if ( empty($contentTypes) ) {
- $contentTypes = array( '' => 'All Content' );
- foreach( $gLibertySystem->mContentTypes as $contentType ) {
- $contentTypes[$contentType["content_type_guid"]] = $contentType["content_description"];
+
+ if( empty( $contentTypes ) ) {
+ $contentTypes = array( '' => tra( 'All Content' ) );
+ foreach( $gLibertySystem->mContentTypes as $cType ) {
+ $contentTypes[$cType['content_type_guid']] = tra( $cType['content_description'] );
}
- $gBitSmarty->assign( 'contentTypes', $contentTypes );
}
+ $gBitSmarty->assign( 'contentTypes', $contentTypes );
$gBitSmarty->assign( 'searchTitle', $searchTitle );
$gBitSmarty->assign( 'miniSearchRsrc', $searchTemplateRsrc );