<br><br><div class="gmail_quote">On Mon, Oct 12, 2009 at 4:51 AM, Olivier <span dir="ltr"><<a href="mailto:oza-4h07@myamail.com">oza-4h07@myamail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>With 1.6.1.7-rc2, doc says:<br>select*CLI><br> -= Info about function 'SPRINTF' =-<br><br>[Syntax]<br>SPRINTF(<format>,<arg1>[,...<argN>])<br><br>[Synopsis]<br>Format a variable according to a format string<br>
<br>[Description]<br>Parses the format string specified and returns a string matching that format.<br>Supports most options supported by sprintf(3). Returns a shortened string if<br>a format specifier is not recognized.<br>
<br><br><br>I'm trying use sprintf option allowing to swap argument display according format string.<br>More precisely, I'm trying to this "%1$s" specifier (which means "use 1st argument").<br>
Then, the reply is :<br>ERROR[3185]: func_strings.c:547 acf_sprintf: Format type not supported: '%1$' with argument '1234'<br><br>Though the message is clear, before giving up, I thought I should ask here if someone could successfully use the<br>
"%1$s" specifier (which is very useful when you want to localize some messages or output some command strings).<br></blockquote><div><br>My initial (imho) impression is that localizations in the code, are in general a bad way to approach<br>
localization in general. The localizations should be located neither in Asterisk code nor in dialplan code. <br><br>I know, I know, that such code already exists, but that's still not making my assertion false...<br><br>
murf<br> <br></div><br></div>-- <br>Steve Murphy<br>ParseTree Corp<br><br>