-
Notifications
You must be signed in to change notification settings - Fork 5
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
The php-format flag is missing #12
Comments
I didn't know this flag. Is this a standard? |
https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
https://www.gnu.org/software/gettext/manual/html_node/php_002dformat.html#php_002dformat
|
I've implemented a regexp to detect if the original text includes a sprintf expression: Could you check if it works fine to you, before release a new version? |
It seems to be working very well. |
Ok, new version released including this. |
The scanner does not add the php-format flag for gettext() arguments that are a format string for sprintf() functions such as %s or %d.
For example:
sprintf(gettext("This is %s"), $value);
does not return flag
#, php-format
The text was updated successfully, but these errors were encountered: