[wp-meta] [Making WordPress.org] #3876: Update wporg-gp-customizations to generate language packs for each JS file.
Making WordPress.org
noreply at wordpress.org
Thu Oct 18 11:12:33 UTC 2018
#3876: Update wporg-gp-customizations to generate language packs for each JS file.
--------------------------------------+---------------------
Reporter: herregroen | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Translate Site & Plugins | Resolution:
Keywords: needs-patch |
--------------------------------------+---------------------
Comment (by herregroen):
Replying to [comment:6 ocean90]:
> At first glance this is looking good. Shouldn't it use the `jed.json`
format? I'm wondering if `wp_get_installed_translations()` in core needs
any changes or if we can ignore that since there will always a po/mo file?
It's mainly used to parse the revision date for updates.
That was my first idea as well, however looking at GlotPress it seems that
the exported file will always contain `'domain' =>
'messages'` rather than the plugin domain which is why I decided against
it.
I've left the po/mo file alone for that reason, since it will contain all
translations the revision date should also be accurate for the JSON files.
The downside is that if an update is needed all files would have to be
replaced. But implementing partial updates may not be worth the effort,
especially for the initial implementation.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3876#comment:7>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list