[OSM-dev] extracting output text from api_controller

Martijn van Oosterhout kleptog at gmail.com
Thu Jan 24 11:57:27 GMT 2008


2008/1/23 Xin Zheng <xin at zxv.ltd.uk>:
> We can have:
> unless bbox and bbox.count(',') == 3
>       report_error(TEXT['boundary_parameter_required']
>       return
> end

How does this handle replacables? How do you get stuff "Parameter %s
is out of range":

report_error( sprintf(TEXT['parameter_out_of_range'],var) )

or something? You then do lose information about the formatting...

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the dev mailing list