Author Topic: credit_cards language  (Read 3903 times)

Offline frenchinalps

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
    • La Folie du Goût
credit_cards language
« on: March 19, 2014, 07:52:08 PM »
Hi

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

Thanks a lot !

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: credit_cards language
« Reply #1 on: June 19, 2014, 08:06:25 AM »
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
Code: [Select]
setlocale(LC_TIME, 'fr_FR.UTF8');  // note the charset info !before
Code: [Select]
$months = array();
otherwise you can remove
Code: [Select]
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.
Code: [Select]
$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

 

Powered by SMFPacks Social Login Mod