From decd75769a832a2d79dc6d0b22ea25c335c0a770 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Sat, 7 Jan 2012 17:33:21 +0900
Subject: [PATCH] =?UTF-8?q?Issue=20#1392348=20by=20G=C3=A1bor=20Hojtsy:=20?=
 =?UTF-8?q?Fixed=20The=20installer=20does=20not=20translate=20profile=20na?=
 =?UTF-8?q?mes=20and=20descriptions.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 core/includes/install.core.inc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 81c97d651fa2..f76606b61144 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1119,12 +1119,15 @@ function install_select_profile_form($form, &$form_state, $profile_files) {
   }
 
   foreach ($names as $profile => $name) {
+    // The profile name and description are extracted for translation from the
+    // .info file, so we can use st() on them even though they are dynamic data
+    // at this point.
     $form['profile'][$name] = array(
       '#type' => 'radio',
       '#value' => 'standard',
       '#return_value' => $profile,
-      '#title' => $name,
-      '#description' => isset($profiles[$profile]['description']) ? $profiles[$profile]['description'] : '',
+      '#title' => st($name),
+      '#description' => isset($profiles[$profile]['description']) ? st($profiles[$profile]['description']) : '',
       '#parents' => array('profile'),
     );
   }
-- 
GitLab