diff --git a/drupal/civicrm.module b/drupal/civicrm.module
index c970d7e..f0bad7c 100644
--- a/drupal/civicrm.module
+++ b/drupal/civicrm.module
@@ -431,6 +431,27 @@ function _civicrm_categories_access($profile_id) {
   }
 }
 
+/*
+ * Translating profile menu title dynamicaly to overide caching
+ */
+function civicrm_menu_alter(&$items) {
+  $categories = civicrm_user_categories();
+  foreach ($categories as $cat) {
+    $path = 'user/%user_category/edit/' . $cat['name'];
+    $items[$path]['title callback'] = 'civicrm_profile_title_callback';
+    $items[$path]['title arguments'] = array((string)$cat['id'], $cat['title']);
+  }
+}
+
+function civicrm_profile_title_callback($profile_id, $fallback) {
+  if (!civicrm_initialize() || empty($profile_id)) {
+    return $fallback;
+  }
+
+  return CRM_Core_BAO_UFGroup::getTitle($profile_id);
+}
+
+
 function civicrm_register_data($edit, &$user, $category, $reset, $doNotProcess = FALSE) {
   // lets suppress key generation for all registration forms
   civicrm_key_disable();
@@ -520,12 +541,12 @@ function civicrm_form_data($edit, &$user, $category, $reset, $doNotProcess = FAL
   $ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $userID, 'contact_type');
 
   //to allow Edit any profile if user have permission
-  $profileID = CRM_Core_DAO::getFieldValue("CRM_Core_DAO_UFGroup", $category, 'id', 'title');
+  $profileID = CRM_Core_DAO::getFieldValue("CRM_Core_DAO_UFGroup", $category, 'id', 'name');
   $ufGroupIDs = CRM_Core_Permission::ufGroupClause(CRM_Core_Permission::EDIT, NULL, TRUE);
 
   if (in_array($profileID, $ufGroupIDs)) {
     // get all the data for this specific category
-    $html = CRM_Core_BAO_UFGroup::getEditHTML($userID, $category, NULL, FALSE, $reset, NULL, $doNotProcess, $ctype);
+    $html = CRM_Core_BAO_UFGroup::getEditHTML($userID, $category, NULL, FALSE, $reset, $profileID, $doNotProcess, $ctype);
   }
   else {
     CRM_Core_Error::fatal(ts('The requested Profile (gid=%1) is disabled OR it is not configured to be used for \'Profile\' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.',
@@ -534,15 +555,16 @@ function civicrm_form_data($edit, &$user, $category, $reset, $doNotProcess = FAL
   }
 
   if ($html) {
+    $title = CRM_Core_DAO::getFieldValue("CRM_Core_DAO_UFGroup", $profileID, 'title', 'id');
     $html = civicrm_add_jquery($html);
     $index = empty($category) ? 'civicrm-profile-my-account' : $category;
     $output[$index][] = array(
-      '#title' => $category,
+      '#title' => $title,
       '#value' => $html,
       '#weight' => 1,
     );
     $output[$index][] = array(
-      '#title' => $category,
+      '#title' => $title,
       '#type' => 'item',
       '#markup' => $html,
       '#weight' => 1,
diff --git a/drupal/civicrm_user.inc b/drupal/civicrm_user.inc
index d94796f..7457910 100644
--- a/drupal/civicrm_user.inc
+++ b/drupal/civicrm_user.inc
@@ -139,8 +139,9 @@ function civicrm_user_categories() {
   foreach ($allUFGroups as $key => $value) {
     if ($value['is_active']) {
       $ufGroups[] = array(
+        'id' => $key,
         'name' => $value['name'],
-        'title' => $value['name'],
+        'title' => $value['title'],
         'weight' => $weight,
         'access callback' => '_civicrm_categories_access',
         'access arguments' => array("$key"),
@@ -193,9 +194,9 @@ function civicrm_user_view($user, $view_mode) {
 
     $ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $userID, 'contact_type');
 
-    $ufGroups = CRM_Core_BAO_UFGroup::getModuleUFGroup('User Account', 0, TRUE);
+    $ufGroups = CRM_Core_BAO_UFGroup::getModuleUFGroup('User Account', 0, TRUE, CRM_Core_Permission::VIEW, array('id', 'name', 'title', 'is_active'));
     $weight = 100;
-    foreach ($ufGroups as $id => $title) {
+    foreach ($ufGroups as $id => $ufGroup) {
 
       $fieldType = CRM_Core_BAO_UFField::getProfileType($id);
       if (CRM_Contact_BAO_ContactType::isaSubType($fieldType)) {
@@ -210,18 +211,17 @@ function civicrm_user_view($user, $view_mode) {
       // CRM-3537: profile edit link
       $editURL = '';
       if (user_edit_access($user)) {
-        $editURL = '<span class="user-page-link" id="user-page-profile-' . substr($title['title'], 0, 3) . '" ><span class="user-page-bullet">&raquo;</span> ' . l(ts("Edit %1", array(1 => $title['title'])),
-          "user/{$user->uid}/edit/" . $title['title']
-        ) . '</span>';
+        $editURL = '<span class="user-page-link" id="user-page-profile-' . substr($ufGroup['title'], 0, 3) . '" ><span class="user-page-bullet">&raquo;</span> ' 
+          . l(ts("Edit %1", array(1 => $ufGroup['title'])), "user/{$user->uid}/edit/" . $ufGroup['name']) . '</span>';
       }
 
       if ($pageContent) {
-        $user->content[$title['title']] = array(
-          '#title' => $title['title'],
+        $user->content[$ufGroup['name']] = array(
+          '#title' => $ufGroup['title'],
           '#type' => 'user_profile_category',
           '#weight' => $weight,
         );
-        $user->content[$title['title']][$title['title']] = array(
+        $user->content[$ufGroup['name']][$ufGroup['name']] = array(
           '#type' => 'user_profile_item',
           '#title' => NULL,
           '#value' => $pageContent . $editURL,

