diff --git a/CHANGELOG.md b/CHANGELOG.md index 93da59e3..4c66f4a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added + +- Display translated fields names in fields' tab + ### Fixed - Fix administrators losing access to a block's configuration after setting a profile to "no access" on that block. diff --git a/inc/field.class.php b/inc/field.class.php index 234408e3..c6db84c7 100644 --- a/inc/field.class.php +++ b/inc/field.class.php @@ -705,7 +705,8 @@ public function showSummary($container) echo ""; echo ''; - $label = empty($this->fields['label']) ? NOT_AVAILABLE : $this->fields['label']; + $label = PluginFieldsLabelTranslation::getLabelFor(['itemtype' => self::class] + $data); + $label = empty($label) ? NOT_AVAILABLE : htmlspecialchars($label); echo "%s", $this->getID(), $label); echo ''; echo '' . $fields_type[$this->fields['type']] . '';