本文整理汇总了PHP中Language::loadLang方法的典型用法代码示例。如果您正苦于以下问题:PHP Language::loadLang方法的具体用法?PHP Language::loadLang怎么用?PHP Language::loadLang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Language
的用法示例。
在下文中一共展示了Language::loadLang方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Construct a new merchant gateway
*/
public function __construct()
{
// Load components required by this gateway
Loader::loadComponents($this, array("Input"));
// Load the language required by this gateway
Language::loadLang("nonmerchant_demo", null, dirname(__FILE__) . DS . "language" . DS);
}
示例2: __construct
public function __construct()
{
Loader::loadComponents($this, array("Input"));
Language::loadLang("lang", null, dirname(__FILE__) . DS . "language" . DS);
Loader::loadHelpers($this, array("Html"));
$this->loadConfig(dirname(__FILE__) . DS . "config.json");
}
示例3: __construct
public function __construct()
{
// Load components required by this module
Loader::loadComponents($this, array("Input"));
// Load the language required by this module
Language::loadLang("paymentwall", null, dirname(__FILE__) . DS . "language" . DS);
}
示例4: __construct
/**
* Initialize
*/
public function __construct()
{
parent::__construct();
// Set the company ID
$this->company_id = Configure::get("Blesta.company_id");
$this->dir = PLUGINDIR . "css_javascript_toolbox/includes/" . $this->company_id . "/";
Language::loadLang("model", null, PLUGINDIR . "css_javascript_toolbox" . DS . "language" . DS);
}
示例5: __construct
/**
* Initializes the module
*/
public function __construct()
{
// Load components required by this module
Loader::loadComponents($this, array("Input", "Json"));
Loader::loadHelpers($this, array("DataStructure"));
// Load the language required by this module
Language::loadLang("cpanelextended", null, dirname(__FILE__) . DS . "language" . DS);
}
示例6: __construct
/**
* Initializes the module
*
* /DONE/
*/
public function __construct()
{
// Load components required by this module
Loader::loadComponents($this, array("Input"));
// Load config
$this->loadConfig(dirname(__FILE__) . DS . "config.json");
// Load the language required by this module
Language::loadLang("proxmoxv2", null, dirname(__FILE__) . DS . "language" . DS);
}
示例7: __construct
public function __construct()
{
Language::loadLang("admin", null, dirname(__FILE__) . DS . "language" . DS);
// Load components required by this plugin
Loader::loadComponents($this, array("Input", "Record"));
// Load modules for this plugun
Loader::loadModels($this, array("ModuleManager"));
$this->loadConfig(dirname(__FILE__) . DS . "config.json");
$this->upload_path = PLUGINDIR . "css_javascript_toolbox/includes/" . Configure::get("Blesta.company_id") . DS;
}
示例8: __construct
public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8')
{
Language::loadLang("html_invoice", null, dirname(__FILE__) . DS . "language" . DS);
Loader::loadModels($this, array("Companies", "Transactions"));
$company_id = Configure::get("Blesta.company_id");
$this->company = $this->Companies->get($company_id);
$this->Html = new Html();
$buffer = '';
$this->rtl = '';
}
示例9: __construct
/**
* Initializes the module
*/
public function __construct()
{
// Load components required by this module
Loader::loadComponents($this, array("Input"));
// Load the language required by this module
Language::loadLang("gogetsslv2", null, dirname(__FILE__) . DS . "language" . DS);
//load our config file
Configure::load("gogetsslv2", dirname(__FILE__) . DS . "config" . DS);
//error_reporting(E_ALL);
//ini_set('display_errors', 1);
}
示例10: __construct
public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false, $font = null)
{
Language::loadLang("pdf_invoice", null, dirname(__FILE__) . DS . "language" . DS);
// Invoke the parent constructor
parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
$this->line_options = array('font_size' => self::$font_size, 'x_pos' => 44, 'y_pos' => $this->table_heading_y_pos, 'border' => "BR", 'height' => 22, 'line_style' => array('width' => 0.5, 'cap' => "butt", 'join' => "miter", 'dash' => 2, 'color' => self::$primary_color), 'font_size' => self::$font_size_alt, 'padding' => self::$font_size_alt, 'col' => array('name' => array('width' => 312), 'qty' => array('width' => 70, 'align' => 'C'), 'unit_price' => array('width' => 70, 'align' => 'R'), 'price' => array('width' => 70, 'align' => 'R', 'border' => "B")), 'cell' => array(array('name' => array('align' => 'L'))));
$this->payment_options = array('x_pos' => 44, 'y_pos' => $this->table_heading_y_pos, 'border' => "BR", 'height' => 22, 'line_style' => array('width' => 0.5, 'cap' => "butt", 'join' => "miter", 'dash' => 2, 'color' => self::$primary_color), 'font_size' => self::$font_size_alt, 'padding' => self::$font_size_alt, 'col' => array('applied_date' => array('width' => 130.5), 'type_name' => array('width' => 130.5, 'align' => 'C'), 'transaction_id' => array('width' => 130.5, 'align' => 'R'), 'applied_amount' => array('width' => 130.5, 'align' => 'R', 'border' => "B")), 'cell' => array(array('applied_date' => array('align' => 'L'))));
// Set tag to use on page numbering replacement
$this->AliasNbPages("{P}");
// Set image scale factor
$this->setImageScale(2);
// Default monospaced font
$this->SetDefaultMonospacedFont("courier");
$this->setFontInfo($font);
// Set margins
$this->SetMargins(25, 260, 25);
$this->SetFooterMargin(160);
// Set auto page breaks y-px from the bottom of the page
$this->SetAutoPageBreak(true, 190);
}
示例11: __construct
public function __construct()
{
Loader::loadComponents($this, array("Input", "Record"));
Language::loadLang("tastycpanel_lang", null, dirname(__FILE__) . DS . "language" . DS);
Loader::loadHelpers($this, array("Html"));
}
示例12: __construct
/**
* Loads the language to be used for this invoice
*/
public function __construct()
{
// Load language for this template
Language::loadLang("template_invoice", null, dirname(__FILE__) . DS . "language" . DS);
}