Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the file date.theme of the date module, the Start time to end time display of an event is hard coded so it is not translated.
So I get this in my site : 19 Septembre, 2011 - 13:30 to 16:00
the "to" in the above should be tramnslated to the french word "à"
so I can't only display the start time.
code that seems to be the problem :
// Wrap the result with the attributes.
return t('!start-date to !end-date', array(
'!start-date' => '' . $date1 . '',
'!end-date' => '' . $date2 . $timezone. '',
));
Comments
Comment #1
Gib... CreditAttribution: Gib... commentedAnother translation problem. We get stuff like :
"Repeats toutes les semaines" from the calendar/date/views modules. For example :
Repeats toutes les semaines jusqu'au lun Nov 07 2011 .
Lundi, Septembre 19, 2011 - 13:30 to 16:00
Maybe this comes from this line of code :
return t('Repeats !interval !bymonth !byday !count !until !except. !additional', $description);
in date_repeat.module file.
"Repeats" should be translatable.
I think I should have used "translations problems" for these "bugs".
Comment #2
botrisThe translation is already done, should be fine. Please check if you've imported the latest translations.
Comment #3
botrisComment #4
Gib... CreditAttribution: Gib... commentedThanks. I installed the translation interface. Sorry for my mistake
But how do I translate this :
!repeats_every_interval until !until_date
it is translated by :
!repeats_every_interval jusqu'au !until_date
which is displayed as :
Repeats toutes les semaines jusqu'au lun Nov 14 2011 .
Only the word "until" can be translated.
The word "repeats" seems to be part of variable !repeats_every_interval.
??
Comment #5
Gib... CreditAttribution: Gib... commented