Changeset 4227
- Timestamp:
- 2003-05-06T14:17:26+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/translate.pl
r3211 r4227 239 239 &process_width_macro ($fullfilename, $image_name, \$image_macros); 240 240 241 } elsif ($image_type eq "collector_bar_button") { 242 243 # unescape any newline characters in the text 244 $text =~ s/\\n/\n/g; 245 246 # generate on and off images (yellow) 247 my $options = "-text \"$text\" -filenamestem yc$image_name -image_dir $image_dir"; 248 $options .= " -width 77 -height 26 -fixed_width -whitespace -fontsize 13"; 249 # special case for russian images 250 if ($language_symbol eq "ru") { 251 $options .= " -foundry cronyx -fontname helvetica"; 252 } 253 `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button-1.2.pl $options`; 254 255 # generate on and off images (green) 256 $options = "-text \"$text\" -filenamestem gc$image_name -image_dir $image_dir"; 257 $options .= " -width 77 -height 26 -fixed_width -whitespace -fontsize 13"; 258 $options .= " -bgcolor \"#96c19b\""; 259 # special case for russian images 260 if ($language_symbol eq "ru") { 261 $options .= " -foundry cronyx -fontname helvetica"; 262 } 263 `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button-1.2.pl $options`; 264 265 # generate on and off images (grey) - only the light image (off) is used 266 $options = "-text \"$text\" -filenamestem nc$image_name -image_dir $image_dir"; 267 $options .= " -width 77 -height 26 -fixed_width -whitespace -fontsize 13"; 268 $options .= " -bgcolor \"#7E7E7E\" -fontcolor \"#a0a0a0\""; 269 # special case for russian images 270 if ($language_symbol eq "ru") { 271 $options .= " -foundry cronyx -fontname helvetica"; 272 } 273 `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button-1.2.pl $options`; 274 275 # delete the unused dark image 276 if (-e util::filename_cat($image_dir, "nc$image_name" . "on.gif")) { 277 unlink(util::filename_cat($image_dir, "nc$image_name" . "on.gif")); 278 } 279 241 280 } elsif ($image_type eq "document_button") { 242 281
Note:
See TracChangeset
for help on using the changeset viewer.