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


PHP LanguageManager::getIncludeTradFilename方法代码示例

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


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

示例1: lang

    include INSTALL_PATH . '/../config/settings.inc.php';
    $oldversion = _PS_VERSION_;
    $tooOld = version_compare($oldversion, MINIMUM_VERSION_TO_UPDATE) == -1;
    $sameVersions = version_compare($oldversion, INSTALL_VERSION) == 0;
    $installOfOldVersion = version_compare($oldversion, INSTALL_VERSION) == 1;
}
include INSTALL_PATH . '/classes/LanguagesManager.php';
$lm = new LanguageManager(dirname(__FILE__) . '/langs/list.xml');
$_LANG = array();
$_LIST_WORDS = array();
function lang($txt)
{
    global $_LANG, $_LIST_WORDS;
    return isset($_LANG[$txt]) ? $_LANG[$txt] : $txt;
}
if ($lm->getIncludeTradFilename()) {
    include_once $lm->getIncludeTradFilename();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache" content="no store" />
	<meta http-equiv="Expires" content="-1" />
	<meta name="robots" content="noindex" />
	<title><?php 
echo lang('PrestaShop ' . INSTALL_VERSION . ' Installer');
?>
开发者ID:priyankajsr19,项目名称:indusdiva2,代码行数:31,代码来源:index.php

示例2: lang

    $oldversion = implode('.', $arrayVersion);
    // end of fix
    $tooOld = version_compare($oldversion, MINIMUM_VERSION_TO_UPDATE) == -1;
    $sameVersions = version_compare($oldversion, INSTALL_VERSION) == 0;
    $installOfOldVersion = version_compare($oldversion, INSTALL_VERSION) == 1;
}
require_once INSTALL_PATH . '/classes/LanguagesManager.php';
$lm = new LanguageManager(dirname(__FILE__) . '/langs/list.xml');
$_LANG = array();
$_LIST_WORDS = array();
function lang($txt)
{
    global $_LANG, $_LIST_WORDS;
    return isset($_LANG[$txt]) ? $_LANG[$txt] : $txt;
}
if ($lm->getIncludeTradFilename()) {
    require_once $lm->getIncludeTradFilename();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Cache" content="no store" />
	<meta http-equiv="Expires" content="-1" />
	<meta name="robots" content="noindex" />
	<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
	<title><?php 
echo sprintf(lang('PrestaShop %s Installer'), INSTALL_VERSION);
开发者ID:ricardo-rdfs,项目名称:Portal-BIP,代码行数:31,代码来源:index.php


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