Thanks for the quick response, but this solution only works if I have
the String when I compile and not in a ResourceBundle.
What I want to do is pull the String from from a ResourceBundle so
that I can translate it into many languages. Other languages will
likely place the string tokens in different places than english does.
In the ResourceBundle I will have the string:
Are you sure you want to delete page {0}?
Then when I need the string I will pull it and replace the token(s)
with the variable data.
Is there a way to do "printf" type string formatting in ActionScript?
--- In [email protected], Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Thursday 07 Jun 2007, gary_mangum wrote:
> > I'm sure I have just missed it, but I am looking for the string
> > function that handles formatting with parameters:
> >
> > var pageNumber:int = 5;
> > String.Format("Are you sure you want to delete page {0}?",
pageNumber);
>
> "Are you sure you want to delete page { pageNumber}?"
>
> :-)
>
> --
> Tom Chiverton
> Helping to ambassadorially aggregate granular users
> on: http://thefalken.livejournal.com
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>