MAKETEXT
and FORMFIELD
, and the field returns an empty string (because the field is empty):
%MAKETEXT{"Component:[_1]" args="%FORMFIELD{"Component"}%"}%renders as: Component:I18N For some reason
MAKETEXT
inserts zeroes for missing arguments, and it is even documented in the code: "fill omitted args with zeros" in MAKETEXT.pm
line 32.
Why not empty strings?
-- ArthurClemens - 12 Feb 2011
Summary | MAKETEXT renders 0 if arg is empty |
ReportedBy | ArthurClemens |
Codebase | |
SVN Range | |
AppliesTo | Engine |
Component | I18N, MAKETEXT |
Priority | Normal |
CurrentState | Closed |
WaitingFor | |
Checkins | distro:d109bb778fa9 distro:2765732ef7f7 distro:233bd79b3c44 distro:77a55dfa730c distro:b390fedab2ef distro:bd1a1bc9d297 distro:f3acac1302ae distro:595487aac5cb distro:d20364a42610 |
TargetRelease | patch |
ReleasedIn | 1.1.3 |