summaryrefslogtreecommitdiff
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
commitcf4bd08971a378a6173be50fad78f943b10fc3ea (patch)
tree3321716d70be2afb17284139daf6053ebe50900b
parent03c0934652884a51311f7002389568a9d8f46309 (diff)
downloadliberty-cf4bd08971a378a6173be50fad78f943b10fc3ea.tar.gz
liberty-cf4bd08971a378a6173be50fad78f943b10fc3ea.tar.bz2
liberty-cf4bd08971a378a6173be50fad78f943b10fc3ea.zip
translate content description
-rw-r--r--LibertyContent.php4
-rw-r--r--get_content_list_inc.php10
2 files changed, 8 insertions, 6 deletions
diff --git a/LibertyContent.php b/LibertyContent.php
index 85a686d..f339a99 100644
--- a/LibertyContent.php
+++ b/LibertyContent.php
@@ -3,7 +3,7 @@
* Management of Liberty content
*
* @package liberty
-* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.165 2006/12/13 22:33:27 nickpalmer Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.166 2006/12/31 11:29:56 squareing Exp $
* @author spider <spider@steelsun.com>
*/
@@ -1652,7 +1652,7 @@ vd( $this->mErrors );
if( !empty( $contentTypes[$aux['content_type_guid']] ) ) {
// quick alias for code readability
$type = &$contentTypes[$aux['content_type_guid']];
- $aux['content_description'] = $type['content_description'];
+ $aux['content_description'] = tra( $type['content_description'] );
$aux['creator'] = (isset( $aux['creator_real_name'] ) ? $aux['creator_real_name'] : $aux['creator_user'] );
$aux['real_name'] = (isset( $aux['creator_real_name'] ) ? $aux['creator_real_name'] : $aux['creator_user'] );
$aux['editor'] = (isset( $aux['modifier_real_name'] ) ? $aux['modifier_real_name'] : $aux['modifier_user'] );
diff --git a/get_content_list_inc.php b/get_content_list_inc.php
index 6a53cfe..77a4e85 100644
--- a/get_content_list_inc.php
+++ b/get_content_list_inc.php
@@ -3,7 +3,7 @@
* get_content_list
*
* @author Christian Fowler>
- * @version $Revision: 1.26 $
+ * @version $Revision: 1.27 $
* @package liberty
* @subpackage functions
*/
@@ -65,8 +65,10 @@ if( empty( $contentListHash ) ) {
// Finally we're ready to get some content
$contentList = $gContent->getContentList( $contentListHash );
-$contentTypes = array( '' => 'All Content' );
-foreach( $gLibertySystem->mContentTypes as $cType ) {
- $contentTypes[$cType['content_type_guid']] = $cType['content_description'];
+if( empty( $contentTypes ) ) {
+ $contentTypes = array( '' => tra( 'All Content' ) );
+ foreach( $gLibertySystem->mContentTypes as $cType ) {
+ $contentTypes[$cType['content_type_guid']] = tra( $cType['content_description'] );
+ }
}
?>