Example #1
0
">
	<td colspan="<?php 
echo $can_approve ? 5 : 4;
?>
">
		<div class="strings">
		<?php 
$singular = isset($t->singular_glossary_markup) ? $t->singular_glossary_markup : esc_translation($t->singular);
$plural = isset($t->plural_glossary_markup) ? $t->plural_glossary_markup : esc_translation($t->plural);
?>

		<?php 
if (!$t->plural) {
    ?>
		<p class="original"><?php 
    echo prepare_original($singular);
    ?>
</p>
		<?php 
    textareas($t, array($can_edit, $can_approve));
    ?>
		<?php 
} else {
    ?>
			<?php 
    if ($locale->nplurals == 2 && $locale->plural_expression == 'n != 1') {
        ?>
				<p><?php 
        printf(__('Singular: %s', 'glotpress'), '<span class="original">' . $singular . '</span>');
        ?>
</p>
Example #2
0
echo $warning_class;
?>
" id="editor-<?php 
echo $t->row_id;
?>
" row="<?php 
echo $t->row_id;
?>
">
	<td colspan="4">
		<div class="strings">
		<?php 
if (!$t->plural) {
    ?>
		<p class="original"><?php 
    echo prepare_original(esc_translation($t->singular));
    ?>
</p>
		<?php 
    textareas($t, $can_edit);
    ?>
		<?php 
} else {
    ?>
			<?php 
    if ($locale->nplurals == 2 && $locale->plural_expression == 'n != 1') {
        ?>
				<p><?php 
        printf(__('Singular: %s'), '<span class="original">' . esc_translation($t->singular) . '</span>');
        ?>
</p>