Event module 1.24 translation problem

univie - July 1, 2003 - 21:35
Project:Event
Component:modules
Category:bug report
Priority:normal
Assigned:killes@www.drop.org
Status:closed
Description

event,module 1.22
does not translate days of the week and monthnames in the date-location-line

#1

killes@www.drop.org - July 3, 2003 - 01:28

What exactly is the "date-location-line" ?

#2

killes@www.drop.org - July 3, 2003 - 01:37

Think I found it. Please test and close.

#3

univie - July 3, 2003 - 02:22

Sorry something is wrong with the "fixed" event.module.

#1 get error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/home/vrp/html/modules/event.module on line 177

Parse error: parse error, unexpected '\"' in /usr/home/vrp/html/modules/event.module on line 177

I erased the "\" in line 177 [\"large\"]
$output .= "<br /> ". strtr(t("%date at %location."), array("%date" => format_date($node->start, \"large\"), "%location" => $node->location))  ."<br />";

#2 But the date (day of week and name of month) remains still untranslated

#4

univie - July 3, 2003 - 02:28

Additional bug in event.module?

in the detail-textarea it is not possible to make lines by using just returns

text
text
text

is shown as
text text text

only html-formatting is possible.

#5

killes@www.drop.org - July 3, 2003 - 13:32

It is fixed now. Hopefully.

#6

univie - July 3, 2003 - 16:51
Title:Event module 1,22 translation problem» Event module 1.24 translation problem

Thank You for Your efforts.

The module works without error.

But no translation of day and months name. More details:




#1 The tranlsation works on the calendar block in the sidebar


#2The tranlsation works in the form
this is code line 268
form .= form_select("", "year", ($year ? $year : date("Y")), $years). form_select("", "month", ($month ? $month : date("m")), $months) . form_select("", "day", ($day ? $day : date("d")), $days) . form_submit(t("Show"));

#3 But it does not work in the line where event date and location are presented

I think this is code line 177
$output .= "<br /> ". strtr(t("%date at %location."), array("%date" => format_date($node->start, "large"), "%location" => $node->location))  ."<br />";

Sure I can help myself to change the date format from "large" to "small". then there are no names of day or months. But this is not the elegant way.




#4 The problem with the line feeds still exists (But maybe I am wrong and html-formatting is standard input. But other modules don't need html for delivering content which make the usability for people with no html-knowledg better.

#7

univie - July 4, 2003 - 15:54

(see # 4 above message)
the line break and formatting works now as it should. Great. Thank You.

#8

Anonymous - September 28, 2003 - 20:12
 
 

Drupal is a registered trademark of Dries Buytaert.