| 173 | | if ( GP::$user->logged_in() ) { |
| 174 | | $export_url = gp_url_project( $project, array( $locale->slug, $translation_set->slug, 'export-translations' ) ); |
| 175 | | $export_link = gp_link_get( $export_url , __('Export'), array('id' => 'export', 'filters' => add_query_arg( array( 'filters' => $filters ), $export_url ) ) ); |
| 176 | | $format_slugs = array_keys( GP::$formats ); |
| 177 | | $what_dropdown = gp_select( 'what-to-export', array('all' => _x('all current', 'export choice'), 'filtered' => _x('only matching the filter', 'export choice')), 'all' ); |
| 178 | | $format_dropdown = gp_select( 'export-format', array_combine( $format_slugs, $format_slugs ), 'po' ); |
| 179 | | /* translators: 1: export 2: what to export dropdown (all/filtered) 3: export format */ |
| 180 | | $footer_links[] = sprintf( __('%1$s %2$s as %3$s'), $export_link, $what_dropdown, $format_dropdown ); |
| 181 | | } |
| | 173 | $export_url = gp_url_project( $project, array( $locale->slug, $translation_set->slug, 'export-translations' ) ); |
| | 174 | $export_link = gp_link_get( $export_url , __('Export'), array('id' => 'export', 'filters' => add_query_arg( array( 'filters' => $filters ), $export_url ) ) ); |
| | 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' ); |
| | 177 | $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 ); |