Making WordPress.org

Opened 10 years ago

Closed 10 years ago

#776 closed defect (bug) (wontfix)

Translation API: Missing translations for development versions

Reported by: ocean90's profile ocean90 Owned by:
Milestone: Priority: normal
Component: API Keywords: has-patch
Cc:

Description (last modified by ocean90)

https://wordpress.slack.com/archives/meta-i18n/p1418424435000057

http://api.wordpress.org/translations/core/1.0/?version=4.1-RC1 returns only the results for version 4.0 because version_compare( '4.1-RC1', '4.1', '>=' ) is false.

Solutions:
1) Use only the branch part of the version, see 776.patch
2) Skip version compare for dev versions, see 776.2.patch
3) ?

The lines are based on https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-wp-upgrader.php?rev=30762#L2119.

Attachments (2)

776.patch (1.2 KB) - added by ocean90 10 years ago.
776.2.patch (1.6 KB) - added by ocean90 10 years ago.

Download all attachments as: .zip

Change History (5)

@ocean90
10 years ago

@ocean90
10 years ago

#1 @ocean90
10 years ago

  • Description modified (diff)

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


10 years ago

#3 @ocean90
10 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.