Making WordPress.org

Opened 9 years ago

Closed 8 years ago

Last modified 2 years ago

#1636 closed defect (bug) (fixed)

Enhance translation sync for plugin projects

Reported by: ocean90's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: Priority: high
Component: Translate Site & Plugins Keywords:
Cc:

Description (last modified by samuelsidler)

The current sync is based on the translation propagation feature by GlotPress. This feature isn't reliable and will be moved into a plugin.

Our own implementation should only sync translations between dev <-> stable and dev-readme <-> stable-readme.

Attachments (1)

1636.patch (7.1 KB) - added by ocean90 9 years ago.

Download all attachments as: .zip

Change History (20)

#1 @samuelsidler
9 years ago

  • Description modified (diff)

#2 @ocean90
9 years ago

In 2881:

Translate, Plugin Directory: Switch to using namespaces and an autoloader.

The autoloader is copied from the Plugin Directory plugin: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-autoloader.php

See #1636.

@ocean90
9 years ago

#3 @ocean90
9 years ago

In 2931:

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.

#4 @ocean90
9 years ago

In 2951:

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

See #1667, #1636.

#5 @ocean90
9 years ago

In 3000:

Translate, Plugin Directory: Enable the CLI command for syncing translations between plugin projects.

See #1636.

#6 @ocean90
9 years ago

In 3014:

Translate: Add a REST API endpoint to manage jobs via WP's cron API.

See #1636.

#7 @ocean90
9 years ago

In 3016:

Translate: Add a DELETE endpoint for jobs.

See #1636.

#8 @ocean90
9 years ago

In 3018:

Translate, Plugin Directory: Add a callback for the sync_plugin_translations hook.

The hook gets triggered by the cron API and starts the sync of plugin translations between two projects.

See #1636.

#9 @ocean90
9 years ago

In 3024:

Translate, Plugin Directory: Send a Slack notification when a translation sync was processed.

See #1636.

This ticket was mentioned in Slack in #meta-i18n by ocean90. View the logs.


9 years ago

#11 @ocean90
9 years ago

In 3028:

Translate, Plugin Directory: Make Slack notification more specific on what is actually synced.

See #1636.

#12 @ocean90
9 years ago

In 3046:

Translate, Plugin Directory: Make Slack notification more verbose in case of errors.

See #1636.

#13 @ocean90
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

#14 @ocean90
9 years ago

In 3059:

Translate: Improve documentation of the jobs endpoint and allow only hooks which are prefixed with wporg_translate_.

See #1636.

#15 @ocean90
9 years ago

In 3060:

Translate, Plugin Directory: Update hook action to include the wporg_translate_ prefix.

See #1636.

#16 @ocean90
8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Currently the plugin directory is triggering a sync after an import. This should happen on the translate site.

#17 @ocean90
8 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from reopened to closed

In 3513:

Translate, Plugin Directory: Trigger a translation sync from dev to stable when originals get imported.

Fixes #1636.

#18 @ocean90
8 years ago

In 3603:

Translate, Plugin Directory: Fix format of the arguments for the sync action.

See #1636.

#19 @dd32
2 years ago

In 12120:

Translate: Specify a permission_callback for translate/v1/jobs to avoid deprecated notices.

See #1636.

Note: See TracTickets for help on using tickets.