Results 1 to 3 of 3
  1. #1
    Join Date
    May 2009
    Posts
    222
    Plugin Contributions
    1

    Default Do I need this @ symbol?

    Hi Everyone

    In includes/languages/mylanguage/mylanguage.php

    // look in your $PATH_LOCALE/locale directory for available locales..
    @setlocale(LC_TIME,

    or should it be

    // look in your $PATH_LOCALE/locale directory for available locales..
    setlocale(LC_TIME,

    (without the @)

    I ran accross this post

    http://www.zen-cart.com/wiki/index.p...ew_translation

    and it said to change it to

    setlocale(LC_TIME,
    'english',
    'en_US',
    'en_US.iso_8859-1',
    'en_US.ISO_8859-1',
    'en_US.utf-8',
    'en_US.UTF-8'
    );

    But there is no @ symbol in there. Just wondering if its a mistake? The admin one doesnt have it

    The above seems to be good for all languages and character sets? Im just wondering why this extra isnt included in the zen cart distribution and is told to add it here

    The language i am adding is THAI. Is it ok to leave the above as 'english',
    'en_US',???

    I will share this Thai contribution onces its finished it will probably take a couple of weeks to do it all. Im hoping the next ZC upgrade doesnt mean i have to do all this again?

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,604
    Plugin Contributions
    30

    Default Re: Do I need this @ symbol?

    you may find this thread of use in your understanding of this issue

    http://www.zen-cart.com/showthread.p...l-server-maybe

    (no I don't know about the @ either, mysql variable maybe?)
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Do I need this @ symbol?

    The @ symbol prefix in front of a function suppresses errors from being seen or logged

 

 

Similar Threads

  1. I need this template
    By boosters in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 May 2009, 07:48 PM
  2. strange symbol
    By bettsaj in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2009, 12:27 PM
  3. How do i Fix this '(' symbol with php?
    By NRG in forum General Questions
    Replies: 0
    Last Post: 8 Jun 2008, 11:35 PM
  4. What is this symbol help....
    By dandownunder in forum General Questions
    Replies: 4
    Last Post: 8 Jun 2006, 08:00 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