本文整理匯總了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'); ?>