Making WordPress.org

Changeset 2931


Ignore:
Timestamp:
04/11/2016 01:50:03 PM (8 years ago)
Author:
ocean90
Message:

Translate, Plugin Directory: Enhance translation sync for plugin projects.

  • Sync new translations and edits between the stable and dev project of a plugin.
  • Provide a WPCLI command to sync all translations between dev and stable. The command will be used by the SVN tracker when stable gets updated.
  • Disabled until the update to GlotPress 2.0.

See #1636.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/class-plugin.php

    r2881 r2931  
    1111     */
    1212    private static $instance;
     13
     14    /**
     15     *
     16     * @var Sync\Translation_Sync
     17     */
     18    public $translation_sync = null;
    1319
    1420    /**
     
    3844        $cache_purger->register_events();
    3945
     46    //  $this->translation_sync = new Sync\Translation_Sync();
     47    //  $this->translation_sync->register_events();
     48
    4049        if ( defined( 'WP_CLI' ) && WP_CLI ) {
    4150            $this->register_cli_commands();
     
    5059        WP_CLI::add_command( 'wporg-translate set-plugin-project', __NAMESPACE__ . '\CLI\Set_Plugin_Project' );
    5160        WP_CLI::add_command( 'wporg-translate delete-plugin-project', __NAMESPACE__ . '\CLI\Delete_Plugin_Project' );
     61    //  WP_CLI::add_command( 'wporg-translate sync-plugin-translations', __NAMESPACE__ . '\CLI\Sync_Plugin_Translations' );
    5262    }
    5363}
Note: See TracChangeset for help on using the changeset viewer.