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)));
Comments
Comment #1
killes@www.drop.org commentedDid you generate a new pot file from the sources or what did you do?
Comment #2
Jérôme commentedNo 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:
Should be:
Finaly attached is an updated the fr.po, including the abovementioned fixes
Comment #3
Jérôme commented@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.
Comment #4
Jérôme commentedI 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