To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #446: changes-i18n.diff

File changes-i18n.diff, 11.8 KB (added by perseo, 16 months ago)

Some changes to correct missing a_() function.

  • aEvent/templates/_singleColumnTemplate_slot.php

     
    2323                <?php echo $aEvent->getTextForArea('blog-body', $options['excerptLength']) ?> 
    2424        </div> 
    2525        <div class="a-blog-read-more"> 
    26                 <?php echo link_to('Read More', 'a_event_post', $aEvent, array('class' => 'a-blog-more')) ?> 
     26                <?php echo link_to(a_('Read More'), 'a_event_post', $aEvent, array('class' => 'a-blog-more')) ?> 
    2727        </div> 
    2828</div> 
     29 No newline at end of file 
  • aEvent/templates/_meta.php

     
    2424 
    2525        <?php /* Events generally don't display the author, but you can if necessary.  ?> 
    2626        <li class="post-author"> 
    27                 <span class="a-blog-item-meta-label"><?php echo __('Posted By:', array(), 'apostrophe') ?></span> 
     27                <span class="a-blog-item-meta-label"><?php echo a_('Posted By:') ?></span> 
    2828                <?php echo ($aEvent->getAuthor()->getName()) ? $aEvent->getAuthor()->getName() : $aEvent->getAuthor()  ?> 
    2929        </li>                            
    3030        <?php //*/ ?> 
  • aEvent/templates/_calendar.php

     
    77                <th colspan="7"> 
    88                        <?php echo a_button(a_('Previous'), url_for(aUrl::addParams($filtersWithoutDate,$calendar['params']['prev'])), array('a-arrow-btn', 'icon', 'a-arrow-left', 'previous-month', 'alt')) ?> 
    99                        <h4 class="title"> 
    10                                 <a href="<?php echo url_for(aUrl::addParams($filtersWithoutDate, array('year' => $calendar['year'], 'month' => date('m', strtotime($calendar['month']))))) ?>"><?php echo $calendar['month'] ?></a> 
     10                                <a href="<?php echo url_for(aUrl::addParams($filtersWithoutDate, array('year' => $calendar['year'], 'month' => date('m', strtotime($calendar['month']))))) ?>"><?php echo a_($calendar['month']) ?></a> 
    1111                                <a href="<?php echo url_for(aUrl::addParams($filtersWithoutDate, array('year' => $calendar['year'], 'month' => ''))) ?>"><?php echo $calendar['year'] ?></a> 
    1212                        </h4> 
    1313                        <?php echo a_button(a_('Next'), url_for(aUrl::addParams($filtersWithoutDate, $calendar['params']['next'])), array('a-arrow-btn', 'icon', 'a-arrow-right', 'next-month', 'alt')) ?> 
    1414                </th> 
    1515        </tr> 
    1616        <tr class="days"> 
    17                 <th class="day sunday">Su</th> 
    18                 <th class="day monday">M</th> 
    19                 <th class="day tuesday">T</th> 
    20                 <th class="day wedsnesday">W</th> 
    21                 <th class="day thursday">Th</th> 
    22                 <th class="day friday">F</th> 
    23                 <th class="day saturday">S</th>                                                                                                                                                                                          
     17<?php if (DATE_CALC_BEGIN_WEEKDAY==0): ?> 
     18                <th class="day sunday"><?php echo a_("Su"); ?></th> 
     19<?php endif; ?> 
     20                <th class="day monday"><?php echo a_("M"); ?></th> 
     21                <th class="day tuesday"><?php echo a_("T"); ?></th> 
     22                <th class="day wedsnesday"><?php echo a_("W"); ?></th> 
     23                <th class="day thursday"><?php echo a_("Th"); ?></th> 
     24                <th class="day friday"><?php echo a_("F"); ?></th> 
     25                <th class="day saturday"><?php echo a_("S"); ?></th>                                                                                                                                                                                             
     26<?php if (DATE_CALC_BEGIN_WEEKDAY!=0): ?> 
     27                <th class="day sunday"><?php echo a_("Su"); ?></th> 
     28<?php endif; ?> 
    2429        </tr>    
    2530        </thead> 
    2631        <tbody> 
     
    4752        <tfoot> 
    4853                <tr> 
    4954                        <td colspan="7"> 
    50                                 <a href="<?php echo url_for($filtersWithoutDate, array('year' => date('Y'), 'month' => date('m'), 'day' => date('d'))) ?>" class="icon a-events day-<?php echo date('d') ?> alt a-calendar-today"><span class="icon"></span>Today</a> 
     55                                <a href="<?php echo url_for($filtersWithoutDate, array('year' => date('Y'), 'month' => date('m'), 'day' => date('d'))) ?>" class="icon a-events day-<?php echo date('d') ?> alt a-calendar-today"><span class="icon"></span><?php a_('Today'); ?></a> 
    5156                        </td> 
    5257                </tr> 
    5358        </tfoot> 
  • aBlog/templates/_sidebar.php

     
    5252    <div class="a-filter-option"> 
    5353         
    5454                        <?php $selected_day = ($dateRange == 'day') ? $selected : array() ?> 
    55                         <?php echo a_button('Day', url_for($url . '?'.http_build_query(($dateRange == 'day') ? $params['nodate'] : $params['day'])), array_merge(array('a-link'),$selected_day)) ?> 
     55                        <?php echo a_button(a_('Day'), url_for($url . '?'.http_build_query(($dateRange == 'day') ? $params['nodate'] : $params['day'])), array_merge(array('a-link'),$selected_day)) ?> 
    5656                </div> 
    5757    <div class="a-filter-option"> 
    5858                        <?php $selected_month = ($dateRange == 'month') ? $selected : array() ?> 
    59                         <?php echo a_button('Month', url_for($url . '?'.http_build_query(($dateRange == 'month') ? $params['nodate'] : $params['month'])), array_merge(array('a-link'),$selected_month)) ?> 
     59                        <?php echo a_button(a_('Month'), url_for($url . '?'.http_build_query(($dateRange == 'month') ? $params['nodate'] : $params['month'])), array_merge(array('a-link'),$selected_month)) ?> 
    6060                </div> 
    6161    <div class="a-filter-option"> 
    6262                        <?php $selected_year = ($dateRange == 'year') ? $selected : array() ?> 
    63                         <?php echo a_button('Year', url_for($url . '?'.http_build_query(($dateRange == 'year') ? $params['nodate'] : $params['year'])), array_merge(array('a-link'),$selected_year)) ?> 
     63                        <?php echo a_button(a_('Year'), url_for($url . '?'.http_build_query(($dateRange == 'year') ? $params['nodate'] : $params['year'])), array_merge(array('a-link'),$selected_year)) ?> 
    6464                </div> 
    6565  </div> 
    6666</div> 
  • aBlog/templates/_twoColumnTemplate_slot.php

     
    1313 
    1414<ul class="a-blog-item-meta"> 
    1515        <li class="date"><?php echo aDate::long($aBlogPost['published_at']) ?></li> 
    16         <li class="author"><?php echo __('Posted By:', array(), 'apostrophe') ?> <?php echo $aBlogPost->getAuthor() ?></li>                      
     16        <li class="author"><?php echo a_('Posted By:') ?> <?php echo $aBlogPost->getAuthor() ?></li>                     
    1717</ul> 
    1818 
    1919<?php if($options['maxImages'] && $aBlogPost->hasMedia()): ?> 
  • aBlog/templates/_meta.php

     
    11<ul class="a-blog-item-meta"> 
    22  <li class="post-date"><?php echo aDate::pretty($a_blog_post['published_at']); ?></li> 
    33  <li class="post-author"> 
    4                         <span class="a-blog-item-meta-label"><?php echo __('Posted By:', array(), 'apostrophe') ?></span> 
     4                        <span class="a-blog-item-meta-label"><?php echo a_('Posted By:') ?></span> 
    55                        <?php echo ($a_blog_post->getAuthor()->getName()) ? $a_blog_post->getAuthor()->getName() : $a_blog_post->getAuthor()  ?> 
    66        </li> 
    77        <?php  if (sfConfig::get('app_aBlog_disqus_enabled')): ?> 
  • aEventSingleSlot/templates/_editView.php

     
    1212<?php echo $form->renderHiddenFields() ?> 
    1313 
    1414<div class="a-form-row search"> 
    15         <?php echo $form['search']->renderLabel(__('Search by Title', array(), 'apostrophe')) ?> 
     15        <?php echo $form['search']->renderLabel(a_('Search by Title')) ?> 
    1616        <div class="a-form-field"> 
    1717                <?php echo $form['search']->render(array('class' => 'a-blogsingle-input', )) ?> 
    1818                <div class="a-form-help"><?php echo $form['search']->renderHelp() ?></div> 
  • aBlogSingleSlot/templates/_editView.php

     
    1212<?php echo $form->renderHiddenFields() ?> 
    1313 
    1414<div class="a-form-row search"> 
    15         <?php echo $form['search']->renderLabel(__('Search by Title', array(), 'apostrophe')) ?> 
     15        <?php echo $form['search']->renderLabel(a_('Search by Title')) ?> 
    1616        <div class="a-form-field"> 
    1717                <?php echo $form['search']->render(array('class' => 'a-blogsingle-input', )) ?> 
    1818                <div class="a-form-help tooltip"><?php echo $form['search']->renderHelp() ?></div> 
  • aEventAdmin/templates/_form.php

     
    4444<div class="event-date section a-form-row"> 
    4545 
    4646        <div class="start_date"> 
    47                 <h4>Start Date</h4> 
     47                <h4><?php echo a_('Start Date'); ?></h4> 
    4848                <div class="a-form-row all_day"> 
    4949                        <div class="a-form-field"> 
    5050                                <?php echo $form['all_day']->render() ?> 
    5151                        </div> 
    52                         <?php echo $form['all_day']->renderLabel() ?> 
     52                        <?php echo $form['all_day']->renderLabel(a_('All Day')) ?> 
    5353                        <?php echo $form['all_day']->renderError() ?> 
    5454                </div>           
    5555                <?php echo $form['start_date']->render() ?> 
     
    6464        </div> 
    6565         
    6666        <div class="end_date"> 
    67                 <h4>End Date</h4> 
     67                <h4><?php echo a_('End Date'); ?></h4> 
    6868                <?php echo $form['end_date']->render() ?> 
    6969                <div class="end_time"> 
    7070        <?php echo $form['end_time'] ?> 
  • aEventAdmin/templates/_tagList.php

     
    55  $tags = isset($tags) ? $sf_data->getRaw('tags') : null; 
    66?> 
    77<div class="a-admin-form-field-tags"> 
    8   <h5>Popular Tags</h5> 
     8  <h5><?php echo a_('Popular Tags'); ?></h5> 
    99 
    1010  <div id="blog-tag-list"> 
    1111    <?php $n=1; foreach ($tags as $tag => $count): ?> 
  • aEventAdmin/templates/editSuccess.php

     
    2626<?php slot('a-page-header') ?> 
    2727<div class="a-ui a-admin-header"> 
    2828        <ul class="a-ui a-controls a-admin-controls"> 
    29                 <li><a href="<?php echo url_for('@a_event_admin'); ?>" class="a-btn big"><?php echo __('View All Events', array(), 'apostrophe') ?></a></li> 
     29                <li><a href="<?php echo url_for('@a_event_admin'); ?>" class="a-btn big"><?php echo a_('View All Events') ?></a></li> 
    3030     <?php include_partial('list_actions', array('helper' => $helper)) ?> 
    3131        </ul> 
    3232  <?php include_partial('aEventAdmin/form_bar') ?>                               
  • aBlogAdmin/templates/_list_bar.php

     
    66?> 
    77<div id="a-admin-bar" <?php if (count($sf_user->getAttribute('aBlogAdmin.filters', null, 'admin_module'))): ?>class="has-filters"<?php endif ?>> 
    88  <?php if (0): ?> 
    9     <h2 class="a-admin-title you-are-here"><?php echo __('Blog Post Admin', array(), 'messages') ?></h2> 
     9    <h2 class="a-admin-title you-are-here"><?php echo a_('Blog Post Admin') ?></h2> 
    1010  <?php endif ?> 
    1111</div> 
    1212 
  • aBlogAdmin/templates/editSuccess.php

     
    2626<?php slot('a-page-header') ?> 
    2727<div class="a-ui a-admin-header"> 
    2828        <ul class="a-ui a-controls a-admin-controls"> 
    29                 <li><a href="<?php echo url_for('@a_blog_admin'); ?>" class="a-btn big"><?php echo __('View All Posts', array(), 'apostrophe') ?></a></li> 
     29                <li><a href="<?php echo url_for('@a_blog_admin'); ?>" class="a-btn big"><?php echo a_('View All Posts') ?></a></li> 
    3030     <?php include_partial('list_actions', array('helper' => $helper)) ?> 
    3131        </ul> 
    3232  <?php include_partial('aBlogAdmin/form_bar') ?>