Commit 0cef37a4 authored by David Lesieur's avatar David Lesieur

Allow translation of facet labels (field names).

parent 34fb02eb
......@@ -47,10 +47,10 @@ class cck_facet extends faceted_search_facet {
*/
function get_label() {
if (isset($this->_field['widget']['label'])) {
return check_plain($this->_field['widget']['label']);
return check_plain(t($this->_field['widget']['label'])); // Note: Using t() with non-literal, as does CCK.
}
else {
return check_plain($this->_field['field_name']);
return check_plain(t($this->_field['field_name'])); // Note: Using t() with non-literal, as does CCK.
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment