public function provideI18nEntities() { $entities = parent::provideI18nEntities(); // add the sort option keys foreach ($this->config()->sort_options as $key => $value) { $entities["ProductCategory.{$key}"] = array($key, "Sort by the '{$value}' field"); } return $entities; }