Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
philotas
Level 7

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
EnTerr
Level 8

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
Level 7

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

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