Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
philotas
Roku Guru

How to do linebreaks in localization file/multiline strings?

How do I handle multi line text when doing translation?

Imagine this label:


<trans-unit id="0">
<source xml:lang="en">New
line</source>
<target xml:lang="de">Neue
Zeile</target>
</trans-unit>


now I can do:


label = Tr("New"+chr(10)+"line")


that works, but can't I define a multi line string in Brightscript with a line break like this?


REM the code does not work
label = Tr("New
line")
0 Kudos
2 REPLIES 2
EnTerr
Roku Guru

Re: How to do linebreaks in localization file/multiline stri

Right. I recently asked the same - with a survey/ideas from other languages. Invite you to add your voice there:
viewtopic.php?f=34&t=95285
0 Kudos
philotas
Roku Guru

Re: How to do linebreaks in localization file/multiline stri

thanks. did not find your post during my search.
0 Kudos