[wp-meta] [Making WordPress.org] #2000: Infrastructure for Cross-Locale PTEs
Making WordPress.org
noreply at wordpress.org
Sun Dec 11 20:03:41 UTC 2016
#2000: Infrastructure for Cross-Locale PTEs
--------------------------------------+------------------
Reporter: akirk | Owner:
Type: task | Status: new
Priority: high | Milestone:
Component: Translate Site & Plugins | Resolution:
Keywords: |
--------------------------------------+------------------
Comment (by ocean90):
@akirk I couldn't get [attachment:2000.2.diff] working.
[attachment:2000.3.diff] includes a few fixes:
* Adds a `require_once` for the `Cross_Locale_PTE` class (global.w.org mu-
plugins are not loaded for translate.w.org)
* Fixes first argument of
`Cross_Locale_PTE::user_has_cross_locale_permission()`, it's a user
object, not only a user ID
* Adds the `date_added` field in
`Cross_Locale_PTE::update_cross_locale_pte()`
* Fixes the user property in `Cross_Locale_PTE::get_all_users()` for the
email, `email` => `user_email`
It looks like the current code doesn't handle our project hierarchy. For
example I added the user to plugin X, but the translations are actually in
a sub-project (dev/stable/dev-readme/stable-readme) of X. See #2255 for
some background around this.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2000#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list