Forums / Templates, Stylesheets, Page Layout / new products month language and other

new products month language and other

Locked

Views: 1,821

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
10 Jan 2010, 6:28 PM
#1
isiarj20 avatar

isiarj20

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

new products month language and other

Hi, i have zencart 1.3.8 with the classic theme, i have my site in 3 languages, english, spanish and catalan, my problem is with the language of the month that i see in the first page on "new products for:" in spanish i see "nuevos productos para january", you can see that the month on the spanish phrase is in english!, and if i try to see my site in catalan i see "nous productes per a enero" the phrase in catalan and the month in spanish!!! can any one help me to fix this? thanks.

11 Jan 2010, 9:09 PM
#2
isiarj20 avatar

isiarj20

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

Re: new products month language and other

Hi, i have zencart 1.3.8 with the classic theme, i have my site in 3 languages, english, spanish and catalan, my problem is with the language of the month that i see in the first page on "new products for:" in spanish i see "nuevos productos para january", you can see that the month on the spanish phrase is in english!, and if i try to see my site in catalan i see "nous productes per a enero" the phrase in catalan and the month in spanish!!! can any one help me to fix this? thanks.

12 Jan 2010, 8:04 PM
#3
moomo avatar

moomo

New Zenner

Join Date:
Dec 2009
Posts:
27
Plugin Contributions:
0

Re: new products month language and other

I would just remove the reference to the month altogether if you don't mind and just show "Nuevos productos del mes" or just "Nuevos productos".

I'm new to Zen Cart so I would wait for confirmation from a more experienced user before making any change, but you can set this text in the language files.

For example in the spanish.php file look for TABLE_HEADING_NEW_PRODUCTS and change that line to:

define('TABLE_HEADING_NEW_PRODUCTS', 'Nuevos productos');

And then, in new_products.php change this:

      $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
      $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';
    }

to this:

$title = '<h2 class="centerBoxHeading">' . TABLE_HEADING_NEW_PRODUCTS. ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
      $title = '<h2 class="centerBoxHeading">'.TABLE_HEADING_NEW_PRODUCTS. '</h2>';
    }
14 Jan 2010, 12:43 PM
#4
isiarj20 avatar

isiarj20

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

Re: new products month language and other

This is the easy solution but i'm seeking for the correct solution, to put the month on the correct language. Thanks

14 Jan 2010, 1:41 PM
#5
moomo avatar

moomo

New Zenner

Join Date:
Dec 2009
Posts:
27
Plugin Contributions:
0

Re: new products month language and other

Then, in your spanish.php language file look for the setlocale line and change it to:

@setlocale(LC_TIME, 'es_ES.ISO_8859-1');

And, in your Catalan language file change your setlocale to

@setlocale(LC_TIME, 'ca_ES.ISO_8859-1'); 
14 Jan 2010, 5:29 PM
#6
isiarj20 avatar

isiarj20

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

Re: new products month language and other

moomo:

Then, in your spanish.php language file look for the setlocale line and change it to:

@setlocale(LC_TIME, 'es_ES.ISO_8859-1');

> 
> And, in your Catalan language file change your setlocale to 
> ```
@setlocale(LC_TIME, 'ca_ES.ISO_8859-1'); 

Thank you! after 4 hours seeking, i founded and fixed, and now i'm going to post and i see your answer....:cry:

14 Jan 2010, 5:43 PM
#7
isiarj20 avatar

isiarj20

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

Re: new products month language and other

Now i'm seeking for put the first letter of the month in capital letters, in english i see January but in spanish i see enero not Enero......

15 Jan 2010, 4:10 PM
#8
moomo avatar

moomo

New Zenner

Join Date:
Dec 2009
Posts:
27
Plugin Contributions:
0

Re: new products month language and other

I believe this is due to the fact that months in Spanish are undercaps unless they are the first word of the sentence.

16 Jan 2010, 11:06 AM
#9
isiarj20 avatar

isiarj20

New Zenner

Join Date:
Jan 2010
Posts:
14
Plugin Contributions:
0

Re: new products month language and other

Thank you for all

16 Jan 2010, 11:50 PM
#10
ishtar avatar

ishtar

New Zenner

Join Date:
Jan 2010
Posts:
80
Plugin Contributions:
0

Re: new products month language and other

Thanks for this topic.

D you know where the months are located?

18 Jan 2010, 3:27 PM
#11
moomo avatar

moomo

New Zenner

Join Date:
Dec 2009
Posts:
27
Plugin Contributions:
0

Re: new products month language and other

The months are not within Zen Cart as far as I know, they are generated dynamically by the server.