[ 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 printf( __( 'Use this form to bulk upload glossary entries. The entries should be stored in a CSV file, matching the custom glossary format from <a href="%s">Google Translator Toolkit</a>.', 'glotpress' ), 'https://support.google.com/translate/toolkit/answer/147854' ); ?><br/>
  15  </p>
  16  
  17  <form action="" method="post" enctype="multipart/form-data">
  18      <p>
  19          <label for="import-file"><?php _e( 'Import File:', 'glotpress' ); ?></label>
  20          <input type="file" name="import-file" id="import-file" />
  21      </p>
  22      <?php if ( $can_edit ) : ?>
  23          <p>
  24              <label for="import-flush">
  25                  <input type="checkbox" id="import-flush" name="import-flush" />
  26                  <?php _e( 'Flush existing glossary. Warning: all existing glossary entries will be deleted!', 'glotpress' ); ?>
  27              </label>
  28          </p>
  29      <?php endif; ?>
  30      <p><input type="submit" value="<?php esc_attr_e( 'Import', 'glotpress' ); ?>"></p>
  31      <?php gp_route_nonce_field( 'import-glossary-entries_' . $project->path . $locale->slug . $translation_set->slug ); ?>
  32  </form>
  33  
  34  <?php gp_tmpl_footer();


Generated: Fri Nov 22 01:01:58 2019 Cross-referenced by PHPXref 0.7.1