[icinga-checkins] icinga.org: icingaweb2/feature/translation-catalog-object-13012: CatalogParser: Add support for empty translator comments

git at icinga.org git at icinga.org
Wed Nov 23 15:49:00 CET 2016


Module: icingaweb2
Branch: feature/translation-catalog-object-13012
Commit: aec6b27227cbed27bed054ca27c306750b620aee
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=aec6b27227cbed27bed054ca27c306750b620aee

Author: Noah Hilverling <noah.hilverling at netways.de>
Date:   Wed Nov 23 15:48:24 2016 +0100

CatalogParser: Add support for empty translator comments

refs #13012

---

 modules/translation/library/Translation/Catalog/CatalogParser.php |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/translation/library/Translation/Catalog/CatalogParser.php b/modules/translation/library/Translation/Catalog/CatalogParser.php
index c60e029..a8f8c70 100644
--- a/modules/translation/library/Translation/Catalog/CatalogParser.php
+++ b/modules/translation/library/Translation/Catalog/CatalogParser.php
@@ -290,7 +290,10 @@ class CatalogParser
                     'obsolete' => true
                 );
             case null:
-                return array();
+                return array(
+                    'type'  => 'translator_comments',
+                    'value' => array('')
+                );
             default:
                 throw new CatalogParserException(
                     $this->catalogPath,



More information about the icinga-checkins mailing list