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


PHP locale::GetStr方法代码示例

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


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

示例1: HuiPage

$hui->LoadWidget('page');
$hui->LoadWidget('progressbar');
$hui->LoadWidget('radio');
$hui->LoadWidget('sessionkey');
$hui->LoadWidget('statusbar');
$hui->LoadWidget('string');
$hui->LoadWidget('submit');
$hui->LoadWidget('tab');
$hui->LoadWidget('table');
$hui->LoadWidget('text');
$hui->LoadWidget('titlebar');
$hui->LoadWidget('toolbar');
$hui->LoadWidget('treemenu');
$hui->LoadWidget('vertframe');
$hui->LoadWidget('vertgroup');
$hui_page = new HuiPage('page', array('title' => $amp_locale->GetStr('network')));
$hui_mainvertgroup = new HuiVertGroup('mainvertgroup');
$hui_titlebar = new HuiTitleBar('titlebar', array('title' => $amp_locale->GetStr('network'), 'icon' => 'network'));
$hui_mainvertgroup->AddChild($hui_titlebar);
$menu_frame = new HuiHorizGroup('menuframe');
$menu_frame->AddChild(new HuiMenu('magellanmainmenu', array('menu' => get_ampoliros_root_menu_def($env['sitelocale']))));
$hui_mainvertgroup->AddChild($menu_frame);
// Main tool bar
//
$hui_maintoolbar = new HuiToolBar('maintoolbar');
$home_action = new HuiEventsCall();
$home_action->AddEvent(new HuiEvent('main', 'default', ''));
$hui_homebutton = new HuiButton('homebutton', array('label' => 'Home', 'themeimage' => 'gohome', 'horiz' => 'true', 'action' => $home_action->GetEventsCallString()));
$hui_maintoolbar->AddChild($hui_homebutton);
$edit_action = new HuiEventsCall();
$edit_action->AddEvent(new HuiEvent('main', 'edit', ''));
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:network.php

示例2: HuiPage

$hui->LoadWidget('progressbar');
$hui->LoadWidget('radio');
$hui->LoadWidget('sessionkey');
$hui->LoadWidget('statusbar');
$hui->LoadWidget('string');
$hui->LoadWidget('submit');
$hui->LoadWidget('tab');
$hui->LoadWidget('table');
$hui->LoadWidget('text');
$hui->LoadWidget('titlebar');
$hui->LoadWidget('toolbar');
$hui->LoadWidget('treemenu');
$hui->LoadWidget('vertframe');
$hui->LoadWidget('vertgroup');
$hui->LoadWidget('xml');
$hui_page = new HuiPage('page', array('title' => $amp_locale->GetStr('info_pagetitle')));
$hui_mainvertgroup = new HuiVertGroup('mainvertgroup');
$hui_titlebar = new HuiTitleBar('titlebar', array('title' => $amp_locale->GetStr('info_pagetitle'), 'icon' => 'help_index'));
$hui_mainvertgroup->AddChild($hui_titlebar);
$menu_frame = new HuiHorizGroup('menuframe');
$menu_frame->AddChild(new HuiMenu('magellanmainmenu', array('menu' => get_ampoliros_root_menu_def($env['sitelocale']))));
$hui_mainvertgroup->AddChild($menu_frame);
// Main tool bar
//
$hui_maintoolbar = new HuiToolBar('maintoolbar');
$version_action = new HuiEventsCall();
$version_action->AddEvent(new HuiEvent('main', 'default', ''));
$hui_versionbutton = new HuiButton('versionbutton', array('label' => $amp_locale->GetStr('version_button'), 'themeimage' => 'contents', 'action' => $version_action->GetEventsCallString()));
$hui_maintoolbar->AddChild($hui_versionbutton);
$sysinfo_action = new HuiEventsCall();
$sysinfo_action->AddEvent(new HuiEvent('main', 'sysinfo', ''));
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:info.php

示例3: HuiPage

$hui->LoadWidget('progressbar');
$hui->LoadWidget('radio');
$hui->LoadWidget('sessionkey');
$hui->LoadWidget('statusbar');
$hui->LoadWidget('string');
$hui->LoadWidget('submit');
$hui->LoadWidget('tab');
$hui->LoadWidget('table');
$hui->LoadWidget('text');
$hui->LoadWidget('titlebar');
$hui->LoadWidget('toolbar');
$hui->LoadWidget('treemenu');
$hui->LoadWidget('vertframe');
$hui->LoadWidget('vertgroup');
$hui->LoadWidget('xml');
$hui_page = new HuiPage('page', array('title' => $amp_locale->GetStr('sitedata_title')));
$hui_mainvertgroup = new HuiVertGroup('mainvertgroup');
$hui_titlebar = new HuiTitleBar('titlebar', array('title' => $amp_locale->GetStr('sitedata_title'), 'icon' => 'terminal'));
$hui_mainvertgroup->AddChild($hui_titlebar);
// Main tool bar
//
$hui_maintoolbar = new HuiToolBar('maintoolbar');
$home_action = new HuiEventsCall();
$home_action->AddEvent(new HuiEvent('main', 'default', ''));
$hui_homebutton = new HuiButton('homebutton', array('label' => $amp_locale->GetStr('sitedata_button'), 'themeimage' => 'gohome', 'horiz' => 'true', 'action' => $home_action->GetEventsCallString()));
$hui_maintoolbar->AddChild($hui_homebutton);
$edit_action = new HuiEventsCall();
$edit_action->AddEvent(new HuiEvent('main', 'edit', ''));
$hui_editbutton = new HuiButton('editbutton', array('label' => $amp_locale->GetStr('sitedataedit_button'), 'themeimage' => 'edit', 'horiz' => 'true', 'action' => $edit_action->GetEventsCallString()));
$hui_maintoolbar->AddChild($hui_editbutton);
// Help tool bar
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:site.php

示例4: locale

 $el[$groupdata['id']]['groupname'] = $groupdata['name'];
 if (strlen($groupdata['catalog']) > 0) {
     $tmploc = new locale($groupdata['catalog'], $gEnv['user']['locale']['language']);
     $descstr = $tmploc->GetStr($groupdata['name']);
     $el[$groupdata['id']]['groupname'] = $descstr;
 }
 $pagesquery =& $env['db']->execute('select * from adminpages where groupid = ' . $groupdata['id'] . '  order by name');
 $pagesnum = $pagesquery->numrows();
 if ($pagesnum > 0) {
     $contb = 0;
     while (!$pagesquery->eof) {
         $pagedata = $pagesquery->fields();
         if ($tmpperm->check($pagedata['id'], 'page') != PERMISSIONS_NODE_NOTENABLED) {
             if (strlen($pagedata['catalog']) > 0) {
                 $tmploc = new locale($pagedata['catalog'], $gEnv['user']['locale']['language']);
                 $descstr = $tmploc->GetStr($pagedata['name']);
                 $tmp_eventscall = new HuiEventsCall($pagedata['location']);
                 $tmp_eventscall->AddEvent(new HuiEvent('main', 'default', ''));
                 if (strlen($pagedata['themeicontype'])) {
                     $imageType = $pagedata['themeicontype'];
                 } else {
                     $imageType = 'apps';
                 }
                 strlen($pagedata['themeicon']) ? $imageUrl = $hui_page->mThemeHandler->mIconsBase . $hui_page->mThemeHandler->mIconsSet[$imageType][$pagedata['themeicon']]['base'] . '/' . $imageType . '/' . $hui_page->mThemeHandler->mIconsSet[$imageType][$pagedata['themeicon']]['file'] : ($imageUrl = $pagedata['iconfile']);
                 $el[$groupdata['id']]['groupelements'][$contb]['name'] = $descstr;
                 $el[$groupdata['id']]['groupelements'][$contb]['image'] = $imageUrl;
                 $el[$groupdata['id']]['groupelements'][$contb]['action'] = $tmp_eventscall->GetEventsCallString() . '&act=def';
                 $el[$groupdata['id']]['groupelements'][$contb]['themesized'] = 'true';
                 unset($tmp_eventscall);
             }
         }
开发者ID:alexpagnoni,项目名称:ampoliros,代码行数:31,代码来源:sum.php


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