ChooseTemplateByUserLang

Ok, so what I needed was to use different template depending on the uesr's

language. So I modified lib/RT/Action/SendEmail.pm slightly.
First it checks the language from user's profile. If, for example, it's
Japanese, then it replaces current template with the template which name has
" (ja)" at the end. So, instead of, for example, "Autoreply" template, it
will try to find template "Autoreply (ja)".

--Dimitry Faynerman

Next code is [=RT/Action/SendEmail_Local.pm] which do same in a more clear way: