Forums / General Questions / Do I need this @ symbol?

Do I need this @ symbol?

Views: 751

Results 1 to 3 of 3
26 Jul 2012, 9:15 PM
#1
creamcrackers avatar

creamcrackers

Zen Follower

Join Date:
May 2009
Posts:
228
Plugin Contributions:
1

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.php/Languages#Creating_a_new_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?

26 Jul 2012, 9:55 PM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,875
Plugin Contributions:
7

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.php?133111-locale-not-available-on-local-server-maybe

(no I don't know about the @ either, mysql variable maybe?)

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...