# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\Users\joeric\Documents\NetBeansProjects\synergiejobs.be\sites\all\modules\contrib\ds
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: ds.module
--- ds.module Base (BASE)
+++ ds.module Locally Modified (Based On LOCAL)
@@ -517,6 +517,7 @@
  */
 function ds_get_fields($entity_type, $cache = TRUE) {
 
+  global $language;
   static $static_fields, $fields_cached = array();
   static $loaded = FALSE;
 
@@ -528,10 +529,10 @@
     }
   }
 
-  if (!isset($static_fields[$entity_type])) {
+  if (!isset($static_fields[$entity_type][$language->language])) {
 
     // Do we have them cached or not ?
-    if (!isset($fields_cached[$entity_type])) {
+    if (!isset($fields_cached[$entity_type][$language->language])) {
 
       // Get all fields for this entity type.
       $fields = array();
@@ -554,7 +555,7 @@
       // Give modules a change to alter fields.
       drupal_alter('ds_fields_info', $fields, $entity_type);
 
-      $fields_cached[$entity_type] = $fields;
+      $fields_cached[$entity_type][$language->language] = $fields;
 
       // Cache the fields.
       if ($cache) {
@@ -562,14 +563,14 @@
       }
     }
     else {
-      $fields = $fields_cached[$entity_type];
+      $fields = $fields_cached[$entity_type][$language->language];
     }
 
     // Store the fields statically.
-    $static_fields[$entity_type] = $fields;
+    $static_fields[$entity_type][$language->language] = $fields;
   }
 
-  return isset($static_fields[$entity_type]) ? $static_fields[$entity_type] : array();
+  return isset($static_fields[$entity_type][$language->language]) ? $static_fields[$entity_type][$language->language] : array();
 }
 
 /**
@@ -739,7 +740,7 @@
     // Title label.
     if ($key == 'title' && $entity_type == 'node') {
       $node_type = node_type_get_type($entity);
-      $field['title'] = $node_type->title_label;
+      $field['title'] = t($node_type->title_label);
     }
 
     if ($field_value) {
