screen.AddParagraph( tr("The SonLife Broadcasting Network is a Christian multi-media network, which includes Television, Radio and Internet broadcasts. An outreach of Jimmy Swaggart Ministries, this network offers a variety of live and prerecorded programs, specializing in music and teaching, that appeal to audiences of all generations and backgrounds. The line-up is comprised of music, talk-shows, live Church services, studio programs, youth programs, children’s programs and much, much more. Jimmy Swaggart Ministries has not only had an impact in the United States in the last 50 years, but as well, has an international reach that still continues to this day.") )
locale = getLocale()
print "Locale is: " ; locale
if ("es_ES" = locale) then
paragraph = "SonLife Broadcasting Network es una red multimedia cristiana, que incluye emisiones de televisión, radio e Internet. Un alcance del Ministerio de Jimmy Swaggart, esta red ofrece una variedad de programas en vivo y pregrabados, que se especializa en música y enseñanza, que interesa al público de todas las generaciones y orígenes. La disposición se compone de música, programas de entrevistas, cultos en vivo, programas en el estudio de televisión, programas para jóvenes, programas para niños y mucho más. El Ministerio de Jimmy Swaggart no sólo ha tenido un impacto en los Estados Unidos en los 50 últimos años, sino también, tiene un alcance internacional que aún continúa hasta el día de hoy"
else
paragraph = "The SonLife Broadcasting Network is a Christian multi-media network, which includes Television, Radio and Internet broadcasts. An outreach of Jimmy Swaggart Ministries, this network offers a variety of live and prerecorded programs, specializing in music and teaching, that appeal to audiences of all generations and backgrounds. The line-up is comprised of music, talk-shows, live Church services, studio programs, youth programs, children’s programs and much, much more. Jimmy Swaggart Ministries has not only had an impact in the United States in the last 50 years, but as well, has an international reach that still continues to this day."
end if
screen.AddParagraph( paragraph )
"SoN9ne" wrote:
This is due to this post from the Roku Developer Blog. I am trying to Localize my channel as it is used for English and Spanish. We currently have two separate channels but are making them into one. My issue is that I need to translate a paragraph but it doesn't seem to work.
I'm also wondering if my fix would have any issues with getting the channel approved.
"EnTerr" wrote:
It's been 1 year and 9 months and this localization stuff has not made it to the SDK!
"squirreltown" wrote:
Far be it from me to rain on your rant, But there is a Localization example in the SDK. Now that being said, It is the part of the SDK where you have to go to that certain place and down an alley and around the corner and a little door opens up and you give the correct password ("swordfish") and then you are allowed to download something you though you already had, but don't really. As far as the Wiki goes - yep - No Habla tr()
"Developer Guide" wrote:
1.2 Developing with the Roku SDK
The Roku SDK consists of a set of documentation, design guidelines, and sample applications that enable channels to be developed for the Roku Streaming Player. To understand the Roku SDK, here are the key documents:
- The Developer Guide (DeveloperGuide.pdf) covers the architecture, programming language, development process, and channel deployment requirements.
- The BrightScript Reference Manual will bring you up to speed on the language and serves as a reference for the core components. BrightScript is the programming language used to develop channel applications on the Roku Streaming Player. BrightScript is a scripting language optimized to be the high level glue that ties together BrightScript Components and the Internet.
- The Component Reference guide describes the Roku Streaming Player platform components that expose APIs to BrightScript.
The entire documentation set includes the following:
Developer Guide Introduction to developing for the Roku platform
BrightScript Reference Manual Reference for the BrightScript programming language.
Component Reference Manual Reference for the components exposed to BrightScript
Channel Packaging and Publishing Creating a package and uploading to the Developer Site
Design Guidelines User Experience guidelines and standard art dimensions
Mockup Tool (PowerPoint) Quickly create a mockup of your channel as ppt screens
Device Registration and Linking Linking the Roku Streaming Player channel to an account on your site
BIF File Specification How to support Trick Mode for your streams
Encoding Guide Creating Roku compatible streams.
Eclipse Plugin for Brightscript Guide Installing and using the "Brightscript IDE".
In addition to the documentation, the SDK includes a set of sample apps that demonstrate some of the BrightScript and Roku Platform programming techniques. You may reuse any of the code found in these sample apps as a basis for your own development, subject to the terms of the Roku Channel Developer Agreement. A brief description of these sample apps follows:
[... List of app links here, nothing about localization ... ]
"EnTerr" wrote:
The way this is dealt with by RokuCo is extremely unprofessional. I get the impression whoever oversees the doco now has never worked in a company where formal documentation is produced. It is unacceptable to use this forum as long-term documentation, to have on SourceForge unmaintained repository of examples (they lack makefiles!) and to "dropbox" patches for the examples that should be included in the SDK
If Roku development is a hobby for you, maybe it does not bother you. I am software engineer however and it pisses the heck out of me. We should strive for a single, reliable source that can be consulted when information is needed, and not do the "secret agent" procedures you described. It does not have to be on paper, does not have to be in PDF, does not have to be in pretty fonts - but it has to be in one place and searchable. Which it is - it is wiki, how much easier can it get maintaining that?!