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


PHP Theme::Translate方法代码示例

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


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

示例1: defined

 *
 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Theme variables:
 *  form_id = The ID of the Form
 * 	form_action = The URL for calling the Transaction
 * 	form_meta = Extra META information required by the Transation
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<form id="<?php 
echo Theme::Get('form_id');
?>
" class="XiboForm" method="post" action="<?php 
echo Theme::Get('form_action');
?>
">
	<?php 
echo Theme::Get('form_meta');
?>
	<p><?php 
echo Theme::Translate('Are you sure you want to truncate?');
?>
</p>
</form>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:log_form_truncate.php

示例2: defined

 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<table id="LayoutAssignTable" class="table table-bordered">
	<?php 
echo Theme::Get('form_meta');
?>
	<thead>
		<tr>
			<th><?php 
echo Theme::Translate('Name');
?>
</th>
		</tr>
	</thead>
	<tbody>
		<?php 
foreach (Theme::Get('table_rows') as $row) {
    ?>
		<tr rowid="<?php 
    echo $row['list_id'];
    ?>
" litext="<?php 
    echo $row['layout'];
    ?>
">
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:campaign_form_layout_assign_list.php

示例3: defined

 * 	form_meta = Additional META information required by Xibo in the form submit call
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<form id="<?php 
echo Theme::Get('form_id');
?>
" class="XiboForm" method="post" action="<?php 
echo Theme::Get('form_action');
?>
">
	<?php 
echo Theme::Get('form_meta');
?>
	<table>
		<tr>
			<td><label for="defaultlayoutid" accesskey="n" title="<?php 
echo Theme::Translate('Default Layout');
?>
"><?php 
echo Theme::Translate('Default Layout');
?>
</label></td>
			<td><?php 
echo Theme::SelectList('defaultlayoutid', Theme::Get('layout_field_list'), 'layoutid', 'layout', Theme::Get('defaultlayoutid'));
?>
</td>
		</tr>
	</table>
</form>
开发者ID:abbeet,项目名称:server39,代码行数:30,代码来源:display_form_default_layout.php

示例4:

	<table class="table table-bordered">
      	<tr>
              <th><?php 
echo Theme::Translate('Group');
?>
</th>
              <th><?php 
echo Theme::Translate('View');
?>
</th>
              <th><?php 
echo Theme::Translate('Edit');
?>
</th>
              <th><?php 
echo Theme::Translate('Delete');
?>
</th>
      	</tr>
      	<?php 
foreach (Theme::Get('form_rows') as $row) {
    ?>
		<tr>
			<td><span class="<?php 
    echo $row['class'];
    ?>
"><?php 
    echo $row['name'];
    ?>
</span></td>
			<td><input type="checkbox" name="groupids[]" value="<?php 
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:displaygroup_form_permissions.php

示例5:

echo Theme::Translate('Overwrite existing data');
?>
"><?php 
echo Theme::Translate('Overwrite existing data?');
?>
</label>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <input class="checkbox" name="ignorefirstrow" type="checkbox" id="ignorefirstrow" tabindex="2" checked />
    		<label class="checkbox" for="ignorefirstrow" accesskey="n" title="<?php 
echo Theme::Translate('Ignore the first row? Useful if the CSV has headings.');
?>
"><?php 
echo Theme::Translate('Ignore first row?');
?>
</label>
        </div>
    </div>
    <?php 
foreach (Theme::Get('fields') as $field) {
    ?>
	    <div class="control-group">
	    	<label class="control-label" for="<?php 
    echo $field['formfieldid'];
    ?>
" title="<?php 
    echo $field['heading'];
    ?>
"><?php 
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:dataset_form_csv_import.php

示例6: defined

 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
// Translations we want always available
Theme::SetTranslation('multiselect', Theme::Translate('Multiple Items Selected'));
Theme::SetTranslation('multiselectNoItemsMessage', Theme::Translate('Sorry, no items have been selected.'));
Theme::SetTranslation('multiselectMessage', Theme::Translate('Caution, you have selected %1 items. Clicking save will run the %2 transaction on all these items.'));
Theme::SetTranslation('save', Theme::Translate('Save'));
Theme::SetTranslation('cancel', Theme::Translate('Cancel'));
Theme::SetTranslation('close', Theme::Translate('Close'));
Theme::SetTranslation('success', Theme::Translate('Success'));
Theme::SetTranslation('failure', Theme::Translate('Failure'));
Theme::SetTranslation('enterText', Theme::Translate('Enter text...'));
?>
                </div>
            </div>
        </div>
        </div>
        </div>

		<script src="theme/default/libraries/jquery/jquery-1.11.1.min.js"></script>
		<script src="theme/default/libraries/jquery/jquery.validate.min.js"></script>
		<script src="theme/default/libraries/jquery/additional-methods.min.js"></script>
        <script src="theme/default/libraries/bootstrap/js/bootstrap.min.js"></script>
        <script src="theme/default/libraries/bootstrap/js/bootbox.min.js"></script>
        <?php 
if (Config::GetSetting('CALENDAR_TYPE') == 'Jalali') {
    ?>
开发者ID:fignew,项目名称:xibo-cms,代码行数:31,代码来源:footer.php

示例7:

?>
"><?php 
echo Theme::Translate('Change Password');
?>
</a></li>
								<li><a class="XiboFormButton" href="index.php?p=index&q=About" title="<?php 
echo Theme::Translate('About the CMS');
?>
"><?php 
echo Theme::Translate('About');
?>
</a></li>
								<li><a title="Show Help" class="XiboHelpButton" href="<?php 
echo Theme::GetPageHelpLink();
?>
"><?php 
echo Theme::Translate('Help');
?>
</a></li>
								<li><a title="Logout" href="index.php?q=logout"><?php 
echo Theme::Translate("Logout");
?>
</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>

<?php 
//The remaining content follows here in the page that included this template file. The footer.php file then closes off any block elements that remain open
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:header.php

示例8: defined

 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Theme variables:
 *  buttons = An array containing the media buttons
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="well">
    <div class="text-center text-info"><?php 
echo Theme::Translate('Available Substitutions');
?>
</div>
    <ul id="TickerDataSetColumns">
        <?php 
foreach (Theme::Get('columns') as $column) {
    ?>
        <li class="ckeditor_snippits" linkedto="ta_text" datasetcolumnid="<?php 
    echo $column['DataSetColumnID'];
    ?>
"><?php 
    echo $column['Heading'];
    ?>
</li>
        <?php 
}
开发者ID:fignew,项目名称:xibo-cms,代码行数:31,代码来源:media_form_ticker_dataset_edit.php

示例9:

?>
" class="XiboFormButton" href="<?php 
echo Theme::Get('oauth_log_button_url');
?>
" ><span><?php 
echo Theme::Translate('oAuth Log');
?>
</span></a></li>
		<li class="pull-right"><a title="<?php 
echo Theme::Translate('Add an Application');
?>
" class="XiboFormButton" href="<?php 
echo Theme::Get('application_form_add_url');
?>
" ><span><?php 
echo Theme::Translate('Add Application');
?>
</span></a></li>
	</ul>
</div>
<div class="row">
	<div class="XiboGrid span12" id="<?php 
echo Theme::Get('id');
?>
">
		<div class="XiboFilter">
			<div class="FilterDiv" id="Filter">
				<form>
					<?php 
echo Theme::Get('form_meta');
?>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:applications_page.php

示例10:

    <thead>
        <tr>
            <th><?php 
echo Theme::Translate('Display');
?>
</th> 
            <th><?php 
echo Theme::Translate('Type');
?>
</th>   
            <th><?php 
echo Theme::Translate('Version');
?>
</th>  
            <th><?php 
echo Theme::Translate('Version Code');
?>
</th> 
        </tr>
    </thead>
    <tbody>
        <?php 
foreach (Theme::Get('displays') as $row) {
    ?>
        <tr>
            <td><?php 
    echo $row['display'];
    ?>
</td>
            <td><?php 
    echo $row['client_type'];
开发者ID:fignew,项目名称:xibo-cms,代码行数:31,代码来源:display_form_version_instructions.php

示例11: defined

 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<table id="LibraryAssignTable" class="table table-bordered">
	<thead>
		<tr>
			<th><?php 
echo Theme::Translate('Name');
?>
</th>
			<th><?php 
echo Theme::Translate('Type');
?>
</th>
			<th><?php 
echo Theme::Translate('Duration');
?>
</th>
		</tr>
	</thead>
	<tbody>
		<?php 
foreach (Theme::Get('table_rows') as $row) {
    ?>
		<tr rowid="<?php 
    echo $row['list_id'];
    ?>
" litext="<?php 
    echo $row['media'];
    ?>
">
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:library_form_assign_list.php

示例12: defined

defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<div class="info_table">
    <table style="width:100%">
        <thead>
            <tr>
                <th><?php 
echo Theme::Translate('Application');
?>
</th>
                <th><?php 
echo Theme::Translate('Enabled');
?>
</th>
                <th><?php 
echo Theme::Translate('Status');
?>
</th>   
            </tr>
        </thead>
        <tbody>
            <?php 
foreach (Theme::Get('table_rows') as $row) {
    ?>
            <tr>
                <td><?php 
    echo $row['application_title'];
    ?>
</td>
                <td><?php 
    echo $row['enabled'];
开发者ID:fignew,项目名称:xibo-cms,代码行数:31,代码来源:user_form_my_applications.php

示例13: defined

 * 	
 */
defined('XIBO') or die("Sorry, you are not allowed to directly access this page.<br /> Please press the back button in your browser.");
?>
<form id="<?php 
echo Theme::Get('form_id');
?>
" class="XiboForm" method="post" action="<?php 
echo Theme::Get('form_action');
?>
">
	<?php 
echo Theme::Get('form_meta');
?>
	<table>
        <tr>
        	<td><label for="homepage" title="<?php 
echo Theme::Translate('The users Homepage. This should not be changed until you want to reset their homepage.');
?>
"><?php 
echo Theme::Translate('Homepage');
?>
</label></td>
        	<td><?php 
echo Theme::SelectList('homepage', Theme::Get('homepage_field_list'), 'homepageid', 'homepage', Theme::Get('homepage'));
?>
</td>
   		</tr>
    </table>
</form>
开发者ID:abbeet,项目名称:server39,代码行数:30,代码来源:user_form_set_homepage.php

示例14:

			<input name="duration" type="text" id="duration" tabindex="3" value="<?php 
echo Theme::Get('duration');
?>
" <?php 
echo Theme::Get('is_duration_field_enabled');
?>
 />
		</div>
	</div>
	<?php 
if (Theme::Get('is_assignable')) {
    ?>
	<div class="control-group">
		<div class="controls">
			<label class="checkbox" for="replaceInLayouts" accesskey="n"><?php 
    echo Theme::Translate('Update this media in all layouts it is assigned to. Note: It will only be replaced in layouts you have permission to edit.');
    ?>
				<input type="checkbox" id="replaceInLayouts" name="replaceInLayouts" <?php 
    echo Theme::Get('is_replace_field_checked');
    ?>
 />
			</label>
		</div>
	</div>
	<?php 
}
?>
	<div class="well">
		<?php 
echo Theme::Get('valid_extensions');
?>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:library_form_media_edit.php

示例15: Embed

"><?php 
echo Theme::Translate('Background transparent?');
?>
                        <input class="" name="transparency" type="checkbox" id="transparency" tabindex="2" />
                    </label>
                </div>
            </div>
    	</div>
    </div>
    <div class="row">
        <div class="span4">
            <p class="text-info text-center"><?php 
echo Theme::Translate('HTML to Embed');
?>
</p>
            <textarea class="wide_textarea" cols="80" rows="10" name="embedHtml"></textarea>
        </div>
    </div>
    <div class="row">
        <div class="span4">
            <p class="text-info text-center"><?php 
echo Theme::Translate('HEAD content to Embed (including script tags)');
?>
</p>
            <textarea class="wide_textarea" cols="80" rows="10" name="embedScript"><?php 
echo Theme::Get('default_head_content');
?>
</textarea>
        </div>
    </div>
</form>
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:media_form_embedded_add.php


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