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

Gib...’s picture

Another 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".

botris’s picture

The translation is already done, should be fine. Please check if you've imported the latest translations.

botris’s picture

Category: bug » support
Status: Active » Fixed
Gib...’s picture

Title: !repeats_every_interval it is not translatable » Start time to end time hard coded so it is not translated

Thanks. 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.

??

Gib...’s picture

Title: Start time to end time hard coded so it is not translated » !repeats_every_interval it is not translatable

Title: Start time to end time hard coded so it is not translated » !repeats_every_interval it is not translatable
Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.