-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for gettext/gettext
v5
#303
Comments
We can‘t use v5 yet because of differing PHP version requirements. As soon as this changes we are able to upgrade. See also #217 for some context. WP-CLI only changes its requirements when WP core does, so there is no ETA on this right now. |
gettext/gettext
`v5
gettext/gettext
v5
@swissspidy: So for attempting to add |
Yeah for instance. You could also try to fork this command to use v5 if that‘s easier |
@swissspidy: I just discovered that in the Hence implementing a PHP-Blade By the way, in |
Closing for now since we now have Blade support and we can update to gettext v5 (and reopen this ticket) once PHP requirements allow it |
Just wanted to ask if this is planned sometimes soon, since the minimal php requirement for wordpress is now 7.4. Having a hard time following these issues, but i think they will be fixed with the upgrade: |
@JUVOJ No. The minimum PHP version for WordPress is still 5.6 for the foreseeable future. |
@swissspidy / @schlessera: Can't we find a solution regarding this problem? Something around composer's |
If it's possible to support both versions in a maintainable way, that sounds like a viable middle ground. Maybe best to bring this up in the next office hours. |
Since we are finally dropping support for PHP 5.6 in WordPress 6.3 could you take this into consideration again @swissspidy? https://make.wordpress.org/core/2023/07/05/dropping-support-for-php-5/ |
Not yet, because gettextv5 requires PHP 7.2+ and WP still 7.0+ See also https://make.wordpress.org/cli/2019/01/15/wp-cli-php-requirements-strategy/ Again: If it's possible to support both versions in a maintainable way, that sounds like a viable middle ground |
@swissspidy : Could you please have a look at the v5 diff https://github.com/wp-cli/i18n-command/pull/355/files. The change for dual v4/v5 support are obvious (but not trivial):
Doable, but that would basically double the size of the diff. (I'm really sad a whole community of Timber (Twig) users are waiting for this to translate Twig templates and we are all held back because of a few (very hypothetical) users of PHP 7.1 using |
It seems like a good starting point 👍 Unfortunately CI logs are no longer available, but if it can be made to work, that sounds great. |
Feature Request
Describe your use case and the problem you are facing
For adding new file formats to scan like
blade
(that WordPress base themes use),it would be nice to know what
gettext/gettext
version should be used.Currently
wp i18n
usesgettext/gettext
v4.8
,v5
introduced some changes,Extractors
were removed from the base package (and the concept renamed).Describe the solution you'd like
What
gettext/gettext
release should be used in the long term? Are there plans to update to5.x
?The text was updated successfully, but these errors were encountered: