本文整理汇总了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');
}
示例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');
}
示例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());
}
示例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);
}
}
示例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'"));
}
示例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');
}
示例7: hookInitialize
/**
* Add the translations.
*/
public function hookInitialize()
{
add_translation_source(dirname(__FILE__) . '/languages');
}
示例8: hookInitialize
/**
* Initialize the plugin.
*/
public function hookInitialize()
{
add_translation_source(dirname(__FILE__) . '/languages');
add_shortcode('uv', array($this, 'shortcodeUniversalViewer'));
}
示例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());
}
示例10: hookInitialize
/**
* Add the translations.
*/
public function hookInitialize()
{
add_translation_source(dirname(__FILE__) . '/languages');
add_shortcode('geolocation', array($this, 'geolocationShortcode'));
}
示例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');
}