Author Topic: Where to find "default" languages - config file?  (Read 1825 times)

Offline Joop

  • Newbie
  • *
  • Posts: 11
  • Karma: +6/-0
    • View Profile
Where to find "default" languages - config file?
« 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)


Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4155
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Where to find "default" languages - config file?
« Reply #1 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();

We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Joop

  • Newbie
  • *
  • Posts: 11
  • Karma: +6/-0
    • View Profile
Re: Where to find "default" languages - config file?
« Reply #2 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

Offline Joop

  • Newbie
  • *
  • Posts: 11
  • Karma: +6/-0
    • View Profile
Re: Where to find "default" languages - config file?
« Reply #3 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

 

Powered by SMFPacks Social Login Mod