VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Meguiars on June 03, 2016, 15:55:57 PM

Title: Admin strings shown on frontend
Post by: Meguiars on June 03, 2016, 15:55:57 PM
Language strings form admin files are shown on front-end. Any idea why?
Title: Re: Admin strings shown on frontend
Post by: jjk on June 04, 2016, 15:45:04 PM
Which language(s) do you have installed?
Please post an Example.
Title: Re: Admin strings shown on frontend
Post by: Meguiars on June 05, 2016, 19:00:58 PM
Polish

COM_VIRTUEMART_PRODUCT_AVAILABILITY="Dostępność" Frontend

COM_VIRTUEMART_PRODUCT_AVAILABILITY = "Dostępność produktu" admin

front and should show "Dostępność" but shows "Dostępność produktu"
Title: Re: Admin strings shown on frontend
Post by: jjk on June 06, 2016, 22:08:18 PM
Which versions of Joomla and VirtueMart do you use. I can't find the above mentioned language key in the php files.
Title: Re: Admin strings shown on frontend
Post by: Meguiars on June 07, 2016, 11:52:38 AM
joomla 3.5.1
VM 3.0.17

file: pl-PL.com_virtuemart.ini
Title: Re: Admin strings shown on frontend
Post by: jjk on June 07, 2016, 17:53:47 PM
I'm sorry, but I can't reproduce this behavior. I know COM_VIRTUEMART_PRODUCT_AVAILABILITY = "Dostępność produktu" still is in the administration language file, but I'm unable to find the language key COM_VIRTUEMART_PRODUCT_AVAILABILITY in the php files. So I suppose it is not used anymore. The one I see in my backend in the 'Product Edit' > 'Product Status' tab is COM_VIRTUEMART_AVAILABILITY="Availability" in English or COM_VIRTUEMART_AVAILABILITY="Dostępność" in Polish.

Perhaps you can check the following:
1. Enable 'Debug Language' in Joomla Global configuration and check if it displays any errors at the bottom of the view.
2. If you updated your shop several times already, check if you have an old admin en-GB.com_virtuemart.ini in the folder yourdomain/administrator/language/en-gb. If the file is there, you may delete it. Some time ago it was moved to yourdomain/administrator/components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini.
3. If you are using an editor like the free 'Notepad++' you can use the editor's search features to check if COM_VIRTUEMART_PRODUCT_AVAILABILITY is used in the php files of your installation.
Title: Re: Admin strings shown on frontend
Post by: Meguiars on June 10, 2016, 22:31:05 PM
Nothing did helped.  other string are also loaded from admin file like COM_VIRTUEMART_PRODUCT_DESC etc.