Changeset 3515 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php
- Timestamp:
- 06/21/2016 09:32:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/i18n/class-code-import.php
r3507 r3515 88 88 } 89 89 90 parent::set_glotpress_for_plugin( $this->plugin, 'code' ); 90 $result = $this->set_glotpress_for_plugin( $this->plugin, 'code' ); 91 if ( is_wp_error( $result ) ) { 92 throw new Exception( $result->get_error_message() ); 93 } 91 94 92 95 $branch = ( 'trunk' === $tag ) ? 'dev' : 'stable'; 93 parent::import_pot_to_glotpress_project( $this->plugin, $branch, $pot_file );96 $this->import_pot_to_glotpress_project( $this->plugin, $branch, $pot_file ); 94 97 95 // @todo: Import translations only once. 98 // Import translations on initial import. 99 if ( 'created' === $result ) { 100 $this->import_translations_to_glotpress_project( $export_directory, $this->plugin, $branch ); 101 } 96 102 } 97 103 }
Note: See TracChangeset
for help on using the changeset viewer.