[ 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 ); // WPCS: XSS OK. ?>
  14          <?php if ( $translation->translation_status ) : ?>
  15              <?php if ( $can_approve_translation ) : ?>
  16                  <?php if ( 'current' !== $translation->translation_status ) : ?>
  17                      <button class="approve" tabindex="-1" 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> <?php _ex( 'Approve', 'Action', 'glotpress' ); ?></button>
  18                  <?php endif; ?>
  19                  <?php if ( 'rejected' !== $translation->translation_status ) : ?>
  20                      <button class="reject" tabindex="-1" 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="fuzzy" tabindex="-1" 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> <?php _ex( 'Fuzzy', 'Action', 'glotpress' ); ?></button>
  24                  <?php endif; ?>
  25              <?php elseif ( $can_reject_self ) : ?>
  26                  <button class="reject" tabindex="-1" 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>
  27                  <button class="fuzzy" tabindex="-1" 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> <?php _ex( 'Fuzzy', 'Action', 'glotpress' ); ?></button>
  28              <?php endif; ?>
  29          <?php endif; ?>
  30      </dd>
  31  </dl>


Generated: Tue Nov 12 01:01:58 2019 Cross-referenced by PHPXref 0.7.1