It will depend on how many language options you have. If there is just one language (but not English) you could just change what is there. If there are two possible language choices, you could create an if-then clause for that part. If there are more than two languages, then you could create a series of if-then-else statements to go through the various language options or perhaps use some sort of associative array...
now, having said all of that, I'm not familiar enough with PERL to know exactly how to do it in that script... but it would be something similar to...
text-align : center;
if statements would go here checking $language to see which string to output
<p><hr size="1" width="75%" /></p>