Forum Discussion

SoN9ne's avatar
SoN9ne
Visitor
12 years ago

tr() for a paragraph not working

Hello,

I currently have:
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.") )


The problem is this does not translate. I am assuming it's because it's a paragraph and tr() is meant to be used for single sentences. Is there a preferred way to handle paragraph translations?
For now, I am thinking of using a conditional in the code to show the paragraph but worry this will prevent the channel from being approved. Something like:
    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 )


Any ideas or suggestions?
No RepliesBe the first to reply