diff options
-rw-r--r-- | pages/whats_on.ecpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp index 16c34f5..2c66a02 100644 --- a/pages/whats_on.ecpp +++ b/pages/whats_on.ecpp @@ -25,7 +25,7 @@ if (type == "now") { } else { head = tr("What's on next?"); } - + }> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> @@ -43,7 +43,7 @@ if (type == "now") { <img src="logo.png" alt="VDR Live!" class="logo"/> <& menu > </div> - + <div class="right_area"> <div class="inhalt"> <& pageelems.header_box content=(head) &> @@ -69,8 +69,10 @@ if (type == "now") { std::string start_m(FormatDateTime( "%M", Event->StartTime())); std::string end_m(FormatDateTime( "%M", Event->EndTime())); - if (description.length() > 300) { - description = description.substr(0,250) + "..."; + bool truncated = false; + description = StringWordTruncate(description, 250, truncated); + if (truncated) { + description += std::string(" ") + tr("more") + std::string(" ..."); } }> <div class="event"> |