WordPress.org

Plugin Directory

Changeset 1733553 for event-post


Ignore:
Timestamp:
09/21/17 09:30:38 (5 weeks ago)
Author:
bastho
Message:

Contextualize i18n for "from" and "to"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/eventpost.php

    r1733548 r1733553  
    44  Plugin URI: http://event-post.com 
    55  Description: Add calendar and/or geolocation metadata on posts. For a better experience, we recommand to use it with <a href="https://wordpress.org/plugins/shortcode-ui/" target="_blank">Shortcake (shortcode UI)</a> installed. 
    6   Version: 5.0.2 
     6  Version: 5.0.3 
    77  Author: N.O.U.S. Open Useful and Simple 
    88  Contributors: bastho, ecolosites 
     
    667667                    . '<span class="date date-single">' . $this->human_date($time_end, $this->settings['dateformat']) . "</span>"; 
    668668            if (date('H:i', $time_start) != date('H:i', $time_end) && date('H:i', $time_start) != '00:00' && date('H:i', $time_end) != '00:00') { 
    669                 $dates.='   <span class="linking_word linking_word-from">' . __('from', 'event-post') . '</span> 
     669                $dates.='   <span class="linking_word linking_word-from">' . _x('from', 'Time', 'event-post') . '</span> 
    670670                            <span class="time time-start">' . date_i18n($this->settings['timeformat'], $time_start) . '</span> 
    671                             <span class="linking_word linking_word-t">' . __('to', 'event-post') . '</span> 
     671                            <span class="linking_word linking_word-to">' . _x('to', 'Time', 'event-post') . '</span> 
    672672                            <span class="time time-end">' . date_i18n($this->settings['timeformat'], $time_end) . '</span>'; 
    673673            } 
    674674            elseif (date('H:i', $time_start) != '00:00') { 
    675                 $dates.='   <span class="linking_word">' . __('at', 'event-post') . '</span> 
     675                $dates.='   <span class="linking_word">' . _x('at', 'Time', 'event-post') . '</span> 
    676676                            <time class="time time-single" itemprop="dtstart" datetime="' . date_i18n('c', $time_start) . '">' . date_i18n($this->settings['timeformat'], $time_start) . '</time>'; 
    677677            } 
     
    679679        } else { // not same day 
    680680            $dates.= ' 
    681                 <span class="linking_word linking_word-from">' . __('from', 'event-post') . '</span> 
     681                <span class="linking_word linking_word-from">' . _x('from', 'Date', 'event-post') . '</span> 
    682682                <time class="date date-start" itemprop="dtstart" datetime="' . date('c', $time_start) . '">' . $this->human_date($time_start, $this->settings['dateformat']); 
    683683            if (date('H:i:s', $time_start) != '00:00:00' || date('H:i:s', $time_end) != '00:00:00'){ 
     
    685685            } 
    686686            $dates.='</time> 
    687                 <span class="linking_word linking_word-to">' . __('to', 'event-post') . '</span> 
     687                <span class="linking_word linking_word-to">' . _x('to', 'Date', 'event-post') . '</span> 
    688688                <time class="date date-end" itemprop="dtend" datetime="' . date('c', $time_end) . '">' . $this->human_date($time_end, $this->settings['dateformat']); 
    689689            if (date('H:i:s', $time_start) != '00:00:00' || date('H:i:s', $time_end) != '00:00:00') { 
Note: See TracChangeset for help on using the changeset viewer.