GNU gettext - Bugs: bug #62337, Support complex PHP variables in a...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62337: Support complex PHP variables in a string
Submitter: | Silvério <sil> | ||
Submitted: | Wed 20 Apr 2022 11:11:24 AM UTC | ||
Category: | PHP | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
System: Debian Bullseye
xgettext version: 0.21
When running
on a PHP source file with translatable strings in the function
and enclosed in double ", only the ones without complex aka. curly variables in the string are identified and added to the .pot, while those including them are skipped.
Also found no way to manually add those strings into the .pot, that is overwritten by invocations of xgettext, effectively leaving those strings out.
- Expected behavior: Include the strings with complex syntax with the content of {$<expression>} (where expression is a PHP expression) to be copied as is into msgid.
- Observed behavior: Strings with complex syntax are completely skipped.