Ticket #113: export-with-waiting.patch
| File export-with-waiting.patch, 2.6 KB (added by Nightgunner5, 22 months ago) |
|---|
-
gp-templates/translations.php
19 19 <form id="upper-filters-toolbar" class="filters-toolbar" action="" method="get" accept-charset="utf-8"> 20 20 <div> 21 21 <?php if ( $can_approve ): ?> 22 <a href="#" class="revealing bulk"><?php _e('Bulk ↓'); ?></a> <s trong class="separator">•</strong>22 <a href="#" class="revealing bulk"><?php _e('Bulk ↓'); ?></a> <span class="separator">•</span> 23 23 <?php endif; ?> 24 24 <a href="#" class="revealing filter"><?php _e('Filter ↓'); ?></a> <span class="separator">•</span> 25 <a href="#" class="revealing sort"><?php _e('Sort ↓'); ?></a> <s trong class="separator">•</strong>25 <a href="#" class="revealing sort"><?php _e('Sort ↓'); ?></a> <span class="separator">•</span> 26 26 <?php 27 27 $filter_links = array(); 28 28 $filter_links[] = gp_link_get( $url, __('All') ); … … 173 173 $export_url = gp_url_project( $project, array( $locale->slug, $translation_set->slug, 'export-translations' ) ); 174 174 $export_link = gp_link_get( $export_url , __('Export'), array('id' => 'export', 'filters' => add_query_arg( array( 'filters' => $filters ), $export_url ) ) ); 175 175 $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' ); 177 178 $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 ); 180 181 } 181 182 182 183 echo implode( ' • ', apply_filters( 'translations_footer_links', $footer_links, $project, $locale, $translation_set ) );
