WordPress.org

Plugin Directory

Changeset 622103


Ignore:
Timestamp:
11/07/12 12:56:29 (18 months ago)
Author:
tar.gz
Message:

allow more flexible translation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimalistic-event-manager/trunk/mem.php

    r621023 r622103  
    117117    $start_title = __('Start date', 'mem'); 
    118118    $end_title = __('End date', 'mem'); 
    119     $repeat_title = __('Repeat', 'mem'); 
     119    /* translators: the title of the Repeat item, not the action button */ 
     120    $repeat_title = _x('Repeat', 'repeat item title', 'mem'); 
    120121 
    121122    // use default wp class .misc-pub-section for spacing and that thin line below ?> 
     
    124125        <strong class="date-label"><?php echo $start_date_label; ?></strong>&nbsp; 
    125126        <a href="#edit_timestamp" class="mem-edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit', 'mem') ?></a> &nbsp; 
    126         <a href="#edit_timestamp" class="mem-repeat-timestamp hide-if-no-js" tabindex='4'><?php _e('Repeat', 'mem') ?></a> 
     127        <a href="#edit_timestamp" class="mem-repeat-timestamp hide-if-no-js" tabindex='4'><?php  
     128        /* translators: the Repeat action button */ 
     129        _ex('Repeat', 'repeat action button', 'mem') ?></a> 
    127130        <div class='hide-if-js mem-date-select'><?php mem_touch_time( 'start', $start_date ); ?></div> 
    128131    </div> 
     
    446449    $translation_array = array( 
    447450        'not_set' => __('Not Set', 'mem'), 
    448         'repeat' => __('Repeat', 'mem'), 
     451        //'repeat' => __('Repeat', 'mem'), 
     452        'repeat' => _x('Repeat', 'repeat item title', 'mem'), 
    449453    ); 
    450454    // sending ajaxurl as translated string is a hack seen as good practice to send the variable across scripts 
Note: See TracChangeset for help on using the changeset viewer.