[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62337] Support complex PHP variables in a string
From: |
Silvério |
Subject: |
[bug #62337] Support complex PHP variables in a string |
Date: |
Wed, 20 Apr 2022 07:11:26 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62337>
Summary: Support complex PHP variables in a string
Project: GNU gettext
Submitted by: sil
Submitted on: 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
Discussion Lock: Any
_______________________________________________________
Details:
System: Debian Bullseye
xgettext version: 0.21
When running
xgettext -l PHP ...
on a PHP source file with translatable strings in the function
_()
and enclosed in double ", only the ones _without_ complex aka. curly
variables
<https://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex>
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62337>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #62337] Support complex PHP variables in a string,
Silvério <=