PDA

View Full Version : wordwrap in XBMC.notification?


blittan
2006-04-17, 02:45
is it possible to add a wordwrap in the notification text?

xbmc.executebuiltin('xbmc.notification(test,i have a very/nlong line here..)')

where "\n" is the new line separator?

sCAPe
2006-04-17, 13:40
is this also possible for the language files (strings.xml)?
some dialogs are really long and for some ids there is only one line available for translation.
is there some xml code to wrap a line and make 2 lines ?

jmarshall
2006-04-18, 02:17
not sure about the notification line, though i don't see why it wouldn't work.

and you definitely can with strings.xml

try &10; as the newline character.

Nuka1195
2006-04-18, 02:59
xbmc.executebuiltin('xbmc.notification(test,i have a very/nlong line here..)')

if it's suppose to work for notification your newline is wrong. should be "\n"

sCAPe
2006-04-19, 20:12
and you definitely can with strings.xml

try &10; as the newline character.

@jmarshall
the &10; sequence doesn't work..

i tried for example the following in strings.xml:
<id 304>this is a very &10; long line</id 304>

and the dialog in xbmc displays the line as:
this is a very &10; long line

it doesn wrap the line to two lines ..

any hints on how to do a newline character in xml code ?

chadoe
2006-04-19, 20:25


don't know if it works in xbmc though.

jmarshall
2006-04-20, 00:16
yeah, that's it. i always forget the #. and yeah, it does work.