You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the amp-translations.php file has a PHP syntax error with a spurious comma on line 6:
<?php/* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */$generated_i18n_strings = array(
/* translators: Copyright (C) 2018 WordPress.com VIP, XWP, Google, and contributorsThis file is distributed under the same license as the AMP plugin. */
,
/* Plugin Name of the plugin */__( 'AMP', 'amp' ),
This syntax error doesn't cause a problem for the purposes of translating on WordPress.org since the file isn't actually executed, but rather the gettext function calls are just extracted.
However, the presence of this syntax error causes problems when attempting to deploy a build of the plugin to a hosting environment where PHP syntax checking is part of a pre-receive hook, so a git push can then fail. So far this is known to be an issue on WP Engine and it would also be a problem on WordPress.com VIP.
The text was updated successfully, but these errors were encountered:
The
pot-to-php
script is used to generate anamp-translations.php
file for WordPress.org to use for translations:https://github.com/Automattic/amp-wp/blob/b3e1b4d07dda70c5070d30f7426f849eb3a39823/package.json#L34
However, the
amp-translations.php
file has a PHP syntax error with a spurious comma on line 6:This syntax error doesn't cause a problem for the purposes of translating on WordPress.org since the file isn't actually executed, but rather the gettext function calls are just extracted.
However, the presence of this syntax error causes problems when attempting to deploy a build of the plugin to a hosting environment where PHP syntax checking is part of a
pre-receive
hook, so a git push can then fail. So far this is known to be an issue on WP Engine and it would also be a problem on WordPress.com VIP.The text was updated successfully, but these errors were encountered: