Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,384
    Plugin Contributions
    94

    Default Re: costumer account reg. email sent in two languages but not the third

    Nandor, I suggest (at a minimum) that you set all the CHARSET values to utf-8 and all the setlocale calls to use a utf8-type format.

  2. #12
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by lat9 View Post
    Nandor, I suggest (at a minimum) that you set all the CHARSET values to utf-8 and all the setlocale calls to use a utf8-type format.
    hello,

    you mean in case all english, german and hungarian? in all six php files?

  3. #13
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by Nandor View Post
    hello,

    you mean in case all english, german and hungarian? in all six php files?


    me again:

    theres this in english php :

    setlocale(LC_TIME, 'en_US.ISO_8859-1'); should it look like this: setlocale(LC_TIME, 'en_UTF-8');

    and so on...?

  4. #14
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,384
    Plugin Contributions
    94

    Default Re: costumer account reg. email sent in two languages but not the third

    Nandor, I've got a website that has both english and spanish. In my english.php file, I have @setlocale(LC_TIME, 'en_US'); and in my spanish.php file I have @setlocale(LC_TIME, 'es_ES');

    This site works with a utf8_general_ci collation in my database and each of my main language files has define('CHARSET', 'utf-8');

    I believe that it's the CHARSET value more than the locale value that's messing you up; make sure that all 6 of your main language files have the utf-8 value. Those are the files in the directories /includes/languages/YOUR_TEMPLATE and /YOUR_ADMIN/includes/languages directories.

  5. #15
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by lat9 View Post
    Nandor, I've got a website that has both english and spanish. In my english.php file, I have @setlocale(LC_TIME, 'en_US'); and in my spanish.php file I have @setlocale(LC_TIME, 'es_ES');

    This site works with a utf8_general_ci collation in my database and each of my main language files has define('CHARSET', 'utf-8');

    I believe that it's the CHARSET value more than the locale value that's messing you up; make sure that all 6 of your main language files have the utf-8 value. Those are the files in the directories /includes/languages/YOUR_TEMPLATE and /YOUR_ADMIN/includes/languages directories.

    I changed all six files and looks like this :

    admin english php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat6.0 I used 'en_US'
    // on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
    // this may not work under win32 environments..
    setlocale(LC_TIME, 'en_US.utf-8');
    define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
    define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }

    // removed for meta tags
    // page title
    //define('TITLE', 'Zen Cart');

    // include template specific meta tags defines
    if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
    $template_dir_select = $template_dir . '/';
    } else {
    $template_dir_select = '';
    }
    require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

    // meta tags
    define('ICON_METATAGS_ON', 'Meta Tags Defined');
    define('ICON_METATAGS_OFF', 'Meta Tags Undefined');
    define('TEXT_LEGEND_META_TAGS', 'Meta Tags Defined:');
    define('TEXT_INFO_META_TAGS_USAGE', '<strong>NOTE:</strong> The Site/Tagline is your defined definition for your site in the meta_tags.php file.');

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');


    admin german php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
    // @setlocale(LC_TIME, 'de_DE.ISO_8859-1'); geändert von MaleBorg
    @setlocale(LC_TIME, 'de_DE.UTF-8', 'de_AT.UTF-8', 'de_CH.UTF-8', 'de_DE.ISO_8859-1','de_DE@euro', 'de_DE', 'de', 'ge', 'deu.deu');
    define('DATE_FORMAT_SHORT', '%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');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false){
    if ($reverse){
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    }else{
    // edit by cyaneo for german Date support - thx to hugo13
    // return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
    }
    }
    }

    // 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="de"');

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    admin hungarian php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat6.0 I used 'en_US'
    // on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
    // this may not work under win32 environments..
    setlocale(LC_TIME, 'hu_HU.utf-8');
    define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
    define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }

    // removed for meta tags
    // page title
    //define('TITLE', 'Zen Cart');

    // include template specific meta tags defines
    if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
    $template_dir_select = $template_dir . '/';
    } else {
    $template_dir_select = '';
    }
    require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');
    //die(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

    // meta tags
    define('ICON_METATAGS_ON', 'Meta Tags Defined');
    define('ICON_METATAGS_OFF', 'Meta Tags Undefined');
    define('TEXT_LEGEND_META_TAGS', 'Meta Tags Defined:');
    define('TEXT_INFO_META_TAGS_USAGE', '<strong>NOTE:</strong> The Site/Tagline is your defined definition for your site in the meta_tags.php file.');

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    includes english php:

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

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }
    }

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

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    includes german php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
    // @setlocale(LC_TIME, 'de_DE.ISO_8859-1'); geändert von MaleBorg
    @setlocale(LC_TIME, 'de_DE.UTF-8', 'de_AT.UTF-8', 'de_CH.UTF-8', 'de_DE.ISO_8859-1','de_DE@euro', 'de_DE', 'de', 'ge', 'deu.deu');
    define('DATE_FORMAT_SHORT', '%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');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false){
    if ($reverse){
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    }else{
    // edit by cyaneo for german Date support - thx to hugo13
    // return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
    }
    }
    }

    // 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="de"');

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    includes hungarian php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
    @setlocale(LC_TIME, 'hu_HU.UTF-8');
    define('DATE_FORMAT_SHORT', '%Y/%m/%d'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%Y %B %d, %A'); // this is used for strftime()
    define('DATE_FORMAT', 'Y/m/d'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 8, 2) . substr($date, 5, 2) . substr($date, 0, 4);
    } else {
    return substr($date, 0, 4) . substr($date, 5, 2) . substr($date, 8, 2);
    }
    }
    }

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

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');



    After this i registered a costumer in hungarian language again, but still no email is sent or comes to my email address. It appears in admin though.

    thanks in advance

    Nandor

  6. #16
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by Nandor View Post
    I changed all six files and looks like this :

    admin english php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat6.0 I used 'en_US'
    // on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
    // this may not work under win32 environments..
    setlocale(LC_TIME, 'en_US.utf-8');
    define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
    define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }

    // removed for meta tags
    // page title
    //define('TITLE', 'Zen Cart');

    // include template specific meta tags defines
    if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
    $template_dir_select = $template_dir . '/';
    } else {
    $template_dir_select = '';
    }
    require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

    // meta tags
    define('ICON_METATAGS_ON', 'Meta Tags Defined');
    define('ICON_METATAGS_OFF', 'Meta Tags Undefined');
    define('TEXT_LEGEND_META_TAGS', 'Meta Tags Defined:');
    define('TEXT_INFO_META_TAGS_USAGE', '<strong>NOTE:</strong> The Site/Tagline is your defined definition for your site in the meta_tags.php file.');

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');


    admin german php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
    // @setlocale(LC_TIME, 'de_DE.ISO_8859-1'); geändert von MaleBorg
    @setlocale(LC_TIME, 'de_DE.UTF-8', 'de_AT.UTF-8', 'de_CH.UTF-8', 'de_DE.ISO_8859-1','de_DE@euro', 'de_DE', 'de', 'ge', 'deu.deu');
    define('DATE_FORMAT_SHORT', '%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');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false){
    if ($reverse){
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    }else{
    // edit by cyaneo for german Date support - thx to hugo13
    // return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
    }
    }
    }

    // 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="de"');

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    admin hungarian php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat6.0 I used 'en_US'
    // on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
    // this may not work under win32 environments..
    setlocale(LC_TIME, 'hu_HU.utf-8');
    define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
    define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
    define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }

    // removed for meta tags
    // page title
    //define('TITLE', 'Zen Cart');

    // include template specific meta tags defines
    if (file_exists(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir . '/meta_tags.php')) {
    $template_dir_select = $template_dir . '/';
    } else {
    $template_dir_select = '';
    }
    require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');
    //die(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');

    // meta tags
    define('ICON_METATAGS_ON', 'Meta Tags Defined');
    define('ICON_METATAGS_OFF', 'Meta Tags Undefined');
    define('TEXT_LEGEND_META_TAGS', 'Meta Tags Defined:');
    define('TEXT_INFO_META_TAGS_USAGE', '<strong>NOTE:</strong> The Site/Tagline is your defined definition for your site in the meta_tags.php file.');

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    includes english php:

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

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    }
    }
    }

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

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    includes german php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
    // @setlocale(LC_TIME, 'de_DE.ISO_8859-1'); geändert von MaleBorg
    @setlocale(LC_TIME, 'de_DE.UTF-8', 'de_AT.UTF-8', 'de_CH.UTF-8', 'de_DE.ISO_8859-1','de_DE@euro', 'de_DE', 'de', 'ge', 'deu.deu');
    define('DATE_FORMAT_SHORT', '%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');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false){
    if ($reverse){
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
    }else{
    // edit by cyaneo for german Date support - thx to hugo13
    // return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
    return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
    }
    }
    }

    // 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="de"');

    // charset for web pages and emails
    define('CHARSET', 'utf-8');

    includes hungarian php:

    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
    @setlocale(LC_TIME, 'hu_HU.UTF-8');
    define('DATE_FORMAT_SHORT', '%Y/%m/%d'); // this is used for strftime()
    define('DATE_FORMAT_LONG', '%Y %B %d, %A'); // this is used for strftime()
    define('DATE_FORMAT', 'Y/m/d'); // this is used for date()
    define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

    ////
    // Return date in raw format
    // $date should be in format mm/dd/yyyy
    // raw date is in format YYYYMMDD, or DDMMYYYY
    if (!function_exists('zen_date_raw')) {
    function zen_date_raw($date, $reverse = false) {
    if ($reverse) {
    return substr($date, 8, 2) . substr($date, 5, 2) . substr($date, 0, 4);
    } else {
    return substr($date, 0, 4) . substr($date, 5, 2) . substr($date, 8, 2);
    }
    }
    }

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

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

    // charset for web pages and emails
    define('CHARSET', 'utf-8');



    After this i registered a costumer in hungarian language again, but still no email is sent or comes to my email address. It appears in admin though.

    thanks in advance

    Nandor

    I checked in the meantime : i can send email in hungarian to hungarian email address from admin with "send emil" and also can send newsletter in hungarian. Only the automatic regisration welcome email doesnt go ut.

    thanks in advance

    Nandor

  7. #17
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,384
    Plugin Contributions
    94

    Default Re: costumer account reg. email sent in two languages but not the third

    Ok, you're making progress! Now that you've got your store configuration set up properly to use UTF-8, make sure that all your hungarian language files (the hungarian.php files and the files in the /includes/languages/hungarian directories -- both store-side and admin -- have been saved using the encoding style "UTF-8 without BOM".

    I use the (free) NotePad++ editor and at the top there's a control called "Encoding" where you can see/change the encoding style for the language to that encoding style. It's a pain in the , but for my english and spanish files I went through each file, one-by-one, opened each with NotePad++, changed the encoding and saved the file. After I did that, all my encoding issues disappeared.

    One other thing you might look at is whether you have any debug log files present in your store's /cache folder. Sometimes, if there are untranslatable characters in a language file there are PHP errors generated.

    When you make the customer registration in Hungarian and no email is sent, does the customer show as being registered in your store when you look in your admin?

  8. #18
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by lat9 View Post
    Ok, you're making progress! Now that you've got your store configuration set up properly to use UTF-8, make sure that all your hungarian language files (the hungarian.php files and the files in the /includes/languages/hungarian directories -- both store-side and admin -- have been saved using the encoding style "UTF-8 without BOM".

    I use the (free) NotePad++ editor and at the top there's a control called "Encoding" where you can see/change the encoding style for the language to that encoding style. It's a pain in the , but for my english and spanish files I went through each file, one-by-one, opened each with NotePad++, changed the encoding and saved the file. After I did that, all my encoding issues disappeared.

    One other thing you might look at is whether you have any debug log files present in your store's /cache folder. Sometimes, if there are untranslatable characters in a language file there are PHP errors generated.

    When you make the customer registration in Hungarian and no email is sent, does the customer show as being registered in your store when you look in your admin?

    I see the new costumers registered in admin.

    I downloaded the Notepad++. But how to use it? Open the files one by one-ok. Encoding is Encode in UTF-8 without BOM-ok.
    But what after that? I see the files like in php editor. Should i just open it and save it again and it will be encoded because encoding is in utf-8 wihout bom?
    Or should i do something else too?
    Sorry but i have never met this programme and encoding.

    Thanks

    Nandor

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,384
    Plugin Contributions
    94

    Default Re: costumer account reg. email sent in two languages but not the third

    Do you have any debug .log files in your /cache directory?

  10. #20
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: costumer account reg. email sent in two languages but not the third

    Quote Originally Posted by lat9 View Post
    Do you have any debug .log files in your /cache directory?
    these are some, but i think none is about the email problem, unless i am mistaken. In most (maybe all) this is in the first line : PHP Warning: include_once(includes/languages/deutsch.php)


    [06-Mar-2013 14:21:52] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [06-Mar-2013 14:21:52] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652



    [06-Mar-2013 14:21:53] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [06-Mar-2013 14:21:53] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652


    [08-Mar-2013 04:58:59] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/classes/object_info.php on line 29
    [08-Mar-2013 04:58:59] PHP Warning: Variable passed to each() is not an array or object in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/classes/object_info.php on line 30


    [10-Feb-2013 09:48:15] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [10-Feb-2013 09:48:15] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652

    [19-Feb-2013 11:19:54] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [19-Feb-2013 11:19:54] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652


    [19-Feb-2013 11:19:56] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [19-Feb-2013 11:19:56] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652

    [19-Feb-2013 11:19:59] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [19-Feb-2013 11:19:59] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652

    [19-Feb-2013 11:20:21] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [19-Feb-2013 11:20:21] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652

    [02-Nov-2012 05:52:58] PHP Warning: require_once(includes/languages/german/header.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652
    [02-Nov-2012 05:52:58] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/german/header.php' (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/admin/includes/languages/german.php on line 652

    [08-Sep-2012 05:34:28] PHP Warning: include_once(includes/languages/deutsch.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /data/www/htdocs/users/szeghalmys/szeghalmys/includes/init_includes/init_templates.php on line 72
    [08-Sep-2012 05:34:28] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/deutsch.php' for inclusion (include_path='.:/usr/share/php') in /data/www/htdocs/users/szeghalmys/szeghalmys/includes/init_includes/init_templates.php on line 72

    but there are many, should i look for something specific?

    thanks

    Nandor

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Copy of Create Account Email not being sent after switching to Paypal Express
    By Dreamer40 in forum PayPal Express Checkout support
    Replies: 7
    Last Post: 11 Mar 2015, 01:01 AM
  2. v151 Order confirmation email not sent to customers but I get a copy
    By Olet in forum General Questions
    Replies: 1
    Last Post: 13 May 2014, 08:02 PM
  3. v139e Orders not shown in admin, and no email sent to costumer and to admin email
    By Nandor in forum Managing Customers and Orders
    Replies: 26
    Last Post: 5 Mar 2013, 02:48 PM
  4. Wellcome Email, on two languages ?
    By sicness in forum General Questions
    Replies: 1
    Last Post: 18 Jul 2006, 07:58 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR