本文整理汇总了PHP中Section::getLanguageName方法的典型用法代码示例。如果您正苦于以下问题:PHP Section::getLanguageName方法的具体用法?PHP Section::getLanguageName怎么用?PHP Section::getLanguageName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Section
的用法示例。
在下文中一共展示了Section::getLanguageName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: section
putGS("Delete section");
?>
</B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center"><?php
putGS('There are $1 articles in this section.', '<b>' . $numArticles . '</b>');
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center">
<INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="N" checked> <?php
putGS('Delete only this section ($1)', $sectionObj->getLanguageName());
?>
<br/>
<INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="Y"> <?php
putGS('Delete all translations of this section');
?>
<br />
<?php
foreach ($sectionTranslations as $key => $sectionTranslation) {
echo $sectionTranslation->getLanguageName() . '<br />';
}
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center">
示例2: array
?>
/sections/do_del.php">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<?php
echo SecurityToken::FormParameter();
?>
<TR>
<TD COLSPAN="2" align="center"><?php
echo $translator->trans('There are $1 articles in this section.', array('$1' => '<b>' . $numArticles . '</b>'), 'sections');
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center">
<INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="N" checked> <?php
echo $translator->trans('Delete only this section ($1)', array('$1' => $sectionObj->getLanguageName()), 'sections');
?>
<br/>
<INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="Y"> <?php
echo $translator->trans('Delete all translations of this section', array(), 'sections');
?>
<br />
<?php
foreach ($sectionTranslations as $key => $sectionTranslation) {
echo $sectionTranslation->getLanguageName() . '<br />';
}
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center">
示例3: putGS
<P>
<FORM METHOD="POST" ACTION="do_del.php">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="message_box">
<?php echo SecurityToken::FormParameter(); ?>
<TR>
<TD COLSPAN="2">
<B> <?php putGS("Delete section"); ?> </B>
<HR NOSHADE SIZE="1" COLOR="BLACK">
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center"><?php putGS('There are $1 articles in this section.', '<b>'.$numArticles.'</b>'); ?></TD>
</TR>
<TR>
<TD COLSPAN="2" align="center">
<INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="N" checked> <?php putGS('Delete only this section ($1)', $sectionObj->getLanguageName()); ?>
<br/>
<INPUT TYPE="radio" NAME="f_delete_all_section_translations" class="input_checkbox" value="Y"> <?php putGS('Delete all translations of this section'); ?>
<br />
<?php
foreach ($sectionTranslations as $key => $sectionTranslation) {
echo $sectionTranslation->getLanguageName() . '<br />';
}
?>
</TD>
</TR>
<TR>
<TD COLSPAN="2" align="center">
<INPUT TYPE="radio" NAME="f_delete_all_articles_translations" class="input_checkbox" value="N" checked> <?php putGS('Delete all articles written in $1 language from this section', $sectionObj->getLanguageName()); ?>
<br/>
<INPUT TYPE="radio" NAME="f_delete_all_articles_translations" class="input_checkbox" value="Y"> <?php putGS('Delete all articles and all of their translations'); ?>