[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> translation-set-delete.php (source)

   1  <?php
   2  /**
   3   * Templates: Delete Translation Set
   4   *
   5   * @package GlotPress
   6   * @subpackage Templates
   7   * @since 2.0.0
   8   */
   9  
  10  gp_title(
  11      sprintf(
  12          /* translators: 1: Translation set name. 2: Project name. */
  13          __( 'Delete Translation Set &lt; %1$s &lt; %2$s &lt; GlotPress', 'glotpress' ),
  14          $set->name,
  15          $project->name
  16      )
  17  );
  18  gp_breadcrumb(
  19      array(
  20          gp_project_links_from_root( $project ),
  21          gp_link_get( $url, $locale->english_name . ( 'default' !== $set->slug ? ' ' . $set->name : '' ) ),
  22      )
  23  );
  24  gp_tmpl_header();
  25  ?>
  26  <h2><?php _e( 'Delete Translation Set', 'glotpress' ); ?></h2>
  27  <form action="" method="post">
  28      <p>
  29          <?php _e( 'Note this will delete all translations associated with this set!', 'glotpress' ); ?>
  30      </p>
  31      <div class="button-group">
  32          <input class="button is-destructive" type="submit" name="submit" value="<?php esc_attr_e( 'Delete', 'glotpress' ); ?>" id="submit" />
  33          <a class="button is-link" href="<?php echo esc_url( gp_url_project_locale( $project, $locale->slug, $set->slug ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a>
  34      </div>
  35      <?php gp_route_nonce_field( 'delete-translation-set_' . $set->id ); ?>
  36  </form>
  37  <?php
  38  gp_tmpl_footer();


Generated: Thu Nov 21 01:01:07 2024 Cross-referenced by PHPXref 0.7.1