Ticket #57: patch1.2.diff
| File patch1.2.diff, 9.5 KB (added by momo360modena, 2 years ago) |
|---|
-
gp-templates/project-edit.php
8 8 <h2><?php _e( sprintf( __('Edit project <q>%s</q>'), esc_html( $project->name ) ) ); ?></h2> 9 9 <form action="" method="post"> 10 10 <?php gp_tmpl_load( 'project-form', get_defined_vars()); ?> 11 <p><input type="submit" name="submit" value="<?php e cho esc_attr( __('Save') ); ?>" id="submit" /></p>11 <p><input type="submit" name="submit" value="<?php esc_attr_e( __('Save') ); ?>" id="submit" /></p> 12 12 </form> 13 13 <?php gp_tmpl_footer(); 14 No newline at end of file -
gp-templates/project-new.php
8 8 <h2><?php _e( 'Create New Project' ); ?></h2> 9 9 <form action="" method="post"> 10 10 <?php gp_tmpl_load( 'project-form', get_defined_vars()); ?> 11 <p><input type="submit" name="submit" value="<?php e cho esc_attr( __('Create') ); ?>" id="submit" /></p>11 <p><input type="submit" name="submit" value="<?php esc_attr_e( __('Create') ); ?>" id="submit" /></p> 12 12 </form> 13 13 <?php gp_tmpl_footer(); 14 No newline at end of file -
gp-templates/translation-set-permissions.php
31 31 <input type="text" name="user_login" value="" id="user_login" /> 32 32 </p> 33 33 <p> 34 <input type="submit" name="submit" value="<?php e cho esc_attr(__('Add →')); ?>" id="submit" />34 <input type="submit" name="submit" value="<?php esc_attr_e(__('Add →')); ?>" id="submit" /> 35 35 </p> 36 36 37 37 <input type="hidden" name="action" value="add-approver" /> -
gp-templates/translation-row.php
11 11 ?> 12 12 <tr class="preview <?php echo $parity().' '.$status_class.' '.$warning_class.' '.$priority_class ?>" id="preview-<?php echo $t->row_id ?>" row="<?php echo $t->row_id; ?>"> 13 13 <td class="checkbox"><input type="checkbox" name="selected-row[]" /></td> 14 <!--<td class="priority" style="background-color: <?php echo $priority_char[$t->priority][1] ?>; color: <?php echo $priority_char[$t->priority][2] ?>; text-align: center; font-size: 1.2em;" title="<?php e cho esc_attr('Priority: '.gp_array_get( GP::$original->get_static( 'priorities' ), $t->priority )); ?>">14 <!--<td class="priority" style="background-color: <?php echo $priority_char[$t->priority][1] ?>; color: <?php echo $priority_char[$t->priority][2] ?>; text-align: center; font-size: 1.2em;" title="<?php esc_attr_e('Priority: '.gp_array_get( GP::$original->get_static( 'priorities' ), $t->priority )); ?>"> 15 15 --> 16 <td class="priority" title="<?php e cho esc_attr('Priority: '.gp_array_get( GP::$original->get_static( 'priorities' ), $t->priority )); ?>">16 <td class="priority" title="<?php esc_attr_e('Priority: '.gp_array_get( GP::$original->get_static( 'priorities' ), $t->priority )); ?>"> 17 17 <?php echo $priority_char[$t->priority][0] ?> 18 18 </td> 19 19 <td class="original"> -
gp-templates/project.php
59 59 </dd> 60 60 </dl> 61 61 <p> 62 <input type="submit" name="submit" value="<?php e cho esc_attr(__('Save →')); ?>" id="save" />62 <input type="submit" name="submit" value="<?php esc_attr_e(__('Save →')); ?>" id="save" /> 63 63 <a class="ternary" href="#" onclick="jQuery('#personal-options-toggle').click();return false;"><?php _e('Cancel'); ?></a> 64 </p> 64 </p> 65 65 </form> 66 66 </div> 67 67 </div> … … 74 74 </p> 75 75 <?php endif; ?> 76 76 <script type="text/javascript" charset="utf-8"> 77 $gp.showhide('a.personal-options', ' Personal project options ↓', 'Personal project options ↑', 'div.personal-options', '#source-url-template');77 $gp.showhide('a.personal-options', '<?php echo js_escape(__('Personal project options ↓')); ?>', '<?php echo js_escape(__('Personal project options ↑')); ?>', 'div.personal-options', '#source-url-template'); 78 78 $('div.personal-options').hide(); 79 79 </script> 80 80 <?php gp_tmpl_footer(); 81 No newline at end of file -
gp-templates/login.php
15 15 16 16 <dd><input type="submit" name="submit" value="<?php _e('Login'); ?>" id="submit"></dd> 17 17 </dl> 18 <input type="hidden" value="<?php e cho esc_attr( gp_get( 'redirect_to' ) ); ?>" id="redirect_to" name="redirect_to" />18 <input type="hidden" value="<?php esc_attr_e( gp_get( 'redirect_to' ) ); ?>" id="redirect_to" name="redirect_to" /> 19 19 </form> 20 20 <script type="text/javascript" charset="utf-8"> 21 21 document.getElementById('user_login').focus(); -
gp-templates/translation-set-new.php
8 8 <h2><?php _e( 'Create New Translation Set' ); ?></h2> 9 9 <form action="" method="post"> 10 10 <?php gp_tmpl_load( 'translation-set-form', get_defined_vars()); ?> 11 <p><input type="submit" name="submit" value="<?php e cho esc_attr( __('Create') ); ?>" id="submit" /></p>11 <p><input type="submit" name="submit" value="<?php esc_attr_e( __('Create') ); ?>" id="submit" /></p> 12 12 </form> 13 13 <?php gp_tmpl_footer(); 14 No newline at end of file -
gp-templates/project-import.php
10 10 ?> 11 11 <form action="" method="post" enctype="multipart/form-data"> 12 12 <p> 13 <label for="mo-file"><?php echo __('MO file'); ?></label><input type="file" name="mo-file" id="mo-file" />13 <label for="mo-file"><?php _e('MO file'); ?></label><input type="file" name="mo-file" id="mo-file" /> 14 14 </p> 15 15 <p> 16 <label for="pot-file"><?php echo __('PO/POT file'); ?></label><input type="file" name="pot-file" id="pot-file" />16 <label for="pot-file"><?php _e('PO/POT file'); ?></label><input type="file" name="pot-file" id="pot-file" /> 17 17 </p> 18 18 19 <p><input type="submit" value="<?php e cho esc_attr( __('Import') ); ?>"></p>19 <p><input type="submit" value="<?php esc_attr_e( __('Import') ); ?>"></p> 20 20 </form> 21 21 <?php gp_tmpl_footer(); ?> 22 No newline at end of file -
gp-templates/translations.php
65 65 ?> 66 66 </dd> 67 67 68 <dd><input type="submit" value="<?php e cho esc_attr(__('Filter')); ?>" name="filter" /></dd>68 <dd><input type="submit" value="<?php esc_attr_e(__('Filter')); ?>" name="filter" /></dd> 69 69 </dl> 70 70 <dl class="filters-expanded sort hidden clearfix"> 71 71 <dt><?php _e('By:'); ?></dt> … … 91 91 ), gp_array_get( $sort, 'how', 'desc' ) ); 92 92 ?> 93 93 </dd> 94 <dd><input type="submit" value="<?php e cho esc_attr(__('Sort')); ?>" name="sorts" /></dd>94 <dd><input type="submit" value="<?php esc_attr_e(__('Sort')); ?>" name="sorts" /></dd> 95 95 </dl> 96 96 <dl class="hidden bulk-actions filters-expanded clearfix"> 97 97 <dt class="select"><?php _e('Select:'); ?></dt> … … 118 118 ?> 119 119 </dd> 120 120 <dd> 121 <input type="hidden" name="bulk[redirect_to]" value="<?php e cho esc_attr(gp_url_current()); ?>" id="bulk[redirect_to]">121 <input type="hidden" name="bulk[redirect_to]" value="<?php esc_attr_e(gp_url_current()); ?>" id="bulk[redirect_to]"> 122 122 <input type="hidden" name="bulk[translation-ids]" value="" id="bulk[translation-ids]"> 123 <input type="submit" value="<?php e cho esc_attr(__('Approve/Reject')); ?>" name="approve" />123 <input type="submit" value="<?php esc_attr_e(__('Approve/Reject')); ?>" name="approve" /> 124 124 <p class="ternary"><?php _e('<strong>Note:</strong> Bulk edit works only on the current page.'); ?></p> 125 125 </dd> 126 126 </dl> -
gp-templates/header.php
14 14 <div id="gp-js-message"></div> 15 15 <h1> 16 16 <a href="<?php echo gp_url( '/' ); ?>"> 17 <img alt="<?php esc_attr (__('GlotPress logo')); ?>" src="<?php echo gp_url_img( 'glotpress-logo.png' ); ?>" />17 <img alt="<?php esc_attr_e(__('GlotPress logo')); ?>" src="<?php echo gp_url_img( 'glotpress-logo.png' ); ?>" /> 18 18 </a> 19 19 20 20 <?php echo gp_breadcrumb(); ?> -
gp-config-sample.php
36 36 /** 37 37 * GlotPress Localized Language, defaults to English. 38 38 * 39 * Change this to localize WordPress.A corresponding MO file for the chosen39 * Change this to localize GlotPress. A corresponding MO file for the chosen 40 40 * language must be installed to languages/. For example, install 41 41 * fr_FR.mo to languages/ and set GP_LANG to 'fr_FR' to enable French 42 42 * language support.
