Ticket #57: patch1.2.diff

File patch1.2.diff, 9.5 KB (added by momo360modena, 2 years ago)

Missing some things on latest revision

  • gp-templates/project-edit.php

     
    88<h2><?php _e( sprintf( __('Edit project <q>%s</q>'), esc_html( $project->name ) ) ); ?></h2> 
    99<form action="" method="post"> 
    1010<?php gp_tmpl_load( 'project-form', get_defined_vars()); ?> 
    11         <p><input type="submit" name="submit" value="<?php echo esc_attr( __('Save') ); ?>" id="submit" /></p> 
     11        <p><input type="submit" name="submit" value="<?php esc_attr_e( __('Save') ); ?>" id="submit" /></p> 
    1212</form> 
    1313<?php gp_tmpl_footer(); 
     14 No newline at end of file 
  • gp-templates/project-new.php

     
    88<h2><?php _e( 'Create New Project' ); ?></h2> 
    99<form action="" method="post"> 
    1010<?php gp_tmpl_load( 'project-form', get_defined_vars()); ?> 
    11         <p><input type="submit" name="submit" value="<?php echo esc_attr( __('Create') ); ?>" id="submit" /></p> 
     11        <p><input type="submit" name="submit" value="<?php esc_attr_e( __('Create') ); ?>" id="submit" /></p> 
    1212</form> 
    1313<?php gp_tmpl_footer(); 
     14 No newline at end of file 
  • gp-templates/translation-set-permissions.php

     
    3131                <input type="text" name="user_login" value="" id="user_login" /> 
    3232        </p> 
    3333        <p> 
    34                 <input type="submit" name="submit" value="<?php echo esc_attr(__('Add &rarr;')); ?>" id="submit" /> 
     34                <input type="submit" name="submit" value="<?php esc_attr_e(__('Add &rarr;')); ?>" id="submit" /> 
    3535        </p> 
    3636         
    3737        <input type="hidden" name="action" value="add-approver" /> 
  • gp-templates/translation-row.php

     
    1111?> 
    1212<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; ?>"> 
    1313        <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 echo 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 )); ?>"> 
    1515        --> 
    16         <td class="priority" title="<?php echo 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 )); ?>"> 
    1717           <?php echo $priority_char[$t->priority][0] ?> 
    1818        </td> 
    1919        <td class="original"> 
  • gp-templates/project.php

     
    5959                        </dd> 
    6060                </dl> 
    6161                <p> 
    62                         <input type="submit" name="submit" value="<?php echo esc_attr(__('Save &rarr;')); ?>" id="save" /> 
     62                        <input type="submit" name="submit" value="<?php esc_attr_e(__('Save &rarr;')); ?>" id="save" /> 
    6363                        <a class="ternary" href="#" onclick="jQuery('#personal-options-toggle').click();return false;"><?php _e('Cancel'); ?></a> 
    64                 </p>             
     64                </p> 
    6565                </form> 
    6666        </div> 
    6767        </div> 
     
    7474        </p> 
    7575<?php endif; ?> 
    7676<script type="text/javascript" charset="utf-8"> 
    77         $gp.showhide('a.personal-options', 'Personal project options &darr;', 'Personal project options &uarr;', 'div.personal-options', '#source-url-template'); 
     77        $gp.showhide('a.personal-options', '<?php echo js_escape(__('Personal project options &darr;')); ?>', '<?php echo js_escape(__('Personal project options &uarr;')); ?>', 'div.personal-options', '#source-url-template'); 
    7878        $('div.personal-options').hide(); 
    7979</script> 
    8080<?php gp_tmpl_footer(); 
     81 No newline at end of file 
  • gp-templates/login.php

     
    1515                 
    1616                <dd><input type="submit" name="submit" value="<?php _e('Login'); ?>" id="submit"></dd> 
    1717        </dl> 
    18         <input type="hidden" value="<?php echo 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" />      
    1919</form> 
    2020<script type="text/javascript" charset="utf-8"> 
    2121        document.getElementById('user_login').focus(); 
  • gp-templates/translation-set-new.php

     
    88<h2><?php _e( 'Create New Translation Set' ); ?></h2> 
    99<form action="" method="post"> 
    1010<?php gp_tmpl_load( 'translation-set-form', get_defined_vars()); ?> 
    11         <p><input type="submit" name="submit" value="<?php echo esc_attr( __('Create') ); ?>" id="submit" /></p> 
     11        <p><input type="submit" name="submit" value="<?php esc_attr_e( __('Create') ); ?>" id="submit" /></p> 
    1212</form> 
    1313<?php gp_tmpl_footer(); 
     14 No newline at end of file 
  • gp-templates/project-import.php

     
    1010?> 
    1111<form action="" method="post" enctype="multipart/form-data"> 
    1212        <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" /> 
    1414        </p> 
    1515        <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" /> 
    1717        </p> 
    1818 
    19         <p><input type="submit" value="<?php echo esc_attr( __('Import') ); ?>"></p> 
     19        <p><input type="submit" value="<?php esc_attr_e( __('Import') ); ?>"></p> 
    2020</form> 
    2121<?php gp_tmpl_footer(); ?> 
     22 No newline at end of file 
  • gp-templates/translations.php

     
    6565                        ?> 
    6666                </dd> 
    6767                 
    68                 <dd><input type="submit" value="<?php echo esc_attr(__('Filter')); ?>" name="filter" /></dd> 
     68                <dd><input type="submit" value="<?php esc_attr_e(__('Filter')); ?>" name="filter" /></dd> 
    6969        </dl> 
    7070        <dl class="filters-expanded sort hidden clearfix"> 
    7171                <dt><?php _e('By:'); ?></dt> 
     
    9191                        ), gp_array_get( $sort, 'how', 'desc' ) ); 
    9292                ?> 
    9393                </dd> 
    94                 <dd><input type="submit" value="<?php echo esc_attr(__('Sort')); ?>" name="sorts" /></dd> 
     94                <dd><input type="submit" value="<?php esc_attr_e(__('Sort')); ?>" name="sorts" /></dd> 
    9595        </dl> 
    9696        <dl class="hidden bulk-actions filters-expanded clearfix"> 
    9797                <dt class="select"><?php _e('Select:'); ?></dt> 
     
    118118                        ?> 
    119119                </dd> 
    120120                <dd> 
    121                         <input type="hidden" name="bulk[redirect_to]" value="<?php echo 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]"> 
    122122                        <input type="hidden" name="bulk[translation-ids]" value="" id="bulk[translation-ids]"> 
    123                         <input type="submit" value="<?php echo esc_attr(__('Approve/Reject')); ?>" name="approve" /> 
     123                        <input type="submit" value="<?php esc_attr_e(__('Approve/Reject')); ?>" name="approve" /> 
    124124                        <p class="ternary"><?php _e('<strong>Note:</strong>&nbsp;Bulk edit works only on the current page.'); ?></p> 
    125125                </dd> 
    126126        </dl> 
  • gp-templates/header.php

     
    1414            <div id="gp-js-message"></div> 
    1515                <h1> 
    1616                        <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' ); ?>" /> 
    1818                        </a> 
    1919                         
    2020                        <?php echo gp_breadcrumb(); ?> 
  • gp-config-sample.php

     
    3636/** 
    3737 * GlotPress Localized Language, defaults to English. 
    3838 * 
    39  * Change this to localize WordPress. A corresponding MO file for the chosen 
     39 * Change this to localize GlotPress. A corresponding MO file for the chosen 
    4040 * language must be installed to languages/. For example, install 
    4141 * fr_FR.mo to languages/ and set GP_LANG to 'fr_FR' to enable French 
    4242 * language support.