Jump to content

Change the word "Comments" on product page comments tab.


Recommended Posts

hey gang.

 

i would like the word "comments" to read "reviews". see attached screen capture.

 

i havre managed to change a lot of the tab texts by editing the words in the {l s='XXX'} code in the "product.tpl" file but when i look for this particular tab text it is not in that file :(

 

i have looked in the "productcomments.tpl" file as well in the "productcomments" module but all of the "comments" text is important code and should not be touched as far as i know.

 

for the life of me, i cannot find the {l s='Comments'} ANYWHERE?

 

i have looked in the "ProductComment.php" files as well but the tag is not there either.

 

i found this code in the "en.php" translation file...

 

------------

 

<?php

 

global $_MODULE;

$_MODULE = array();

------------

 

but do not understand if it is a hint.

 

do i need to look in the global.php file and if so, where do i find it as i have looked everywhere.

 

any ideas?

 

thanks,

jer...

post-520279-0-66480600-1364857175_thumb.png

Link to comment
Share on other sites

hi guys and thanks!

 

i'm using 1.5.3.1

 

whispar1, i went to translations and opened the installed module translations for both english and spanish and for some reason all of the fields are blank (see attached "prodcomments.png") and also, there is no "Comments" field which is the one i was looking for.

 

vekia, not sure how i missed that tab.tpl file.

 

it did the trick so thanks BUT it also changed the spanish version to the same thing, "Customer Reviews" when i had it in spanish (Reseñas) before and now i cannot seem to find the translation so i can't change it back.

 

any ideas?

 

thanks,

jeremy...

post-520279-0-66312500-1364909381_thumb.png

Link to comment
Share on other sites

interesting.

 

i did a test out of curiosity and when i change the word back to "Comments" (from "Customer Reviews") in the tab.tpl file the spanish version changes back to "Reseñas" as it was before.

 

Weird what is going on here.

 

jer...

Link to comment
Share on other sites

yes, i know but when i go to the product comments module in bo and click configure and then click manage translations (the spanish flag) all i get is the attached error.

 

i know i translated the word "comments" to "reseñas" somewhere but i cannot recall where.

 

in what file would i find these translations to do it manually as the error suggests?

 

i mean when i change the english text to "Customer Reviews", where is that created on my server so i can go translate it without having to use bo to do so?

 

thanks,

jer...

post-520279-0-93197300-1364913589_thumb.png

Link to comment
Share on other sites

hahah! thanks!

 

i had actually already written to my host to ask if they can up the limit and this is their response...

 

------------------------

"Hi Jeremy,

 

Thanks for your ticket. I'm forwarding this to Ben for further assistance in about 4-8 hours. He'll determine if that's a limit we can allow to be increased on a shared plan or if a dedicated plan will be required, thank you.

------------------------

 

so i wrote back asking if they can at LEAST allow me the new limit temporarily so i can make the chabge.

 

sounds like they may try to force me into a dedicated plan and get more money out of me :(

 

i really do not want to have to create a WAMP server as i use MAC and my PC is crap!!!

 

jer...

Link to comment
Share on other sites

When you log into your ftp, do you see a file called php.ini?

You can edit it with notepad++

 

If so, there is a section called resource limits:

Using Vekia's tutorial adjust the limits in that section.

 

Create a backup of the php.ini file first in case the edits do not take.

Link to comment
Share on other sites

  • 1 month later...

I'm facing this same problem. I've been able to translate almost all of the productcomments module except for the TAB showing on the productpage.

 

Can anyone help me out?

 

Did you try Vekias solution?

 

"the answer is in tab.tpl file:

 

<li><a href="#idTab5" class="idTabHrefShort">{l s='Comments' mod='productcomments'}</a></li>"

Link to comment
Share on other sites

Did you try Vekias solution?

 

"the answer is in tab.tpl file:

 

<li><a href="#idTab5" class="idTabHrefShort">{l s='Comments' mod='productcomments'}</a></li>"

 

So shoud I just change 'Comments' there to the name I want?

Link to comment
Share on other sites

so your issue is solved? max input vars error no longer appear for you?

 

I asked my hosting provider to adjust is, since I cannot locate the php.ini file.

They haven't replied to my ticket yet, but I expect they will do within the next 24 hours.

Edited by stkramer (see edit history)
Link to comment
Share on other sites

you've got there (in communicate about error) information about max_input_vars value, have you got new value? or still the same?

 

Still the same (5000).

 

It says I need 9722, so I made my hosting provider change it to 10000.

Link to comment
Share on other sites

×
×
  • Create New...