VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: rrost786 on May 25, 2012, 02:49:57 AM

Title: How to rename system words, like a word "product" to "school"
Post by: rrost786 on May 25, 2012, 02:49:57 AM
Hi! I'm a fresher and not good in English, so it is hard to find a similar subject here. So do not troll me, please  ;D
There are some system words in product list, like "product name", "product category" in sort field, or "product details" below the product.
The final product on my site are schools, and school - it is not a commodity (in my situation, at least  :D).
I will be very grateful if anybody could help me to rename it
(http://s019.radikal.ru/i614/1205/34/d821c013ea39.jpg)
Title: Re: How to rename system words, like a word "product" to "school"
Post by: jjk on May 25, 2012, 09:16:24 AM
First you need to install an editor like i.e. 'Notepad++' (free) and set the encoding to "UTF-8 without BOM".
Then I would recommend to use a language override.

- locate your frontend language files - 'Overrides' folder. There should be an 'en-GB.override.ini' file already that contains only the usual header information for language files but doesn't contain language keys/strings yet (unless you added some overrides already).

- In your case I would add the following lines below the header (copied from the original language files and 'manufacturer' replaced by 'School'):

COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL="School: "
COM_VIRTUEMART_SEARCH_ORDER_MF_NAME="School Name"
COM_VIRTUEMART_SEARCH_SELECT_ALL_MANUFACTURER="All Schools"
COM_VIRTUEMART_SEARCH_SELECT_MANUFACTURER="Select School"

After that save the file encoded as UTF-8 without BOM.
Title: Re: How to rename system words, like a word "product" to "school"
Post by: rrost786 on May 25, 2012, 11:15:07 AM
Thank you very much!