eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 
How do I change a txt ' ' (Read 966 times)
Matt
eAuction User
**
Offline

I love Perl

Posts: 10
New Hampshire, USA
Gender: male
How do I change a txt ' '
05/24/05 at 18:55:02
 
Hello,

I would like to change the title of the Categories block under the Navbar.   The reason is that we will only have one category and I would like the label to read something else.  The category name will tell them what they need to know.

The original module looks like:
sub disp_cat {
   my ($key, $numitems, $row, $rowcolor);
   
print <<EO_HTML;
<div align="center">
   <table bgcolor="#FFFFFF" width="770" border="0" cellspacing="0" cellpadding="0">
     <tr>
         <td width="200" valign="top"><br>
           <table bgcolor="$config{'colortablebody'}" width="200" border="0" cellspacing="1" cellpadding="3">
               <tr bgcolor="$config{'colortablehead'}">
                 <td align="center"><b>$txt{'Categories'}</b></td>
                 <td align="center" nowrap><b>$txt{'Items'}</b></td>
               </tr>
EO_HTML
   
       foreach $key (sort keys %category) {
           oops($txt{'The category may not contain any non word characters'})
           if $key =~ /\W/;
           
           check_dir("$config{'basepath'}$key");
           $numitems = count_items(\$key) || 0;
           ($row, $rowcolor) = get_row_color($row);
       
print <<EO_HTML;
               <tr $$rowcolor>
                 <td>
                     <a href="$ENV{'SCRIPT_NAME'}?action=search&searchtype=items&searchstring=$key&lang=
$form{'lang'}">
                     <b>$category{$key}</b></a>
                 </td>
                 <td width="50" nowrap><font size="1">&nbsp;&nbsp;<b>$numitems</b></font></td>
               </tr>
EO_HTML
           
       }

print <<EO_HTML;
           </table>
           </td>
         <td align="center" valign="top"><br>
           @{[disp_random('pic', 4)]}<br>
           @{[disp_random('list', 5)]}<br>
           @{[disp_runtime()]}<br>
           @{[disp_banner('tbl')]}
         </td>
     </tr>
   </table>
</div>
<br>
EO_HTML
   
}

The line I'm interested in changing is:
<td align="center"><b>$txt{'Categories'}</b></td>

How can I change that from 'Categories' to something else ?

All help greatly appreciated.
Thanks..
Matt
Back to top
 
 


Advertising
View Profile | WWW   IP Logged
mars
eAuction Expert
Tester
***
Offline

I love Perl

Posts: 149

Re: How do I change a txt ' '
Reply #1 - 05/24/05 at 21:31:15
 
Type in what you want,
$txt{'Categories'}  to $txt{'Something Else'}

then go to the eConfig161.pl file and look for:
#-#############################################
# The Config-Variables of: Text-Translation
#-#############################################

and add a line that exactly matches what you entered in the eAuction.pl file  like:
'Something Else' => ['Artikel-Nummer', ],

Don't worry about the German if you are using only English, or you could go to Alta Vista's Babelfish and do a translation from English to German and then put it in where it belongs.

mars
Back to top
 
 


Advertising
View Profile   IP Logged
Matt
eAuction User
**
Offline

I love Perl

Posts: 10
New Hampshire, USA
Gender: male
Re: How do I change a txt ' '
Reply #2 - 05/24/05 at 21:54:22
 
mars,

Thanks for the help.  Your explanation in the other post helped me figure out the translation stuff in the config file.  And yea, I was nice enough to provide the translation into German for the new words and phrases I used.  Not that I'm expecting many Germans to use our auction, but didn't want to leave it incomplete !

Thanks again for your help!!
Matt
Back to top
 
 


Advertising
View Profile | WWW   IP Logged
Pages: 1 2 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only