AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: Joop on October 18, 2016, 11:41:10 AM

Title: Where to find "default" languages - config file?
Post by: Joop on October 18, 2016, 11:41:10 AM
Hello,
I'm changing the storefront language, but it shows some of the pictures with the old/removed language path
I think it is hardcoded in some file?
old: extensions/default_italian/storefront/language/italian/flag.png

Where can i find this file??
I can't change it in the Admin (System > Localization > Language Definitions)

Title: Re: Where to find "default" languages - config file?
Post by: abantecart on October 18, 2016, 10:14:54 PM
Language icon is loaded into database at the time of extension installation.

Check this file:
extensions/default_italian/install.php

Code: [Select]
$this->db->query("INSERT INTO ".DB_PREFIX."languages (`name`,`code`,`locale`,`image`,`directory`,`filename`,`sort_order`, `status`)
  VALUES ('Italiano', 'it', 'it_IT.UTF-8,it_IT,italian', 'extensions/default_italian/storefront/language/italian/flag.png','italian','italian','3',0);");
$new_language_id = $this->db->getLastId();

Title: Re: Where to find "default" languages - config file?
Post by: Joop on October 19, 2016, 01:11:18 PM
Ok thanks,
Now i know where to look for... i installed the rest of the translation manually
So i get wrong links from the database :)
I could put the pictures in the wrong DIRs, but this is the best methode.
Greetings from Holland
Title: Re: Where to find "default" languages - config file?
Post by: Joop on October 20, 2016, 04:46:49 PM
Thanks,
I changed the link to the flag... in the database
and the other pictures/icons are now also visible
Joop