NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item10346: MAKETEXT renders 0 if arg is empty
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
I18N, MAKETEXT |
|
Let's say I have a combination of
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