VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: vis18neu on November 30, 2017, 16:34:09 PM

Title: Problem with language file upgrade
Post by: vis18neu 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.
Title: Re: Problem with language file upgrade
Post by: Jörgen 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
Title: Re: Problem with language file upgrade
Post by: vis18neu 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.
Title: Re: Problem with language file upgrade
Post by: jjk 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.
Title: Re: Problem with language file upgrade
Post by: vis18neu 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.