[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> translation-row-editor-meta-status.php (source)

   1  <?php
   2  /**
   3   * Template for the meta section of the editor row in a translation set display
   4   *
   5   * @package    GlotPress
   6   * @subpackage Templates
   7   */
   8  
   9  ?>
  10  <dl>
  11      <dt><?php _e( 'Status:', 'glotpress' ); ?></dt>
  12      <dd>
  13          <?php echo display_status( $translation->translation_status ); ?>
  14          <?php if ( $translation->translation_status ) : ?>
  15              <?php if ( $can_approve_translation ) : ?>
  16                  <?php if ( 'current' !== $translation->translation_status ) : ?>
  17                      <button class="button is-small approve" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Approve this translation. Any existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>+</strong> <span><?php _ex( 'Approve', 'Action', 'glotpress' ); ?></span></button>
  18                  <?php endif; ?>
  19                  <?php if ( 'rejected' !== $translation->translation_status ) : ?>
  20                      <button class="button is-small reject" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Reject this translation. The existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>&minus;</strong> <?php _ex( 'Reject', 'Action', 'glotpress' ); ?></button>
  21                  <?php endif; ?>
  22                  <?php if ( 'fuzzy' !== $translation->translation_status ) : ?>
  23                      <button class="button is-small fuzzy" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Mark this translation as fuzzy for further review.', 'glotpress' ); ?>"><strong>~</strong> <span><?php _ex( 'Fuzzy', 'Action', 'glotpress' ); ?></span></button>
  24                  <?php endif; ?>
  25              <?php elseif ( $can_reject_self ) : ?>
  26                  <button class="button is-small reject" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Reject this translation. The existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>&minus;</strong> <span><?php _ex( 'Reject', 'Action', 'glotpress' ); ?></span></button>
  27                  <button class="button is-small fuzzy" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Mark this translation as fuzzy for further review.', 'glotpress' ); ?>"><strong>~</strong> <span><?php _ex( 'Fuzzy', 'Action', 'glotpress' ); ?></span></button>
  28              <?php endif; ?>
  29          <?php endif; ?>
  30      </dd>
  31  </dl>


Generated: Sat Apr 20 01:01:09 2024 Cross-referenced by PHPXref 0.7.1