Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2007
    Posts
    46
    Plugin Contributions
    0

    Default Problems with French language and order confirmation email

    Hello,

    2 bugs or issues?

    1. Using french language, long date in the email is displayed in english :

    Merci pour la commande que vous venez de passer sur retrodeco.fr
    Cet email tient lieu de bon de commande que vous pouvez imprimer.

    Vous trouverez ici le récapitulatif de cette commande et les détails concernant votre paiement :

    Numéro de commande : 15
    Date de commande : Friday 17 August, 2007


    In my french.php, paramateres are set to :
    @setlocale(LC_TIME, 'fr_FR.ISO_8859-1');
    define('DATE_FORMAT_LONG', '%A %d %B, %Y');

    2. When I read the email in a webmail (voila.fr), the mail footer is broken by the message (ie, an image is no more displayed).
    I think it is due to the
    <base href="http://www.myzencartsite.com" /> code which is placed in the mail html code.

    Thank you in advance for your advices and for correcting these bugs if any.

    Christophe

  2. #2
    Join Date
    Aug 2007
    Location
    South of France
    Posts
    46
    Plugin Contributions
    0

    Default Re: (V1.3.7) 2 bugs in order confirmation email

    Hello Christophe,

    I have the same problem and I think I have found a web site in French which will help us set the locale as follows:


    setlocale(LC_TIME,"fr");
    for($i=1;$i<=12;$i++)
    {
    $mois[$i]=strftime("%B", mktime(0, 0, 0, $i, 1, 2005));
    }

    http://wildmary.net-sauvage.com/webl...es-mois-en-php

    I have not tested this yet but will let you know once I have ...
    and will post an English translation...

    Maybe you can try too ?

    A+mec....

    My site is also in italian so I will no doubt find some more little bugs that have not been picked up in english versions?

    Keep in touch and post me your web site when u can and we can exchange our findings...

  3. #3
    Join Date
    Aug 2007
    Location
    South of France
    Posts
    46
    Plugin Contributions
    0

    Default Re: (V1.3.7) 2 bugs in order confirmation email

    Link to french PHP help :

    http://fr3.php.net/manual/fr/function.strftime.php

    I have not figured out what to change yet but I'll bet we need to change the
    %d to %j etc...

  4. #4
    Join Date
    Aug 2007
    Location
    South of France
    Posts
    46
    Plugin Contributions
    0

    Default Re: (V1.3.7) 2 bugs in order confirmation email

    I recalled that I had this problem but must have loaded a new
    version wich actually produced the following output:

    Date de commande : vendredi 07 septembre, 2007

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: french.php 2007-01-09 megaman $
    */

    // FOLLOWING WERE moved to meta_tags.php
    //define('TITLE', 'fweb!');
    //define('SITE_TAGLINE', 'better web by design !');
    //define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');
    // END: moved to meta_tags.php

    define('FOOTER_TEXT_BODY', 'Copyright &copy; ' . date('Y') . ' <a href="http://www.zencart.com" target="_blank">zencart.com</a>.');

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'fr_FR'
    // on FreeBSD try 'fr_FR.ISO_8859-1'
    // on Windows try 'fr', or 'French'
    @setlocale(LC_TIME, 'fr_FR@euro');
    define('DATE_FORMAT_SHORT', '&#37;d.%m.%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');


    .
    .
    .
    .
    .
    // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
    define('LANGUAGE_CURRENCY', 'EUR');

    // Global entries for the <html> tag
    define('HTML_PARAMS','dir="ltr" lang="fr"');

    // charset for web pages and emails
    define('CHARSET', 'iso-8859-1');


    .
    .
    .
    .
    .

    // text for date of birth example
    define('DOB_FORMAT_STRING', 'dd/mm/aaaa');


    Can't post or attach the whole file its too big.
    Last edited by FromTheRiviera; 7 Sep 2007 at 09:31 PM.

  5. #5
    Join Date
    Aug 2007
    Location
    South of France
    Posts
    46
    Plugin Contributions
    0

    Default Re: (V1.3.7) 2 bugs in order confirmation email

    If this works for you then looks like the latest french language pack 1.0 will need correcting as is starts like yours ??

    http://www.zen-cart.com/index.php?ma...roducts_id=153

  6. #6
    Join Date
    Aug 2007
    Posts
    46
    Plugin Contributions
    0

    Default Re: Problems with French language and order confirmation email

    After 1 billion hours of work I found the solution

    In french.php modify the line below :

    @setlocale(LC_TIME, 'fr', 'french', 'fra', 'fr_FR', 'fr_FR@euro');

    The issue is that each server reacts in a different manner. From PHP 4.3 you can pass more than one value for LC_TIME.

  7. #7
    Join Date
    Jun 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Problems with French language and order confirmation email

    thanks cdelab for posting this solution, I've been racking my brain over this one for days now!

    :)

  8. #8
    Join Date
    Jan 2007
    Posts
    27
    Plugin Contributions
    1

    Default Re: Problems with French language and order confirmation email

    nice trick

    Added for the next pack of the french translation :)

  9. #9
    Join Date
    Mar 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: Problems with French language and order confirmation email

    Thanks cdlab, had the same issue in Spanish (Southamerica).
    Here is the setlocale which worked for me: @setlocale(LC_TIME, 'es', 'spanish', 'esp', 'es_ES');

 

 

Similar Threads

  1. No order confirmation email when the buyer using non-English language and PayPal IPN
    By mleeks in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 8 Dec 2010, 11:55 AM
  2. Replies: 0
    Last Post: 21 Sep 2010, 05:50 AM
  3. welcome email problem and order confirmation email problems
    By oneelios in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2010, 11:18 AM
  4. Probelm with Orders and order Confirmation Email using globill module
    By bobmatt4u in forum Addon Payment Modules
    Replies: 7
    Last Post: 19 Nov 2009, 04:19 AM
  5. New Order Confirmation Emails [Spanish and French]
    By 454casull in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Sep 2008, 04:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg