If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / How to edit New products for month for Romanian?

How to edit New products for month for Romanian?

Started by staycu on 17 Jun 2011, 8:47 AM · Views: 1,013

Results 1 to 7 of 7
17 Jun 2011, 8:47 AM
#1
staycu avatar

staycu

New Zenner

Join Date:
Jun 2011
Posts:
31
Plugin Contributions:
0

How to edit New products for month for Romanian?

Hello all,
I currently translate the Zen Cart to Romanian language.
Now I made the centerbox "New products for June" to show me "Produse noi pentru iunie"

I have a question :
- How can I edit the month to appears with capslock?
I want to appear "Produse noi pentru Iunie" ...

here is the code where I've put Romanian language for month in centerbox ... without this, it show's me in english language - June.

@setlocale(LC_ALL, 'ro_RO.ISO_8859-2');
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', 'L/Z/A'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

17 Jun 2011, 10:38 AM
#2
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to edit New products for month for Romanian?

staycu:

Hello all,
I currently translate the Zen Cart to Romanian language.
Now I made the centerbox "New products for June" to show me "Produse noi pentru iunie"

I have a question :
- How can I edit the month to appears with capslock?
I want to appear "Produse noi pentru Iunie" ...

here is the code where I've put Romanian language for month in centerbox ... without this, it show's me in english language - June.

@setlocale(LC_ALL, 'ro_RO.ISO_8859-2');
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', 'L/Z/A'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

Edit your romanian language file. I'm assuming that the name of the file is romanian.php:
includes/languages/romanian.php
Example:
Line #417 : define('_JANUARY', 'January')
Write your text instead of the text in red.

17 Jun 2011, 10:46 AM
#3
staycu avatar

staycu

New Zenner

Join Date:
Jun 2011
Posts:
31
Plugin Contributions:
0

Re: How to edit New products for month for Romanian?

Thanks for reply, but I don't have nothing in my includes/languages/romana.php with January or another month ...

17 Jun 2011, 11:41 AM
#4
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to edit New products for month for Romanian?

Try to add these lines into your roman.php files. Be aware to use the overriding so your origin romana.php won't be changed.

define('_JANUARY', 'January');
define('_FEBRUARY', 'February');
define('_MARCH', 'March');
define('_APRIL', 'April');
define('_MAY', 'May');
define('_JUNE', 'June');
define('_JULY', 'July');
define('_AUGUST', 'August');
define('_SEPTEMBER', 'September');
define('_OCTOBER', 'October');
define('_NOVEMBER', 'November');
define('_DECEMBER', 'December');

Change the text in red.

18 Jun 2011, 12:39 PM
#5
staycu avatar

staycu

New Zenner

Join Date:
Jun 2011
Posts:
31
Plugin Contributions:
0

Re: How to edit New products for month for Romanian?

thanks, solved!

11 Oct 2011, 9:45 PM
#6
bladecris avatar

bladecris

New Zenner

Join Date:
Sep 2011
Posts:
40
Plugin Contributions:
0

Re: How to edit New products for month for Romanian?

Where exactly to put these lines cause @ line #417 i have the empty space between banner box 2 and banner box all

 // banner box 2
        define('BOX_HEADING_BANNER_BOX2','You can see ...');
        define('TEXT_BANNER_BOX2','Don't miss!');
#417
        // banner_box - all
       define('BOX_HEADING_BANNER_BOX_ALL','Partners');
       define('TEXT_BANNER_BOX_ALL','Vizit our partners ...');

Or i can just use it @ start after

@setlocale(LC_TIME, 'romanian'); 
  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');

(I tried and it doesn't work)
PS My english.php @ line 417 has ```php
// boxes defines
define('PULL_DOWN_ALL','Please Select');

My first #417 line is from romanian.php
17 Oct 2011, 5:42 AM
#7
bladecris avatar

bladecris

New Zenner

Join Date:
Sep 2011
Posts:
40
Plugin Contributions:
0

Re: How to edit New products for month for Romanian?

Never mind, talked to my host and they provided me the code for romanian locale.