Skip to content

Commit

Permalink
Export only Current/Waiting/Fuzzy translations
Browse files Browse the repository at this point in the history
Change the MO file export path status from all to current_or_waiting_or_fuzzy.
Exporting all translations will include "Rejected" and "Approved, but obsoleted by another translation" status, sometimes overriding the current ones.
  • Loading branch information
naokomc committed Aug 29, 2018
1 parent 7ef15e6 commit a1f5a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion force-update-translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function import( $project_slug, $locale = 'ja', $format = 'mo' ) {
* @return $path File path to get source.
*/
function get_source_path( $project, $locale, $format = 'mo', $type = 'dev' ) {
$path = sprintf( 'https://translate.wordpress.org/projects/%1$s/%2$s/%3$s/default/export-translations?filters[status]=all',
$path = sprintf( 'https://translate.wordpress.org/projects/%1$s/%2$s/%3$s/default/export-translations?filters[status]=current_or_waiting_or_fuzzy',
$project,
$type,
$locale
Expand Down

0 comments on commit a1f5a1b

Please sign in to comment.