[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> glossary-import.php (source)

   1  <?php
   2  gp_title( __( 'Import into Glossary &lt; GlotPress', 'glotpress' ) );
   3  gp_breadcrumb( array(
   4      gp_project_links_from_root( $project ),
   5      gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), $translation_set->name ),
   6      gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ) . '/glossary', __( 'Glossary', 'glotpress' ) ),
   7      __( 'Import', 'glotpress' )
   8  ) );
   9  gp_tmpl_header();
  10  ?>
  11  
  12  <h2><?php _e( 'Import Glossary Entries', 'glotpress' ); ?></h2>
  13  <p>
  14      <?php
  15          printf(
  16              // translators: 1: URL to the GlotPress manual entry for glossaries.
  17              __( 'Use this form to bulk upload glossary entries. The entries should be stored in a CSV file with a custom glossary format. Read more in the <a href="%s">Glotpress manual</a>.', 'glotpress' ),
  18              'https://glotpress.blog/the-manual/glossaries/'
  19          );
  20      ?>
  21      <br/>
  22  </p>
  23  
  24  <form action="" method="post" enctype="multipart/form-data">
  25      <p>
  26          <label for="import-file"><?php _e( 'Import File:', 'glotpress' ); ?></label>
  27          <input type="file" name="import-file" id="import-file" />
  28      </p>
  29      <?php if ( $can_edit ) : ?>
  30          <p>
  31              <label for="import-flush">
  32                  <input type="checkbox" id="import-flush" name="import-flush" />
  33                  <?php _e( 'Flush existing glossary. Warning: all existing glossary entries will be deleted!', 'glotpress' ); ?>
  34              </label>
  35          </p>
  36      <?php endif; ?>
  37      <p><input type="submit" value="<?php esc_attr_e( 'Import', 'glotpress' ); ?>"></p>
  38      <?php gp_route_nonce_field( 'import-glossary-entries_' . $project->path . $locale->slug . $translation_set->slug ); ?>
  39  </form>
  40  
  41  <?php gp_tmpl_footer();


Generated: Fri Apr 10 01:03:04 2020 Cross-referenced by PHPXref 0.7.1