Item10346: MAKETEXT renders 0 if arg is empty

Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Engine
Component: I18N, MAKETEXT
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: KennethLavrsen
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

 
Topic revision: r22 - 16 Apr 2011, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License