Skip to content

Commit

Permalink
Replace echo esc_attr__() with esc_attr_e().
Browse files Browse the repository at this point in the history
See #99.
  • Loading branch information
ocean90 committed Nov 10, 2015
1 parent 7830555 commit 97f607d
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions gp-templates/glossary-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<p>
<input type="hidden" name="glossary[id]" value="<?php echo esc_attr( $glossary->id ); ?>"/>
<input type="hidden" name="glossary[translation_set_id]" value="<?php echo esc_attr( $glossary->translation_set_id ); ?>"/>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Save', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="javascript:history.back();"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
</p>
</form>

<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/glossary-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<label for="import-file"><?php _e( 'Import File:', 'glotpress' ); ?></label>
<input type="file" name="import-file" id="import-file" />
</p>
<p><input type="submit" value="<?php echo esc_attr__( 'Import', 'glotpress' ); ?>"></p>
<p><input type="submit" value="<?php esc_attr_e( 'Import', 'glotpress' ); ?>"></p>
</form>

<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/glossary-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
</p>
<p>
<input type="hidden" name="glossary[translation_set_id]" value="<?php echo esc_attr( $glossary->translation_set_id ); ?>"/>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Create', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="javascript:history.back();"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
</p>
</form>

<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
2 changes: 1 addition & 1 deletion gp-templates/glossary-view.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</dl>
<p>
<input type="hidden" name="new_glossary_entry[glossary_id]" value="<?php echo esc_attr( $glossary->id ); ?>">
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Create', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
</p>
</form>
</td>
Expand Down
2 changes: 1 addition & 1 deletion gp-templates/project-branch.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</dd>
<div id="preview"></div>
<input type="hidden" value="<?php echo esc_html( $project->parent_project_id ); ?>" name="project[parent_project_id]" id="project[parent_project_id]" />
<p><input type="submit" name="submit" value="<?php echo esc_attr__( 'Branch project', 'glotpress' ); ?>" id="submit" /></p>
<p><input type="submit" name="submit" value="<?php esc_attr_e( 'Branch project', 'glotpress' ); ?>" id="submit" /></p>
</form>

<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/project-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<form action="" method="post">
<?php gp_tmpl_load( 'project-form', get_defined_vars()); ?>
<p>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Save', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="javascript:history.back();"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
</p>
</form>
<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/project-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
?>
<dt><label for="format"><?php _e( 'Format:', 'glotpress' ); ?></label></dt>
<dd><?php echo $format_dropdown; ?></dd>
<dt><input type="submit" value="<?php echo esc_attr__( 'Import', 'glotpress' ); ?>"></dt>
<dt><input type="submit" value="<?php esc_attr_e( 'Import', 'glotpress' ); ?>"></dt>
</form>

<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/project-mass-create-sets.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<dd><?php echo gp_projects_dropdown( 'project_id', null ); ?></dd>
</dl>
<div id="preview"></div>
<p><input type="submit" name="submit" value="<?php echo esc_attr__( 'Create Translation Sets', 'glotpress' ); ?>" id="submit" /></p>
<p><input type="submit" name="submit" value="<?php esc_attr_e( 'Create Translation Sets', 'glotpress' ); ?>" id="submit" /></p>
</form>
<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/project-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<form action="" method="post">
<?php gp_tmpl_load( 'project-form', get_defined_vars()); ?>
<p>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Create', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="javascript:history.back();"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
</p>
</form>
<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
2 changes: 1 addition & 1 deletion gp-templates/project-permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<dd><input type="text" name="set-slug" value="default" id="set-slug" /></dd>

<dt>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Add', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Add', 'glotpress' ); ?>" id="submit" />
<input type="hidden" name="action" value="add-validator" />
</dt>
</form>
Expand Down
4 changes: 2 additions & 2 deletions gp-templates/translation-set-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<form action="" method="post">
<?php gp_tmpl_load( 'translation-set-form', get_defined_vars()); ?>
<p>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Save', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel">or <a href="javascript:history.back();"><?php echo esc_attr__( 'Cancel', 'glotpress' ); ?></a></span>
<input type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel">or <a href="javascript:history.back();"><?php esc_attr_e( 'Cancel', 'glotpress' ); ?></a></span>
</p>
</form>
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/translation-set-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<form action="" method="post">
<?php gp_tmpl_load( 'translation-set-form', get_defined_vars()); ?>
<p>
<input type="submit" name="submit" value="<?php echo esc_attr__( 'Create', 'glotpress' ); ?>" id="submit" />
<input type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
<span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="javascript:history.back();"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
</p>
</form>
<?php gp_tmpl_footer();
<?php gp_tmpl_footer();
4 changes: 2 additions & 2 deletions gp-templates/translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</dd>


<dd><input type="submit" value="<?php echo esc_attr__( 'Filter', 'glotpress' ); ?>" name="filter" /></dd>
<dd><input type="submit" value="<?php esc_attr_e( 'Filter', 'glotpress' ); ?>" name="filter" /></dd>
</dl>
<dl class="filters-expanded sort hidden clearfix">
<dt><?php _x( 'By:', 'sort by', 'glotpress' ); ?></dt>
Expand Down Expand Up @@ -138,7 +138,7 @@
?>
</dd>
<?php do_action( 'gp_translation_set_filters' );?>
<dd><input type="submit" value="<?php echo esc_attr__( 'Sort', 'glotpress' ); ?>" name="sorts" /></dd>
<dd><input type="submit" value="<?php esc_attr_e( 'Sort', 'glotpress' ); ?>" name="sorts" /></dd>
</dl>
</form>

Expand Down

0 comments on commit 97f607d

Please sign in to comment.