diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-01-08 01:26:41 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-01-08 01:26:41 +0000 |
commit | 36ee492d7b82bd8ed17df13d6f51768f41fc2dfe (patch) | |
tree | 58e14b53118beea2c8dcf12729ce23ddef95b77e | |
parent | dd2aada079a2dbde18054ed826d9103ebc80816f (diff) | |
download | vdr-plugin-live-36ee492d7b82bd8ed17df13d6f51768f41fc2dfe.tar.gz vdr-plugin-live-36ee492d7b82bd8ed17df13d6f51768f41fc2dfe.tar.bz2 |
use StringWordTruncate in whats_on
-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"> |