News:

Looking for documentation? Take a look on our wiki

Main Menu

How to change words like topten to top-ten?

Started by finbarr69, July 06, 2012, 00:14:09 AM

Previous topic - Next topic

finbarr69

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

srajca

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.

jjk

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.
:)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations


ivus

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.

finbarr69

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. :-)


ivus

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.

finbarr69

Thanks, yes.  Actually jjk has integrated these in the actual distribution, so it's not hacking. :-)