Closed (fixed)
Project:
Contact form fields
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2010 at 16:22 UTC
Updated:
19 Nov 2010 at 05:04 UTC
Hi,
Please make the field titles translateable. I've done it myself in _get_field_details by replacing
'#title' => $am__settings['title'],
with
'#title' => t($am__settings['title']),
Would be great if that could be incorporated into the code.
Comments
Comment #1
beautifulmindOkay.
Thanks for pointing this out.
Regards.
Comment #2
beautifulmindI got more robust solution:
Comment #3
thesaint_02 commentedThe foreach loop after the normal assignment sometimes overrides the title, so an even better solution would be the following statement after the foreach loop (some context here)
Why is the solution with the replacement more robust?
Comment #4
beautifulmindYes I got that too.
Comment #5
beautifulmindPlease install 1.x-dev version.
Regards.
Comment #7
temuccio commentedHello,
I have installed the 6.x.2.x-dev version but the translateable field don't work. I have one multilanguages site, how to i can fix this problem?
Comment #8
beautifulmindHello,
Thanks for your concern and using the module.
The 1.x branch of the module is no more maintained, instead use the latest stable release in 2.x branch. There is an easy way to upgrade. After installing the module, you need to run update #6020 and 6021.
Regards.
Comment #9
elpino commentedHello,
I tried running the updates as you suggested, but it doesn't work. Upon examination of the code, I don't see the t() function applied to the #title field anywhere... maybe the changes weren't applied by mistake in the 2.x branch?
Please correct me if I'm wrong.
Comment #10
beautifulmindHello,
I've commited the fix. Please try it.
Thanks for your concern and using the module. I really appreciate it.
Regards.
Comment #11
elpino commentedThanks, downloaded and tested, works like a charm.
Comment #12
beautifulmind