Why not just use a contact form plugin – such as http://ww.wp.xz.cn/extend/plugins/contact-form-7/
Thank you for responding. First I solved the problem by making sure that the file was in the directory to where the domain name was pointing and hard coding the URL where the file was.
My preference for coding rather than using plugins is because I am developing a WP site in Hebrew. It can be much harder to get the plugin to work in Hebrew than to write the code myself.
It could be, but in the case of contact form 7, it already has a Hebrew domain file, so no work involved in this case.
Even without the proper text domain, a properly internationalized plugin would make creating a domain file easier than re-coding the same from scratch.
That said, I understand the desire to develop a custom coded solution over activating yet another plugin with extra code we don’t really need. Something to be said for lean and mean.
Thank you for bringing that contact form 7 has a Hebrew domain file. With the contact form though, coding the action of a contact form is very simple, and I can make sure the action does exactly what I want it to do. One of the difficulties with Hebrew, exactly the same for Arabic, is the “right to left” of the languages. It is certainly worth while to check out whether there are already Hebrew versions of the plugins. But there are times when this challenge can take much energy to solve.
I’m sure it can. The WordPress team has identified proper internationalization (i18n) of themes and plugins as an important concept to promote to developers. When done properly, translating to a rtl language should be seamless. There are certainly a few quirks developers need to be aware of for rtl languages to work correctly, but it’s nothing that difficult.
The biggest challenge is getting developers to realize i18n is an important issue. Once over that hurdle, properly setting up text strings to be easily translated is another significant issue. But once i18n is properly implemented, the actual translation into another language should be fairly straight forward.
Unfortunately, we are a long way from universal i18n. I thought you might like to know that efforts are being made, even though you may not see significant results in published themes and plugins for some time.