Forums / Templates, Stylesheets, Page Layout / Rename "Model" to "Item "

Rename "Model" to "Item "

Locked

Views: 1,603

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
27 Jun 2007, 2:21 AM
#1
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Rename "Model" to "Item "

I would like to know if there is a faster better method of changing "Model" to "Item #" automatically verses having to go into many pages and retype the wording for "Model" Thank you :blush:

27 Jun 2007, 2:28 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Rename "Model" to "Item "

Yes, simply re-define the word in your language files. See the tutorials/FAQ for how to.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Jul 2007, 6:30 AM
#3
billybob_jcv avatar

billybob_jcv

New Zenner

Join Date:
Jun 2007
Posts:
10
Plugin Contributions:
0

Re: Rename "Model" to "Item "

Kim:

Yes, simply re-define the word in your language files. See the tutorials/FAQ for how to.

Really? I tried searching for where the "Model" language text is defined, and I found defines in a whole bunch of files under the English folder. It also looks like there are other places where it is defined for the various table column headings. It looks pretty involved - or am I misreading the code? "Model" is not the best term - I agree with OP, "Item" would be a more universal way to say it - I know it would sound better for my store (flowers).

1 Jul 2007, 2:17 PM
#4
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: Rename "Model" to "Item "

Kim:

Yes, simply re-define the word in your language files. See the tutorials/FAQ for how to.

On the english.php file there is only on location where it can be made.
I need to change it accross the board. I did a search and i have found many many files that need to be modified, thats the reason for my question....... i dont want to end of spending 5 hours modifing this and later hear that there is a better, faster method.

:frusty:

1 Jul 2007, 4:29 PM
#5
chinchilla2661 avatar

chinchilla2661

New Zenner

Join Date:
Jun 2007
Location:
Earth
Posts:
13
Plugin Contributions:
0

Re: Rename "Model" to "Item "

Shouldn't take that long. On a heavily modded 1.3.7 cart, I found it on 30 pages on the admin side and 15 times on the public side.

Now this only counts the times it's in a language call, for example in /includes/languages/english/YOURTEMPLATEFOLDER/shopping_cart.php where it's on define('TABLE_HEADING_MODEL', 'Model');

You only have to change it in the language folders, make sure you are using the template override system correctly. Once you do that then everywhere on a page that it currently says "model" would then become "item", "thingie number" or whatever you want to call it.

A good php editor with find/replace ability with the "prompt to replace" feature turned on, take about 10 minutes.

Chinchilla2661

1 Jul 2007, 4:33 PM
#6
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: Rename "Model" to "Item "

Chinchilla2661:

Shouldn't take that long. On a heavily modded 1.3.7 cart, I found it on 30 pages on the admin side and 15 times on the public side.

Now this only counts the times it's in a language call, for example in /includes/languages/english/YOURTEMPLATEFOLDER/shopping_cart.php where it's on define('TABLE_HEADING_MODEL', 'Model');

You only have to change it in the language folders, make sure you are using the template override system correctly. Once you do that then everywhere on a page that it currently says "model" would then become "item", "thingie number" or whatever you want to call it.

A good php editor with find/replace ability with the "prompt to replace" feature turned on, take about 10 minutes.

Chinchilla2661, thank you for your reply. Can you please tell me which php editor you use npw which i can use. Thank you :smile:

1 Jul 2007, 6:49 PM
#7
chinchilla2661 avatar

chinchilla2661

New Zenner

Join Date:
Jun 2007
Location:
Earth
Posts:
13
Plugin Contributions:
0

Re: Rename "Model" to "Item "

I use a variety of programs for editing, both free and not so free ;)

However, Notepad, which is bundled with Windows, has the find/replace with prompt. There are several free php editing programs on the net, a quick Google is sure to find one that will suit your needs. I would suggest Crimson. It might be a good idea to grab a copy of it no matter what as it will come in handy when setting up the template system to customize the look of your store.

Chinchilla2661

2 Jul 2007, 2:36 AM
#8
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: Rename "Model" to "Item "

Chinchilla2661:

I use a variety of programs for editing, both free and not so free ;)

However, Notepad, which is bundled with Windows, has the find/replace with prompt. There are several free php editing programs on the net, a quick Google is sure to find one that will suit your needs. I would suggest Crimson. It might be a good idea to grab a copy of it no matter what as it will come in handy when setting up the template system to customize the look of your store.

Thank you so much, i will work on the changes tomorrow night.
:clap: