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


PHP add_translation_source函数代码示例

本文整理汇总了PHP中add_translation_source函数的典型用法代码示例。如果您正苦于以下问题:PHP add_translation_source函数的具体用法?PHP add_translation_source怎么用?PHP add_translation_source使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: hookInitialize

 /**
  * Initialize the plugin.
  */
 public function hookInitialize()
 {
     // Register the SelectFilter controller plugin.
     $front = Zend_Controller_Front::getInstance();
     $front->registerPlugin(new LcSuggest_Controller_Plugin_Autosuggest());
     // Add translation.
     add_translation_source(dirname(__FILE__) . '/languages');
 }
开发者ID:uws-eresearch,项目名称:plugin-LcSuggest,代码行数:11,代码来源:LcSuggestPlugin.php

示例2: hookInitialize

 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . '/languages');
     $settings = unserialize(get_option('html5_media_settings'));
     $commonOptions = $settings['common']['options'];
     add_file_display_callback(array('mimeTypes' => $settings['audio']['types'], 'fileExtensions' => $settings['audio']['extensions']), 'Html5MediaPlugin::audio', $commonOptions + $settings['audio']['options']);
     add_file_display_callback(array('mimeTypes' => $settings['video']['types'], 'fileExtensions' => $settings['video']['extensions']), 'Html5MediaPlugin::video', $commonOptions + $settings['video']['options']);
     add_file_display_callback(array('mimeTypes' => $settings['text']['types'], 'fileExtensions' => $settings['text']['extensions']), 'Html5MediaPlugin::text');
 }
开发者ID:rshiggin,项目名称:omeka-custom-exhibit,代码行数:9,代码来源:Html5MediaPlugin.php

示例3: hookInitialize

 /**
  * Initialize the plugin.
  */
 public function hookInitialize()
 {
     // adding shortcodes for SimplePages
     add_shortcode('total_folktales', array($this, 'totalfolktales'));
     #        queue_css_url("http://www.meertens.knaw.nl/cms/templates/mi_hetgelaat/js/meertens.databanken.js");
     add_translation_source(dirname(__FILE__) . '/languages');
     // Register the select filter controller plugin.
     $front = Zend_Controller_Front::getInstance();
     $front->registerPlugin(new InputFieldFilter());
 }
开发者ID:CATCH-FACT,项目名称:plugin-VerhalenbankFunctions,代码行数:13,代码来源:VerhalenbankFunctionsPlugin.php

示例4: hookInitialize

 /**
  * Initialize the plugin.
  */
 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'languages');
     // Get the backend settings from the security.ini file.
     // This simplifies tests too (use of local paths instead of urls).
     // TODO Probably a better location to set this.
     if (!Zend_Registry::isRegistered('oai_pmh_static_repository')) {
         $iniFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'security.ini';
         $settings = new Zend_Config_Ini($iniFile, 'oai-pmh-static-repository');
         Zend_Registry::set('oai_pmh_static_repository', $settings);
     }
 }
开发者ID:Daniel-KM,项目名称:OaiPmhStaticRepository,代码行数:15,代码来源:OaiPmhStaticRepositoryPlugin.php

示例5: hookInitialize

 /**
  * Initialize the plugin
  */
 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . '/languages');
     $db = get_db();
     // Add filters
     $filter_names = array('Display', 'ElementInput');
     $referenceElements = SELF::_retrieveReferenceElements();
     foreach ($referenceElements as $element_id) {
         $element = $db->getTable('Element')->find($element_id);
         $elementSet = $db->getTable('ElementSet')->find($element->element_set_id);
         foreach ($filter_names as $filter_name) {
             add_filter(array($filter_name, 'Item', $elementSet->name, $element->name), array($this, "filter{$filter_name}"));
         }
     }
     SELF::$_withGeoLoc = SELF::_withGeoLoc();
     SELF::$_withSecondLevel = !!intval(get_option('item_references_second_level'));
     SELF::$_enhancedGeoLog = (SELF::$_withGeoLoc and $db->fetchOne("SHOW COLUMNS FROM {$db->Locations} LIKE 'overlay'"));
 }
开发者ID:GerZah,项目名称:plugin-ItemReferences,代码行数:21,代码来源:ItemReferencesPlugin.php

示例6: exhibit_builder_initialize

/**
 * Add EB's translations directory for all requests.
 */
function exhibit_builder_initialize()
{
    add_translation_source(dirname(__FILE__) . '/languages');
    add_shortcode('exhibits', 'exhibit_builder_exhibits_shortcode');
    add_shortcode('featured_exhibits', 'exhibit_builder_featured_exhibits_shortcode');
}
开发者ID:rshiggin,项目名称:omeka-custom-exhibit,代码行数:9,代码来源:functions.php

示例7: hookInitialize

 /**
  * Add the translations.
  */
 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . '/languages');
 }
开发者ID:patrova,项目名称:plugin-DateSearch,代码行数:7,代码来源:DateSearchPlugin.php

示例8: hookInitialize

 /**
  * Initialize the plugin.
  */
 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . '/languages');
     add_shortcode('uv', array($this, 'shortcodeUniversalViewer'));
 }
开发者ID:pabalexa,项目名称:UniversalViewer4Omeka,代码行数:8,代码来源:UniversalViewerPlugin.php

示例9: hookInitialize

 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . '/languages');
     add_file_display_callback(array('mimeTypes' => self::$types, 'fileExtensions' => self::$exts), 'PdfEmbedPlugin::embedPdf', self::_getSettings());
 }
开发者ID:AdrienneSerra,项目名称:Digitalsc,代码行数:5,代码来源:PdfEmbedPlugin.php

示例10: hookInitialize

 /**
  * Add the translations.
  */
 public function hookInitialize()
 {
     add_translation_source(dirname(__FILE__) . '/languages');
     add_shortcode('geolocation', array($this, 'geolocationShortcode'));
 }
开发者ID:GerZah,项目名称:plugin-Geolocation,代码行数:8,代码来源:GeolocationPlugin.php

示例11: hookInitialize

 /**
  * Initialization.
  *
  * Adds tranlation source.
  *
  * @return void
  */
 public function hookInitialize()
 {
     // NeatlineFeatures_Functions::flog('/tmp/nlfeatures.log', "(hook) initialize");
     add_translation_source(dirname(__FILE__) . '/languages');
 }
开发者ID:rameysar,项目名称:Omeka-Grinnell-RomanCiv,代码行数:12,代码来源:NeatlineFeaturesPlugin.php


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