The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> How do I change a txt ' '
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1116953702

Message started by Matt on 05/24/05 at 18:55:02

Title: How do I change a txt ' '
Post by Matt on 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

Title: Re: How do I change a txt ' '
Post by mars on 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

Title: Re: How do I change a txt ' '
Post by Matt on 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

Title: Re: How do I change a txt ' '
Post by Dieter Werner on 05/24/05 at 22:19:53


mars wrote:
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


That's right  ;)
and let me tell you that eAuction has been translated into a lot of languages in this way - even into Korean and Chinese.

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.