summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lesieur2010-03-12 17:30:17 (GMT)
committerDavid Lesieur2010-03-12 17:30:17 (GMT)
commit0cef37a40c6472178a80c422f282a58f3f5e16db (patch)
treee5e797142613e6bf168124436d7254ddd27cfae8
parent34fb02ebb3f7295e684ae63fcf0c0da1cae1aa34 (diff)
Allow translation of facet labels (field names).
-rwxr-xr-xcck_facets.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cck_facets.inc b/cck_facets.inc
index d8036e8..a95f1b6 100755
--- a/cck_facets.inc
+++ b/cck_facets.inc
@@ -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.
}
}