CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event times "when" "through" how to customize
Pages: [1]

Author Topic: Event times "when" "through" how to customize  (Read 783 times)

nui

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: drupal 6.x
  • MySQL version: 5
  • PHP version: 5
Event times "when" "through" how to customize
June 14, 2011, 04:40:17 am
If I view an event, the details show the "when" of the event with start time and end time with the word "through"
our client wants it to say "until"

currently is displays
When    14 June 2011, 8:30   through   10:30 AM

client wants
When    14 June 2011, 8:30   until   10:30 AM

where can I change this?



joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Event times "when" "through" how to customize
June 14, 2011, 05:45:23 am
I am also interested in this, as the use of "through" in that context is not common in Australia.

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Event times "when" "through" how to customize
June 15, 2011, 03:14:43 am
By overriding  templates/CRM/Event/Page/EventInfo.tpl, for following minor change :)
Code: [Select]
-- templates/CRM/Event/Page/EventInfo.tpl (revision 34885)
+++ templates/CRM/Event/Page/EventInfo.tpl (working copy)
@@ -47,7 +47,7 @@
             <abbr class="dtstart" title="{$event.event_start_date|crmDate}">
             {$event.event_start_date|crmDate}</abbr>
             {if $event.event_end_date}
-                &nbsp; {ts}through{/ts} &nbsp;
+                &nbsp; {ts}until{/ts} &nbsp;
                 {* Only show end time if end date = start date *}
                 {if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}

Rajan

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Event times "when" "through" how to customize
June 15, 2011, 04:11:47 am
you might also want to try the 'word replacement' option under Admin > Option List > Word Replacement and try 'exact match' but of course it may replace 'through' elsewhere though can't think where else it might be used, or whether it counts as a complete text string - but v easy to test.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

nui

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.2
  • CMS version: drupal 6.x
  • MySQL version: 5
  • PHP version: 5
Re: Event times "when" "through" how to customize
October 04, 2011, 02:00:06 am
thanks Petednz


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event times "when" "through" how to customize

This forum was archived on 2017-11-26.