- Posts: 64
- Thank you received: 0
Where to Fix Spelling Mistake in Search Results
-
NanL105
Inactive member - Topic Author
- Member
Less
More
11 years 8 months ago #28468
by NanL105
Where to Fix Spelling Mistake in Search Results was created by NanL105
Hi Gang,
In testing my website I did a search - it worked fine and gave correct results.
There are 6 check boxes where you can choose to search only: Categories, Contacts, Articles, Newsfeeds, Weblinks, and Produkte. This is incorrect spelling of the work Product (at least in the US.) I want to correct the spelling but I cannot find where it is to correct it! I've searched the template files and it seems like it should be there somewhere, but I just couldn't find it.
Can you tell me where it is?
Thanks so much!
- - Nan
In testing my website I did a search - it worked fine and gave correct results.
There are 6 check boxes where you can choose to search only: Categories, Contacts, Articles, Newsfeeds, Weblinks, and Produkte. This is incorrect spelling of the work Product (at least in the US.) I want to correct the spelling but I cannot find where it is to correct it! I've searched the template files and it seems like it should be there somewhere, but I just couldn't find it.
Can you tell me where it is?
Thanks so much!
- - Nan
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 8 months ago #28476
by ivan.milic
Replied by ivan.milic on topic Where to Fix Spelling Mistake in Search Results
Please Log in to join the conversation.
-
NanL105
Inactive member - Topic Author
- Member
Less
More
- Posts: 64
- Thank you received: 0
11 years 8 months ago #28531
by NanL105
Replied by NanL105 on topic Where to Fix Spelling Mistake in Search Results
Thanks Ivan - - I will try it.
Please Log in to join the conversation.
-
NanL105
Inactive member - Topic Author
- Member
Less
More
- Posts: 64
- Thank you received: 0
11 years 7 months ago #29025
by NanL105
Replied by NanL105 on topic Where to Fix Spelling Mistake in Search Results
Hi Ivan,
I tried to follow the directions you pointed me to. The instructions were:
Open components\com_search\views\search\tmpl\default_form.php
find this (around line 53):
<label for="area-<?php echo $val;?>">
<?php echo JText::_($txt); ?>
</label>
temporally replace <?php echo JText::_($txt); ?> with just:
<?php echo $txt; ?>
see what will appear in place of existing text after that.
a the end you can simplu add to xx-XX.com_virtuemart.ini
THAT_TEXT_YOU_SEE="Product"
I was able to replace the bit of code and then checked my website, ran a search, got results,but I still see (the mispelled word Produkte.)
Search Only: Categories Contacts Articles Newsfeeds Weblinks Produkte
I did not understand the rest of the instructions, so don't know what to do now.
Please advise?
Thank you!
I tried to follow the directions you pointed me to. The instructions were:
Open components\com_search\views\search\tmpl\default_form.php
find this (around line 53):
<label for="area-<?php echo $val;?>">
<?php echo JText::_($txt); ?>
</label>
temporally replace <?php echo JText::_($txt); ?> with just:
<?php echo $txt; ?>
see what will appear in place of existing text after that.
a the end you can simplu add to xx-XX.com_virtuemart.ini
THAT_TEXT_YOU_SEE="Product"
I was able to replace the bit of code and then checked my website, ran a search, got results,but I still see (the mispelled word Produkte.)
Search Only: Categories Contacts Articles Newsfeeds Weblinks Produkte
I did not understand the rest of the instructions, so don't know what to do now.
Please advise?
Thank you!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 7 months ago #29032
by ivan.milic
Replied by ivan.milic on topic Where to Fix Spelling Mistake in Search Results
Ok but if you read it carefully you see that that guy did code thing for you so you just need to add language file with same name in /en-GB/overrides/ and place it it:
PLG_SEARCH_VIRTUEMART_PRODUCTS="your text"
PLG_SEARCH_VIRTUEMART_PRODUCTS="your text"
Please Log in to join the conversation.
-
NanL105
Inactive member - Topic Author
- Member
Less
More
- Posts: 64
- Thank you received: 0
11 years 7 months ago #29038
by NanL105
Replied by NanL105 on topic Where to Fix Spelling Mistake in Search Results
I am sorry, but I still don't understand.
What do you mean when you say, "the guy did the code thing for me?"
When the instructions said:
temporally replace <?php echo JText::_($txt); ?> with just:
<?php echo $txt; ?>
see what will appear in place of existing text after that.
a the end you can simplu add to xx-XX.com_virtuemart.ini
THAT_TEXT_YOU_SEE="Product"
I did not see anything appear in place of existing text. And I do not understand what "xx-XX.com_..." means, so how can I put "THAT_TEXT_YOU_SEE="Product" anywhere when I don't see any new text?
Now you are saying all I have to do is:
"add language file with same name in /en-GB/overrides/ and place it it:
PLG_SEARCH_VIRTUEMART_PRODUCTS="your text"
I found the /joomla/language/en-GB file but there is no "overrides" within it.
There is a /joomla/language/overrides file which has this file in it:
en-GB.override.ini and there isn't much in there.
It just says:
; $Id: en-GB.override.ini 21509 2011-06-10 07:48:41Z infograf768 $
; Joomla! Project
; Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8 NO BOM
Is that where I'm supposed to add "PLG_SEARCH_VIRTUEMART_PRODUCTS="your text"? Do I just paste it in under the last line?
If not, please tell me exactly what to write and where to write it. I am so sorry to bother you, but I am not a programmer and I don't want to mess up the wrong files!
Thanks so much!
What do you mean when you say, "the guy did the code thing for me?"
When the instructions said:
temporally replace <?php echo JText::_($txt); ?> with just:
<?php echo $txt; ?>
see what will appear in place of existing text after that.
a the end you can simplu add to xx-XX.com_virtuemart.ini
THAT_TEXT_YOU_SEE="Product"
I did not see anything appear in place of existing text. And I do not understand what "xx-XX.com_..." means, so how can I put "THAT_TEXT_YOU_SEE="Product" anywhere when I don't see any new text?
Now you are saying all I have to do is:
"add language file with same name in /en-GB/overrides/ and place it it:
PLG_SEARCH_VIRTUEMART_PRODUCTS="your text"
I found the /joomla/language/en-GB file but there is no "overrides" within it.
There is a /joomla/language/overrides file which has this file in it:
en-GB.override.ini and there isn't much in there.
It just says:
; $Id: en-GB.override.ini 21509 2011-06-10 07:48:41Z infograf768 $
; Joomla! Project
; Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8 NO BOM
Is that where I'm supposed to add "PLG_SEARCH_VIRTUEMART_PRODUCTS="your text"? Do I just paste it in under the last line?
If not, please tell me exactly what to write and where to write it. I am so sorry to bother you, but I am not a programmer and I don't want to mess up the wrong files!
Thanks so much!
Please Log in to join the conversation.
Time to create page: 0.152 seconds