* 这不是一个自由软件!任何情况下您都不允许对程序代码以任何形式任何目的的修改或 * 使用;不允许对程序代码以任何形式任何目的的再发布;只有经胜誓网络允许的情况下 * 您才可以使用本软件程序建站。 * ============================================================================ * Author: Eric QQ: 981030 * Id: infoall.php 2019-10-11 17:40 Eric $ */ return [ 'shipment-way' => expediere căi', 'shipment-way-text' => ' <p>Putem oferi servicii de livrare expresă la nivel mondial, cum ar fi DHL sau FedEx sau TNT sau UPS sau alt expeditor EMS / Air Mail pentru expediere.</p> <p>Timpul de livrare va avea nevoie de 2-3 zile în cea mai mare parte a țării din întreaga lume pentru DHL / UPS / FEDEX / TNT.</p> <p>Oferim Transport Gratuit prin DHL sau FedEx dacă comanda totalizează mai mult de 1000 USD.</p> ', 'terms-of-use' => 'Termeni de utilizare', 'terms-of-use-text' => '
* @see loadFallbackMessages * @see sourceLanguage */ protected function loadMessages($category, $language) { $messageFile = $this->getMessageFilePath($category, $language); $messages = $this->loadMessagesFromFile($messageFile); $fallbackLanguage = substr($language, 0, 2); $fallbackSourceLanguage = substr($this->sourceLanguage, 0, 2); if ($language !== $fallbackLanguage) { $messages = $this->loadFallbackMessages($category, $fallbackLanguage, $messages, $messageFile);
* @return string|bool the translated message or false if translation wasn't found. */ protected function translateMessage($category, $message, $language) { $key = $language . '/' . $category; if (!isset($this->_messages[$key])) { $this->_messages[$key] = $this->loadMessages($category, $language); } if (isset($this->_messages[$key][$message]) && $this->_messages[$key][$message] !== '') { return $this->_messages[$key][$message]; } elseif ($this->hasEventHandlers(self::EVENT_MISSING_TRANSLATION)) { $event = new MissingTranslationEvent([ 'category' => $category,
* @param string $language the target language * @return string|bool the translated message or false if translation wasn't found or isn't required */ public function translate($category, $message, $language) { if ($this->forceTranslation || $language !== $this->sourceLanguage) { return $this->translateMessage($category, $message, $language); } return false; } /**
* @param string $language the language code (e.g. `en-US`, `en`). * @return string the translated and formatted message. */ public function translate($category, $message, $params, $language) { $messageSource = $this->getMessageSource($category); $translation = $messageSource->translate($category, $message, $language); if ($translation === false) { return $this->format($message, $params, $messageSource->sourceLanguage); } return $this->format($translation, $params, $language); }
* [[\yii\base\Application::language|application language]] will be used. * @return string the translated message. */ public static function t($category, $message, $params = [], $language = null) { if (static::$app !== null) { return static::$app->getI18n()->translate($category, $message, $params, $language ?: static::$app->language); } $placeholders = []; foreach ((array) $params as $name => $value) { $placeholders['{' . $name . '}'] = $value; }
{ $res = []; $FileName = 'info'; $this->seo_config([ 'title' => Yii::t('infoall', $Links) . " | Key-Components.com", ]); if (strpos($Links, 'company') !== false) { $this->seo_config([ 'title' => Yii::t('seo', 'About Us') . " | Key-Components.com", 'keywords' => Yii::t('seo', 'key-components intruduction,electronic components distributor,electronic components reseller'), 'description' => Yii::t('seo', 'Get to know all about key-components') ,
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require __DIR__ . '/../vendor/autoload.php'; require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php'; $config = require __DIR__ . '/../config/web.php'; (new yii\web\Application($config))->run();
$_GET = [ 'Links' => 'contact', ];