Hi Tor,

I used this instead:

<string name="exception_loading_music" formatted="false">Couldn\'t load
music file %s (%s)</string>

Is there some difference with your proposal?

Thanks a lot in advance,


On 20/06/12 20:35, Tor Norbye wrote:
> 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 <
> fmmar...@gmail.com> 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 android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to