Hi, I'm using the Contact module and I need to use it in three different languages. My problem is that I can't translate the title of the resulting form in any way. The title is "Contact" but I need to internationalizate it. Is this a bug or I haven't found the way?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | contact_module.patch | 1.26 KB | jmlavarenne |
Comments
Comment #1
enkara commentedNobody else has had this problem? At least tell me if it's my fault. Thank you!
Comment #2
jmlavarenne commentedI have the same problem, and I've been looking through the site for a good hour for solutions. It seems a few people have the same issue. Some have been able to fix it with i18l and adding variables to settings.php, but I find it harsh to install a module just to translate this one string.
contact.module line 431
I changed
to
The part within the t() function seems to not get translated when it is within the variable_get() call.
Comment #3
jmlavarenne commentedI've quickly put together a patch with WinMerge - hope it's good. I've also edited line 281 to have the t() function do it's work on the returned value of variables_get(). It's against 5.12.
Comment #4
jmlavarenne commentedComment #5
jmlavarenne commentedComment #6
jmlavarenne commentedComment #7
gábor hojtsyUser provided strings are not translated in Drupal by design. Use the http://drupal.org/project/stringoverrides module for a simple solution. You don't need the whole i18n stack for this.
Comment #8
bloke_zero commentedYes, but Drupal 6 doesn't seem to be running that bit through t() unless I'm missing somthing.