Author Topic: Problem with language file upgrade  (Read 154 times)

vis18neu

  • Beginner
  • *
  • Posts: 42
Problem with language file upgrade
« on: November 30, 2017, 16:34:09 pm »
We regularly update VM language files with every new VM release but we realized that language strings and changes are not showing for quite some time now.

Trying to find out the cause of this problem, we attempted to create an override and searched for a string. The same string appears twice, one is located in administrator/language/... folder, and other in administrator/components/com_virtuemart/language/... folder. As this is a store that has been migrated from much older Joomla and VM versions over the years, it might be that these are old and new language files (one in com_virtuemart is dated 2014).

Is it safe to delete non-english folder in administrator/components/com_virtuemart/language/... (we can see that new VM stores have no non-english language folder in that location although we are using multilingual settings)? Thanks.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1148
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.6
Re: Problem with language file upgrade
« Reply #1 on: December 01, 2017, 10:12:55 am »
Hello

It should be safe, rename the directory and test. If it works after cleaning cache etc You are on the right track. Otherwise easy to restore. I usually make an ovveride via the Joomla language manager. Maybe a slower solution, but I find it easier to maintain the Language overides. This way it doesn´t matter which file is used.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.2
Virtuemart 3.2.6
Olympiantheme Hera (customized)

vis18neu

  • Beginner
  • *
  • Posts: 42
Re: Problem with language file upgrade
« Reply #2 on: December 01, 2017, 14:19:47 pm »
Thank you for your reply. We also create overrides but in this case the entire language folder is in question, so it seems much easier to correct the language path and use the overrides when necessary. Your suggestion worked, language is ok and updated.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3187
  • using Piwik instead of Google Analytics
Re: Problem with language file upgrade
« Reply #3 on: December 02, 2017, 11:54:38 am »
Just for your information - Old Joomla versions required the language files of the extensions to be in the Joomla language folders. But since a few years the preferred location of the extension language files are language subfolders of the 'components' and 'plugin' folders to which all VirtueMart en-GB language files were moved a few years ago. Translations of the VM language files are still placed in the Joomla language folders, because the ctransifex extension we use to generate the language packs from transifex.com doesn't have the capability to place the translations into the 'components' and 'plugin' folders, too.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

vis18neu

  • Beginner
  • *
  • Posts: 42
Re: Problem with language file upgrade
« Reply #4 on: December 02, 2017, 12:02:40 pm »
Thank you, I've concluded that same thing and decided to rename / disable old language folders in both administrator/components and components folder in all VM stores we maintain.