VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: finbarr69 on July 06, 2012, 00:14:09 AM

Title: How to change words like topten to top-ten?
Post by: finbarr69 on July 06, 2012, 00:14:09 AM
Hi,

I searched the forum but couldn't find an answer to this.

Since in (British) English at least, there is no such word as Topten, I'd like to globally change it to Top-ten.  Also, in UK English, Metre is the correct spelling rather than Meter, Kilogramme rather than Kilogram etc

Can I change these easily?  I have already chosen UK English for the shop language.

TIA

Brian
Title: Re: How to change words like topten to top-ten?
Post by: srajca on July 06, 2012, 10:33:03 AM
you can edit it in the ini file...look in languages/en-GB/ and find the com_virtuemart site.ini or something like that. and search for topten and edit it. Make sure you make an override.
Title: Re: How to change words like topten to top-ten?
Post by: jjk on July 06, 2012, 15:32:44 PM
I've changed the metric unit names from american English to british English in the source en-GB files. So you will find them in the next VM2 release. US-users will probably use the US customary units anyway.
:)
Title: Re: How to change words like topten to top-ten?
Post by: finbarr69 on July 07, 2012, 12:53:50 PM
Thank you.  :-*
Title: Re: How to change words like topten to top-ten?
Post by: ivus on July 18, 2012, 15:43:25 PM
The far better solution is to use Language Overrides.

Admin > Extensions > Language Manager > Overrides
/administrator/index.php?option=com_languages&view=override&layout=edit

Simply create a new item, and do a VALUE search for "Price with discount" in the right hand panel. This will give you results which contain your phrases. Then it's simply a case of finding and altering the one you want to change.

I hope this helps.
Title: Re: How to change words like topten to top-ten?
Post by: finbarr69 on July 31, 2012, 23:39:29 PM
That helps, however imagine everyone in the UK who downloads VM2 having to create their own overrides to correct spelling that should be standard anyway.  They will all be duplicating their efforts.  Much better to fix it at the source as jjk has done. :-)

Title: Re: How to change words like topten to top-ten?
Post by: ivus on August 01, 2012, 00:51:07 AM
Hi finbarr69,

Quoteeveryone in the UK who downloads VM2 having to create their own overrides
- I think this is the case globally. Everyone will eventually need to do this.

Which ever works for you. However be aware of this. Hacking core files directly may be in vain when VM or J! does an auto update. That file may get overwritten.

Good luck.
Title: Re: How to change words like topten to top-ten?
Post by: finbarr69 on March 10, 2013, 11:55:59 AM
Thanks, yes.  Actually jjk has integrated these in the actual distribution, so it's not hacking. :-)