interfasys Posted August 10, 2014 Report Posted August 10, 2014 Not sure if I have to do something different, but I've defined my key as usual, but the elements in the dropdown always show the key, not the translated text. $lang['_CustomFields.drop1value1'] = "Value 1"; $lang['_CustomFields.drop1value2'] = "Value 2";
Blesta Addons Posted August 11, 2014 Report Posted August 11, 2014 can you paste the whole code for dropdown .
interfasys Posted August 11, 2014 Author Report Posted August 11, 2014 ? There is no special code, got to "Client Custom Fields" add a custom field for a client group. Choose the Drop Down type, type the key in the "Option Name" field and add the key to your _custom.php. The dropdown always shows the key instead of the translated text.
Tyson Posted August 11, 2014 Report Posted August 11, 2014 If this is your language: $lang['_CustomFields.drop1value1'] = "Value 1"; $lang['_CustomFields.drop1value2'] = "Value 2"; Then the keys you set in the "Name" field of the custom client field are "drop1value1" and "drop1value2", respectively. i.e. everything after "_CustomFields."
interfasys Posted August 11, 2014 Author Report Posted August 11, 2014 That's what I've used and it doesn't work.
Tyson Posted August 11, 2014 Report Posted August 11, 2014 I may have misunderstood. Only the Name of the custom field, itself, can be used as a language definition. The Option Name of drop-down values do not use language definitions. Is that what you were referring to? That might be a good feature request, though. Michael 1
interfasys Posted August 11, 2014 Author Report Posted August 11, 2014 Re-reading my OP, it wasn't clear. I'll post a feature request.
Tyson Posted August 25, 2014 Report Posted August 25, 2014 Closing thread as not a bug. Please refer to the feature request.
Recommended Posts