News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

credit_cards language

Started by frenchinalps, March 19, 2014, 07:52:08 PM

Previous topic - Next topic

frenchinalps

Hi

I don't find how change months languages in credit_cards Paypal pro
example: March --> Mars,   etc...

Thanks a lot !

abolabo

i took a look into file public_html/extensions/default_pp_pro/storefront/controller/responses/extension/default_pp_pro.php

well.. if your server supports french locale you can add
setlocale(LC_TIME, 'fr_FR.UTF8');  // note the charset info !
before
$months = array();

otherwise you can remove
for ($i = 1; $i <= 12; $i++) {
    $months[ sprintf('%02d', $i) ] = strftime('%B', mktime(0, 0, 0, $i, 1, 2000));
}


and add manual array for ex.
$month = array('01' => 'ciчень', '02' => 'лютий'......etc);

Note: it's a solution only for single-lingual store.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -