You need to be logged in to view a user's profile.
  1. fixcompte
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. Saturday, 12 April 2008
Bonjour !

There's a problem with the french translation : the accents are not supported (joomla! french is in UTF-8 but JEvent's french isn't :neutral: )
So I translated the french.php file so that all the special characters (é, è, ê, à and all those incredible things we are using) are now written in HTML (é etc.) I hope it'll help...

But there are words that are not in the /language/french.php file (all the stuffs when clicking on "creating new event";). And I can't change this. But for the rest of it, there's already something better.

-------

La traduction française pose des problèmes de compatibilité avec UTF-8 (or, le reste de joomla! est codé de cette manière). J'ai modifié le fichier "french.php" pour qu'il affiche quand même les accents (plutôt qu'un horrible ? ), mais il reste toute une partie que je n'arrive pas à modifier (une partie de la section création d'événement). Ceci dit, c'est déjà bien meilleur qu'avant...
Installez le fichier .php dans le dossier /components/com_events/language/ (en écrasant l'ancienne version).
Accepted Answer Pending Moderation
0
Votes
Undo
Hi everyone.

i tested your patch and it works fine.

Thank you fixcompte for your work, event if it's not perfect it's enough for the public part , and thank you Geraint for this great extension, very usefull and easy to use.

best regards,
Xavier.

PS: This subject should rather be located in the translation section on this forum, no?
-----------------------------------------------------------------------------------------------
Bonjour à tous,

J'ai essayé ce correctif, et il fonctionne très bien.

Merci à toi fixcompte pour ta contribution, même s'il n'est pas parfait la partie publique de l'extension n'a plus de bugs et c'est le plus important.
Et merci à Geraint pour cette super extension, pratique et facile à utiliser.

Cordialement,
xavier.

PS: Cette discussion devrait être placée dans la section "translation" du forum, non?
  1. more than a month ago
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
A better solution is to fix the PHP code.
In components/com_events/events.class.php, replace :
    function getDateFormat( $year, $month, $day, $type ){

by :
    function getDateFormat( $year, $month, $day, $type ){
return utf8_encode(self::getDateFormatANSI( $year, $month, $day, $type ));
}

function getDateFormatANSI( $year, $month, $day, $type ){


Hope this patch will be included in the next release.

Regards,
Kerfred
--
  1. more than a month ago
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
:D
Great ! Your last modification (php file modification) is working well. Thank you very much.

Nevertheless, I still have the problem with the last event module where I have strange signs in stead of the accent.

Do you have an idea?

Thank you again for your help.

Gwenn
  1. more than a month ago
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Gwenn, you are right.
The file modules/mod_events_latest/mod_events_latest.lib.php needs to be modified too.
From line 643 to 653, replace

												$content .= date($dateFormat, $$match);
} else {
$time_fmt = $all_day_event ? '' : ' @%I:%M%p';
$dateFormat = $this->displayYear ? '%a %b %d, %Y'.$time_fmt : '%a %b %d'.$time_fmt;
$content .= strftime($dateFormat, $$match);
}
} else {
// if a '%' sign detected in date format string, we assume strftime() is to be used,
if(preg_match("/\%/", $dateParm)) $content .= strftime($dateParm, $$match);
// otherwise the date() function is assumed.
else $content .= date($dateParm, $$match);

by

												$content .= utf8_encode(date($dateFormat, $$match));
} else {
$time_fmt = $all_day_event ? '' : ' @%I:%M%p';
$dateFormat = $this->displayYear ? '%a %b %d, %Y'.$time_fmt : '%a %b %d'.$time_fmt;
$content .= utf8_encode(strftime($dateFormat, $$match));
}
} else {
// if a '%' sign detected in date format string, we assume strftime() is to be used,
if(preg_match("/\%/", $dateParm)) $content .= utf8_encode(strftime($dateParm, $$match));
// otherwise the date() function is assumed.
else $content .= utf8_encode(date($dateParm, $$match));


And if you need the french date format in the latest events module, replace eventDate by eventDate(%a %d %B %Y) in the latest events configuration screen in Joomla admin.

Regards,
Kerfred
--
  1. more than a month ago
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
:D Thank you very much for your help Kerfred. I will try it tonight and give you the feed back.
  1. more than a month ago
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
<!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!-- s:oops: --> Great !!!! its works ... Your the master.

Last question (I hope) : I have already change the last events module customscript to
${startDate('%A %d%B %y)} à ${endDate('%A %d%B %y)}<br />${title}

Nevertheless I have the date "lun.août 25@ 8h30 - 10h00" Do you know how to change it in order to get "lun 25 août@20h30 - 22h00"

Thank you again.

Gwenn
  1. more than a month ago
  2. Bugs (Jevents 1.4 for 1.5.x)
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.