当前位置: 首页>>代码示例>>PHP>>正文


PHP Localization::translate方法代码示例

本文整理汇总了PHP中Localization::translate方法的典型用法代码示例。如果您正苦于以下问题:PHP Localization::translate方法的具体用法?PHP Localization::translate怎么用?PHP Localization::translate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Localization的用法示例。


在下文中一共展示了Localization::translate方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: actionIndex

 public function actionIndex()
 {
     // главная страница новостей
     $this->pageTitle = Localization::translate("news_title", $this->lang);
     $this->pageDescription = Localization::translate("news_title", $this->lang);
     $this->pageKeywords = Localization::translate("news_title", $this->lang);
     $criteria = new CDbCriteria();
     $criteria->condition = "is_active=1 AND lang_id=:lang";
     $criteria->params = array(":lang" => $this->lang);
     $model = News::model()->findAll($criteria);
     $nCriteria = new CDbCriteria();
     $nCriteria->condition = "lang_id =" . $this->lang . " AND is_active=1";
     $ArtNewCategories = NewsCategories::model()->findAll($nCriteria);
     $this->render("index", array("content" => $model, "categories" => $ArtNewCategories));
 }
开发者ID:42point,项目名称:Vinum,代码行数:15,代码来源:FrontNewsController.php

示例2:

  <div id="wrapper-page" class="clearfix">
              <a href="/" class="pageHeader">
                  <span><?php 
echo Localization::translate('text_logo', $this->lang);
?>
</span>
              </a>
              <div class="contant-error">
                <h3><?php 
echo $model->name;
?>
</h3>
                <?php 
echo $model->content;
?>
              </div>
              <form name="search" action="/site/search">
                  <input type="text" name="search_string" class="search-error">
                  <input value="" class="logo-error" type="submit" alt="search">
              </form>
            </div>
开发者ID:42point,项目名称:Vinum,代码行数:21,代码来源:404.php

示例3: date

        <div class="wrapper-footer">
            <div id="footer" class="clearfix">
                <div class="copyright">
                    <p>© <?php 
echo date("Y");
?>
 Vinum</p>
                    <img src="/images/18+.png" alt="Картинка">
                </div>
                <ul class="social">
                    <li><a href="https://www.facebook.com/pages/VINUM/203690752984665?fref=ts" class="facebook"></a></li>
                   <!-- <li><a href="index.html" class="twit"></a></li> !-->
                </ul>
                <div class="inform">
                    <a href="/contacts"><?php 
echo Localization::translate('feedback_info_footer', $this->lang);
?>
</a>
                    <p>8 495 937-9460</p>
                    <a href="index.html" class="email">editor@vinum.ru</a>
                </div>
            </div>
        </div>
        <script type="text/javascript" src="<?php 
echo Yii::app()->request->baseUrl;
?>
/js/css_browser_selector.js"></script>
        <script type="text/javascript" src="<?php 
echo Yii::app()->request->baseUrl;
?>
/js/bootstrap_dev.js"></script>
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:main.php

示例4:

                $i++;
            }
        } else {
            echo Localization::translate("not_found_s", $this->lang);
        }
        ?>

                    </div>
					 <?php 
        if (count($modelNews) > 3) {
            ?>
					   <a href="<?php 
            echo "?search_string=" . $search . "&all_news=1";
            ?>
" class="show-all"><?php 
            echo Localization::translate("search_show_all", $this->lang);
            ?>
</a>
					   <?php 
        }
        ?>
					
					
					<?php 
    }
    ?>
					<?php 
}
?>
					<!-- / Новости !-->
					
开发者ID:42point,项目名称:Vinum,代码行数:30,代码来源:search_all.php

示例5: CDbCriteria

    echo Localization::translate('shop_director', $this->lang);
    ?>
</p>
                                <a href="index.html"><?php 
    echo $model->email_director;
    ?>
</a>
                            </div>
                        </div>
						 <?php 
}
?>
						
                        <div class="interior">
                            <p><?php 
echo Localization::translate('shop_decor', $this->lang);
?>
</p>
							<?php 
