Try   <string name="exception_loading_music">Couldn\'t load music file
%1$s (%2$s)</string>

-- Tor

On Wed, Jun 20, 2012 at 11:31 AM, Francisco M. Marzoa Alonso <
[email protected]> wrote:

> Hi there,
>
> I have a l10n string that I need to format later, it looks like this:
>
>    <string name="exception_loading_music">Couldn\'t load music file %s
> (%s)</string>
>
> But Eclipse complains about a couple of errors on XML parsing:
>
> - error: Multiple substitutions specified in non-positional format; did
> you mean to add the formatted="false" attribute?
> - error: Unexpected end tag string
>
> It dissapear adding that formatted="false" attributed, but I am curious
> about that...
>
> I use these %s because I will use Formatter.format later to build an
> string with the file name that raises the exception and the e.toString()
> output.
>
> Regards,
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to