From: <ki...@us...> - 2009-04-04 09:13:03
|
Revision: 412 http://xc-tokai.svn.sourceforge.net/xc-tokai/?rev=412&view=rev Author: kilica Date: 2009-04-04 09:13:01 +0000 (Sat, 04 Apr 2009) Log Message: ----------- [0.16] load block language files Modified Paths: -------------- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollNewBlock.class.php modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollOneBlock.class.php modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/language/ja_utf8/blocks.php Modified: modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollNewBlock.class.php =================================================================== --- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollNewBlock.class.php 2009-04-04 08:59:45 UTC (rev 411) +++ modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollNewBlock.class.php 2009-04-04 09:13:01 UTC (rev 412) @@ -99,6 +99,7 @@ { return null; } + $form = "<label for='". $this->_mBlock->get('dirname') ."block_showCat'>"._AD_BIZPOLL_LANG_SHOW_CAT."</label> : <input type='text' size='64' name='options[0]' id='". $this->_mBlock->get('dirname') ."block_enq' value='".$this->getBlockOption('catIds')."' />\n" ; return $form; @@ -118,6 +119,11 @@ $objects = array(); $catIdArr = array(); + //load language file + $root =& XCube_Root::getSingleton(); + $langManager =& $root->getLanguageManager(); + $langManager->loadBlockMessageCatalog($this->_mBlock->get('dirname')); + //get block options if($this->getBlockOption('catIds')){ $catIdArr = explode(',', $this->getBlockOption('catIds')); @@ -203,7 +209,7 @@ { if($this->_mObject){ $root =& XCube_Root::getSingleton(); - + $render =& $this->getRenderTarget(); $render->setTemplateName($this->_mBlock->get('template')); $render->setAttribute('block', $this->_mObject); Modified: modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollOneBlock.class.php =================================================================== --- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollOneBlock.class.php 2009-04-04 08:59:45 UTC (rev 411) +++ modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/blocks/PollOneBlock.class.php 2009-04-04 09:13:01 UTC (rev 412) @@ -99,6 +99,7 @@ { return null; } + $form = "<label for='". $this->_mBlock->get('dirname') ."block_enqId'>"._AD_BIZPOLL_LANG_ENQ_ID."</label> : <input type='text' size='5' name='options[0]' id='". $this->_mBlock->get('dirname') ."block_enqId' value='".$this->getBlockOption('enq_id')."' />" ; return $form; @@ -120,6 +121,11 @@ //get block options $enqId = $this->getBlockOption('enq_id'); + //load language file + $root =& XCube_Root::getSingleton(); + $langManager =& $root->getLanguageManager(); + $langManager->loadBlockMessageCatalog($this->_mBlock->get('dirname')); + //get module asset for handlers $asset = null; XCube_DelegateUtils::call( Modified: modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/language/ja_utf8/blocks.php =================================================================== --- modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/language/ja_utf8/blocks.php 2009-04-04 08:59:45 UTC (rev 411) +++ modules_bizpoll/trunk/xoops_trust_path/modules/bizpoll/language/ja_utf8/blocks.php 2009-04-04 09:13:01 UTC (rev 412) @@ -1,7 +1,7 @@ <?php /** * @file - * @package DBKMARKEN + * @package BIZPOLL * @version $Id$ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |