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: 
euronews
Visitor

multi-language apps?

Hi All,

I'm just about to start writing a multi-language app i.e. an app that can display the same content (text + videos) in various languages.

I've looked far & wide for another multi-language app in order to see how the in-app "change of language" was handled but couldn't find one!

Does anyone know offhand of an app that has a similar feature (or do I have to release multiple apps, one for each language)?

Thanks in advance,
Brian
0 Kudos
3 REPLIES 3
renojim
Community Streaming Expert

Re: multi-language apps?

Your first problem is going to be with accented characters. Most of the components don't support them (I believe only roImageCanvas does, but I could be mistaken).

You don't need multiple apps. There's a couple of ways you could do it, but you'll have to handle it on your own; there's no built-in support. You could retrieve the text to display from a server or keep multiple versions of the text within the app and switch between languages.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
euronews
Visitor

Re: multi-language apps?

Thanks for the reply!

I tested accented characters and they appear to show as intended on the latest boxes. Arabic or Hebrew characters don't show at all but perhaps I can dynamically install the required font to make them show. I shall have to investigate this further.

The bigger problem for me at the minute is finding a way to display and handle the "change language" functionality within the app - it would have been great to see how other apps did it but it looks as though I shall have to come up with a bespoke solution.

Again, thanks for taking the time to reply.

Regards,
Brian.
0 Kudos
jbrave
Channel Surfer

Re: multi-language apps?

Basically, the only roku components that support true international character sets are the roImageCanvas and the roScreen, and roScreen is the only one that is certain. The other components, to my knowledge, only support ASCII. You need to load you own TTF or OpenType font to handle languages, and write your own GUI from scratch, using roScreen or roImageCanvas. Look up roFontResource and roFont in the Brightscript 3.0 manual.

Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos