diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index ec17839b..5bb1fcfb 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -45,7 +45,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 79; + const versionRevision = 80; /** * Version suffix string (when applicable) diff --git a/wire/modules/Process/ProcessCommentsManager/ProcessCommentsManager.module b/wire/modules/Process/ProcessCommentsManager/ProcessCommentsManager.module index ce7ac4f2..1229c86c 100644 --- a/wire/modules/Process/ProcessCommentsManager/ProcessCommentsManager.module +++ b/wire/modules/Process/ProcessCommentsManager/ProcessCommentsManager.module @@ -21,8 +21,8 @@ class ProcessCommentsManager extends Process { */ public static function getModuleInfo() { return array( - 'title' => 'Comments', - 'summary' => 'Manage comments in your site outside of the page editor.', + 'title' => __('Comments', __FILE__), + 'summary' => __('Manage comments in your site outside of the page editor.', __FILE__), 'version' => 7, 'author' => 'Ryan Cramer', 'icon' => 'comments', @@ -82,6 +82,14 @@ class ProcessCommentsManager extends Process { */ protected $headline = ''; + /** + * Translated 'All' label + * + * @var string + * + */ + protected $labelAll = 'All'; + /** * Initialize the comments manager and define the statuses * @@ -101,6 +109,7 @@ class ProcessCommentsManager extends Process { Comment::statusSpam => $this->_('Spam'), Comment::statusDelete => $this->_('Delete') ); + $this->labelAll = $this->_('All'); } /** @@ -173,7 +182,8 @@ class ProcessCommentsManager extends Process { $session->redirect($this->wire('page')->url . "list/$field->name/all/"); } $statusNum = array_search($status, $this->statuses); - $headline = $statusNum !== false ? $this->statusTranslations[$statusNum] : ucfirst($status); + $headline = $statusNum !== false ? $this->statusTranslations[$statusNum] : $status; + if($headline === 'all') $headline = $this->labelAll; $this->breadcrumb('../', $field->getLabel()); $limit = (int) $this->wire('input')->get('limit'); @@ -567,7 +577,7 @@ class ProcessCommentsManager extends Process { $wireTabs = $this->modules->get('JqueryWireTabs'); $tabs = array(); $class = $this->input->urlSegment3 == 'all' ? 'on' : ''; - $tabs["tabStatusAll"] = "" . $this->_('All') . ""; + $tabs["tabStatusAll"] = "" . $this->labelAll . ""; foreach($this->statuses as $status => $name) { if($status == Comment::statusDelete) continue;