Ticket #113: export-with-waiting.patch

File export-with-waiting.patch, 2.6 KB (added by Nightgunner5, 22 months ago)
  • gp-templates/translations.php

     
    1919<form id="upper-filters-toolbar" class="filters-toolbar" action="" method="get" accept-charset="utf-8"> 
    2020        <div> 
    2121        <?php if ( $can_approve ): ?> 
    22         <a href="#" class="revealing bulk"><?php _e('Bulk &darr;'); ?></a> <strong class="separator">&bull;</strong> 
     22        <a href="#" class="revealing bulk"><?php _e('Bulk &darr;'); ?></a> <span class="separator">&bull;</span> 
    2323        <?php endif; ?> 
    2424        <a href="#" class="revealing filter"><?php _e('Filter &darr;'); ?></a> <span class="separator">&bull;</span> 
    25         <a href="#" class="revealing sort"><?php _e('Sort &darr;'); ?></a> <strong class="separator">&bull;</strong> 
     25        <a href="#" class="revealing sort"><?php _e('Sort &darr;'); ?></a> <span class="separator">&bull;</span> 
    2626        <?php 
    2727        $filter_links = array(); 
    2828        $filter_links[] = gp_link_get( $url, __('All') ); 
     
    173173                        $export_url = gp_url_project( $project, array( $locale->slug, $translation_set->slug, 'export-translations' ) ); 
    174174                        $export_link = gp_link_get( $export_url , __('Export'), array('id' => 'export', 'filters' => add_query_arg( array( 'filters' => $filters ), $export_url ) ) ); 
    175175                        $format_slugs = array_keys( GP::$formats ); 
    176                         $what_dropdown = gp_select( 'what-to-export', array('all' => _x('all current', 'export choice'), 'filtered' => _x('only matching the filter', 'export choice')), 'all' ); 
     176                        $what_dropdown = gp_select( 'what-to-export', array('all' => _x('all', 'export choice'), 'filtered' => _x('only matching the filter', 'export choice')), 'all' ); 
     177                        $status_dropdown = gp_select( 'filters[status]', array( 'current' => _x( 'translated strings', 'export choice' ), 'current_or_fuzzy_or_waiting' => _x( 'strings', 'export choice' ) ), 'current' ); 
    177178                        $format_dropdown = gp_select( 'export-format', array_combine( $format_slugs, $format_slugs ), 'po' ); 
    178                         /* translators: 1: export 2: what to export dropdown (all/filtered) 3: export format */ 
    179                         $footer_links[] = sprintf( __('%1$s %2$s as %3$s'), $export_link, $what_dropdown, $format_dropdown ); 
     179                        /* translators: 1: export 2: what to export dropdown (all/filtered) 3: status (including/excluding non-approved translations) 4: export format */ 
     180                        $footer_links[] = sprintf( __('%1$s %2$s %3$s as %4$s'), $export_link, $what_dropdown, $status_dropdown, $format_dropdown ); 
    180181                } 
    181182                 
    182183                echo implode( ' &bull; ', apply_filters( 'translations_footer_links', $footer_links, $project, $locale, $translation_set ) );