[ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 gp_title( __( 'Import into Glossary < GlotPress', 'glotpress' ) ); 3 gp_breadcrumb( 4 array( 5 gp_project_links_from_root( $project ), 6 gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), $translation_set->name ), 7 gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ) . '/glossary', __( 'Glossary', 'glotpress' ) ), 8 __( 'Import', 'glotpress' ), 9 ) 10 ); 11 gp_tmpl_header(); 12 ?> 13 14 <h2><?php _e( 'Import Glossary Entries', 'glotpress' ); ?></h2> 15 <p> 16 <?php 17 printf( 18 // translators: 1: URL to the GlotPress manual entry for glossaries. 19 __( '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' ), 20 'https://glotpress.blog/the-manual/glossaries/' 21 ); 22 ?> 23 <br/> 24 </p> 25 26 <form action="" method="post" enctype="multipart/form-data"> 27 <p> 28 <label for="import-file"><?php _e( 'Import File:', 'glotpress' ); ?></label> 29 <input type="file" name="import-file" id="import-file" /> 30 </p> 31 <?php if ( $can_edit ) : ?> 32 <p> 33 <label for="import-flush"> 34 <input type="checkbox" id="import-flush" name="import-flush" /> 35 <?php _e( 'Flush existing glossary. Warning: all existing glossary entries will be deleted!', 'glotpress' ); ?> 36 </label> 37 </p> 38 <?php endif; ?> 39 <p><input class="button is-primary" type="submit" value="<?php esc_attr_e( 'Import', 'glotpress' ); ?>"></p> 40 <?php gp_route_nonce_field( 'import-glossary-entries_' . $project->path . $locale->slug . $translation_set->slug ); ?> 41 </form> 42 43 <?php 44 gp_tmpl_footer();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 26 01:01:15 2024 | Cross-referenced by PHPXref 0.7.1 |