PDA

View Full Version : changing file names to accommodate another language



NearDark.de
15-Jan-2008, 11:26 AM
I am an Englishman living and working in Germany and have successfully set up the FormMail, with a little guidance from the creator, to work on the English language part of our site, see: https://www.neardark.de/shop_content.php/coID/25/content/Request-Account

And I am very happy with the results now, especially since I have enabled the: fmbadhandler.php.

My question is, because I have access to German translators in my office, so don't need a language pack, would it adversely affect the functionality of the script, if I changed name of the fmbadhandler.php to fmbadhandler-en.php & fmbadhandler-de.php and had each language's form use the appropriate version for the corresponding 'bad_url' value?

If not, where else, would I need to change the name of the file fmbadhandler.php. Of course, each form, would have its own 'form action' formail.php file.

thanks for any tips,

russellr
16-Jan-2008, 09:32 PM
Hi,

Yes, you can rename fmbadhandler as you wish. It's only referenced in the "bad_url" field in your form.

However, fmbadhandler usually just displays your own "bad_template" (error template) contents to the user. So, you can have different translations of your error template and will not need two copies of fmbadhandler.