Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2011
    Posts
    31
    Plugin Contributions
    0

    Default 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');

  2. #2
    Join Date
    Feb 2011
    Location
    Between London and Cetinje
    Posts
    107
    Plugin Contributions
    0

    Default Re: How to edit New products for month

    Quote Originally Posted by staycu View Post
    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.

  3. #3
    Join Date
    Jun 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: How to edit New products for month

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

  4. #4
    Join Date
    Feb 2011
    Location
    Between London and Cetinje
    Posts
    107
    Plugin Contributions
    0

    Default Re: How to edit New products for month

    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.

  5. #5
    Join Date
    Jun 2011
    Posts
    31
    Plugin Contributions
    0

    Default Re: How to edit New products for month

    thanks, solved!

  6. #6
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: How to edit New products for month?

    Where exactly to put these lines cause @ line #417 i have the empty space between banner box 2 and banner box all
    PHP Code:
     // 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
    PHP Code:
    @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 Code:
    // boxes defines
      
    define('PULL_DOWN_ALL','Please Select'); 
    My first #417 line is from romanian.php

  7. #7
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. How to edit New Products for the month
    By okonjiaustin in forum Customization from the Admin
    Replies: 0
    Last Post: 2 Oct 2008, 06:56 AM
  2. how do I change "New Products for 'month' and 'monthly specials for 'month'
    By Fatum in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Mar 2008, 07:08 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