$criteria = new CDbCriteria();
$criteria->condition = "id_boutique=:id";
$criteria->params = array(":id" => $model->id);
$img = BoutiqueImages::model()->findAll($criteria);
if (!empty($img)) {
    foreach ($img as $item) {
        ?>
								
								 <a href="<?php 
        echo $item->src;
        ?>
"  class="interior-img fancybox" rel="gallery"><img width="110" height="110" src="<?php 
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:view.php

示例6:

        ?>
</span> RP: <span><?php 
        echo $object->field('rp')->value();
        ?>
</span> ОК: <span><?php 
        echo $object->field('by_oz')->value();
        ?>
</span></div>
                <div class="priceRub"><?php 
        echo $object->getPrice();
        ?>
<img src="/images/rubLogo.png" /></div>
                <!--
                <form name="button" action="">
                    <button class="buttonCorf"></button>
                </form>
                -->
            </div>
        </div>
                        <?php 
    }
} else {
    echo Localization::translate("not_found_s", $this->lang);
}
?>
                   
                   
				   </div> 
                  
          
                </div>
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:search_all_catalog.php

示例7:

            break;
        default:
            echo $model->field('brand')->value()->name;
            break;
    }
    ?>
                        </p>
                    </li>
                    <?php 
}
if (is_object($model->field('brand')->value())) {
    ?>
                    <li>
                        <p class="wine_characteristics">
							<?php 
    echo Localization::translate("website_material_v", $this->lang);
    ?>
                        </p>
                        <p class="ch-val">
                            <a href="<?php 
    echo $model->field('brand')->value()->field('ru_site')->value();
    ?>
" target="_blank"><?php 
    echo $model->field('brand')->value()->field('ru_site')->value();
    ?>
</a>
                        </p>
                    </li>
                    <?php 
}
if (is_object($model->field('year')->value())) {
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:object.php

示例8:

                                <p class="time_location"<?php 
        echo $butik->time_work;
        ?>
</p>
                                <p><?php 
        echo $butik->anons;
        ?>
</p>
                                <div  class="blog_editor"><a href="/boutiques/<?php 
        echo $city;
        ?>
/<?php 
        echo $butik->url;
        ?>
"><?php 
        echo Localization::translate('about_shop', $this->lang);
        ?>
</a></div>
                            </div>
                   </div>
						
					
					<?php 
    }
} else {
    echo "<span style='margin-left:15px;'>Not found:(</span>";
}
?>
					
					
                        
开发者ID:42point,项目名称:Vinum,代码行数:28,代码来源:city.php

示例9: rand

                    ?>
                                </ul>
                                <?php 
                } else {
                    ?>
                                <ul class="region f_<?php 
                    echo $fieldName;
                    ?>
">
                                    <li>
                                        <input type="checkbox" data-name="" id="c<?php 
                    echo rand(1, 9999);
                    ?>
"  />
                                        <label><span></span><?php 
                    echo Localization::translate("select_country", $this->lang);
                    ?>
</label>
                                    </li>
                                </ul>
                                <?php 
                }
            } else {
                ?>
                        <ul class="region f_<?php 
                echo $fieldName;
                ?>
">
                        <?php 
                foreach ($fdata['items'] as $_item) {
                    $item = $_item['item'];
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:catalog_filter.php

示例10: switch

                    <a href="/news/<?php 
        echo $post->category->url . "/" . $post->url;
        ?>
" class="villa"><?php 
        echo CHtml::encode($post->name);
        ?>
</a>
                    <p><?php 
        echo $post->anons;
        ?>
</p>
                    <div class="blog_editor"><a href="/news/<?php 
        echo $post->category->url . "/" . $post->url;
        ?>
"><?php 
        echo Localization::translate('read_more_articles', $this->lang);
        ?>
</a></div>
                </div>
            </div>
            <?php 
    }
    ?>
    </div>
</div>
<?php 
}
if (isset($news) && is_array($news) && count($news)) {
    switch ($this->lang) {
        case 19:
            $category = NewsCategories::model()->findByPk(1);
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:index.php

示例11: foreach

    </ul>
    <div id="red_wine"  class="clearfix">
        <div class="burgundy" data-source-name="<?php 
echo $model->h1;
?>
"><?php 
echo $model->h1;
?>
</div>
        <div class="menu_search">
            <?php 
echo $this->getFilter();
?>
            <div class="throwoffCon">
                <a href="#" class="throwoff"><?php 
echo Localization::translate('filter_reset', $this->lang);
?>
</a>
            </div>
        </div>
        <div class="ajax-container">
            <div class="col_main">
                <?php 
if (is_array($objects) && count($objects)) {
    foreach ($objects as $object) {
        ?>
                        <div class="col">
                            <a href="<?php 
        echo $object->getUrl();
        ?>
" class="bottleLogo"><img height="280" src="<?php 
开发者ID:42point,项目名称:Vinum,代码行数:31,代码来源:index.php


注:本文中的Localization::translate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。