[wp-meta] [Making WordPress.org] #776: Translation API: Missing translations for development versions
Making WordPress.org
noreply at wordpress.org
Sat Dec 13 16:59:38 UTC 2014
#776: Translation API: Missing translations for development versions
----------------------+-------------------------------
Reporter: ocean90 | Owner:
Type: defect | Status: new
Priority: normal | Component: api.wordpress.org
Resolution: | Keywords: has-patch
----------------------+-------------------------------
Description changed by ocean90:
Old description:
> 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.
New description:
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 [attachment:776.patch]
2) Skip version compare for dev versions, see [attachment: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.
--
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/776#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list