[wp-meta] [Making WordPress.org] #6188: Language Pack generation: trigger on plugin update

Making WordPress.org noreply at wordpress.org
Tue Mar 15 08:10:44 UTC 2022


#6188: Language Pack generation: trigger on plugin update
--------------------------------------+---------------------
 Reporter:  adamsilverstein           |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:
Component:  Translate Site & Plugins  |  Resolution:
 Keywords:                            |
--------------------------------------+---------------------

Comment (by ocean90):

 I can confirm that each version gets its own language pack if there were
 string changes or the latest theme/plugin version has no language pack
 yet. But there are indeed some delays:

 * Import of originals gets scheduled (15 minutes):
 https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/plugins/plugin-directory/jobs/class-plugin-i18n-
 import.php?rev=11013#L15
 * Translations need to be synced from dev to stable (5 minutes):
 https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/plugins/wporg-gp-plugin-directory/inc/sync/class-translation-
 sync.php?11068#L31
 * Language pack build needs to be triggered (30 minutes)
 https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/plugins/wporg-gp-plugin-directory/inc/language-pack/class-
 build-trigger.php?rev=10222
 * Language pack is build if translations have been changed or no package
 exists for current version:
 https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/plugins/wporg-gp-customizations/inc/cli/class-language-
 pack.php?rev=10222#L585


 The issue with not building new language packs if only the references have
 changed is true and was also
 [https://github.com/wearerequired/traduttore/issues/186 reported by me
 here for Traduttore]. A simple regeneration like suggested here won't work
 at all because language packs are updated by the plugin/theme version and
 the date of the last edited translation.
 But this should only apply to authors who either only use trunk or are
 changing files in a tagged version.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6188#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list