I had several issues generating the POT file

In file event.module(patch attached)

Line 316: $headertitle = t('%weekday %month %day, %year', array('%weekday' => t(gmdate('l', $stamp)), '%month' => t(gmdate('F', $stamp)), '%day' => $day, '%year' => $year));
Should be: $headertitle = t('%weekday %month %day, %year', array('%weekday' => gmdate('l', $stamp), '%month' => gmdate('F', $stamp), '%day' => $day, '%year' => $year));

Line 323: $headertitle = t('Week of %month %day, %year', array('%month' => t(gmdate('F', $temp)), '%day' => gmdate('d', $temp), '%year' => $year));
Should be: $headertitle = t('Week of %month %day, %year', array('%month' => gmdate('F', $temp), '%day' => gmdate('d', $temp), '%year' => $year));

Line 329: $headertitle = t('%month %year', array('%month' => t(gmdate('F', $stamp)), '%year' => $year));
Should be: $headertitle = t('%month %year', array('%month' => gmdate('F', $stamp), '%year' => $year));

Line 339: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => t(gmdate('F', $stamp)), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => t(gmdate('F', $endstamp)), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));
Should be: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => gmdate('F', $stamp), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => gmdate('F', $endstamp), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));

Line 348: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => t(gmdate('F', $stamp)), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => t(gmdate('F', $endstamp)), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));
Should be: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => gmdate('F', $stamp), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => gmdate('F', $endstamp), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));

Line 472: $headertitle = l(t(gmdate('F', $stamp)) .' '. $year, 'event/'. $year .'/'. $month .'/'. $day .'/month');
Should be: $headertitle = l(gmdate('F', $stamp) .' '. $year, 'event/'. $year .'/'. $month .'/'. $day .'/month');

Line 670: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => t(gmdate('F', $stamp)), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => t(gmdate('F', $endstamp)), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));
Should be: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => gmdate('F', $stamp), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => gmdate('F', $endstamp), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));

Line 718: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => t(gmdate('F', $stamp)), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => t(gmdate('F', $endstamp)), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));
Should be: $headertitle = t('%startmonth %startdate, %startyear - %endmonth %enddate, %endyear', array('%startmonth' => gmdate('F', $stamp), '%startdate' => gmdate('d', $stamp), '%startyear' => gmdate('Y', $stamp), '%endmonth' => gmdate('F', $endstamp), '%enddate' => gmdate('d', $endstamp), '%endyear' => gmdate('Y', $endstamp)));

CommentFileSizeAuthor
#3 log.txt1.71 KBJérôme
#2 fr_48.po72.94 KBJérôme
event.module.patch_0.txt6.24 KBJérôme

Comments

killes@www.drop.org’s picture

Did you generate a new pot file from the sources or what did you do?

Jérôme’s picture

StatusFileSize
new72.94 KB

No patches here it's only one line.

In file event.theme

Line 454: $output .= '<span class="event-nodetype">'. t("($node->typename)") .'</span>';
Should be: $output .= '<span class="event-nodetype">'. "($node->typename)" .'</span>';

In file contrib/event_views/event_views.module(strange but code change fixed the extractor error)

Line 21 & 22:

      $output .= t('<p>There is also an option to display other date fields in a calendar. Select the Calendar:Start Time and Calendar:End Time fields and select the date field to use. '.
        'The same options are available on filters and arguments, where you can select any date field as the field you want to filter on.</p>');

Should be:

      $output .= t('<p>There is also an option to display other date fields in a calendar. Select the Calendar:Start Time and Calendar:End Time fields and select the date field to use. ');
      $output .= t('The same options are available on filters and arguments, where you can select any date field as the field you want to filter on.</p>');

Finaly attached is an updated the fr.po, including the abovementioned fixes

Jérôme’s picture

StatusFileSize
new1.71 KB

@killes :

I used the extractor.php script on event-4.7.0 dated 06-08-24 and it generated the attached log.

I made the above mentionned corrections (and also converted event.module to UNIX to correct the \r\n)

Re-used the extractor.php, merged the POTs, updated the existing fr.po (38 new, 1 removed) to finaly translated what was missing.

Jérôme’s picture

Status: Active » Closed (won't fix)

I guess this issue status can be set to : closed (won't fix)

Just got this reminder :

[ Event / User interface ]==============================================
Multilingual fixes
state: active
age: 4 years 35 weeks
url: http://drupal.org/node/81546