From a885a625a3ea6f03ebfb9bebdd1a0c2cfc29e6bb Mon Sep 17 00:00:00 2001
From: megachriz <megachriz@654114.no-reply.drupal.org>
Date: Wed, 23 Dec 2015 18:00:04 +0100
Subject: [PATCH] Issue #2637118 by MegaChriz: Use "plural label" for "label
 plural" from entity info if available.

---
 plugins/FeedsProcessor.inc | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc
index 0644febb..4ad94270 100644
--- a/plugins/FeedsProcessor.inc
+++ b/plugins/FeedsProcessor.inc
@@ -193,7 +193,16 @@ abstract class FeedsProcessor extends FeedsPlugin {
    * 'label plural' ... the plural label of an entity type.
    */
   protected function entityInfo() {
-    return entity_get_info($this->entityType());
+    $info = entity_get_info($this->entityType());
+
+    // Entity module has defined the plural label in "plural label" instead of
+    // "label plural". So if "plural label" is defined, this will have priority
+    // over "label plural".
+    if (isset($info['plural label'])) {
+      $info['label plural'] = $info['plural label'];
+    }
+
+    return $info;
   }
 
   /**
-- 
GitLab