[wp-meta] [Making WordPress.org] #3876: Update wporg-gp-customizations to generate translation files for each JS file.
Making WordPress.org
noreply at wordpress.org
Thu Nov 1 08:56:02 UTC 2018
#3876: Update wporg-gp-customizations to generate translation files for each JS
file.
--------------------------------------+---------------------
Reporter: herregroen | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Translate Site & Plugins | Resolution:
Keywords: has-patch |
--------------------------------------+---------------------
Comment (by ocean90):
We now have the JavaScript strings in the core projects. Worth nothing the
Language_Pack command is currently *not* used for core. I have attached a
snippet of the current build script in [attachment:"core-language-
pack.sh"]. It uses `wp glotpress translation-set export` for the export.
Instead of trying to do the JS handling in bash we should probably add a
WP-CLI command for this.
> To avoid unnecessary memory usage, a string that's only used in a
JavaScript file should not be part of the main po/mo file.
That's something we have to ignore for core for now because of
https://github.com/wp-cli/i18n-command/issues/105.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3876#comment:16>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list