From b3b5aae685c8443e3be7946a4d10c6f4568bd1cb Mon Sep 17 00:00:00 2001 From: Maxime Fabre Date: Tue, 10 Jun 2014 17:44:03 +0200 Subject: [PATCH] Add LocalizationCollector --- .../DataCollector/LocalizationCollector.php | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 src/DebugBar/DataCollector/LocalizationCollector.php diff --git a/src/DebugBar/DataCollector/LocalizationCollector.php b/src/DebugBar/DataCollector/LocalizationCollector.php new file mode 100644 index 0000000..7fcb2a5 --- /dev/null +++ b/src/DebugBar/DataCollector/LocalizationCollector.php @@ -0,0 +1,66 @@ + $this->getLocale(), + 'domain' => $this->getDomain(), + ); + } + + public function getName() + { + return 'localization'; + } + + public function getWidgets() + { + return array( + 'domain' => array( + 'icon' => 'bookmark', + 'map' => 'localization.domain', + ), + 'locale' => array( + 'icon' => 'flag', + 'map' => 'localization.locale', + ) + ); + } +} \ No newline at end of file