From fc3f9660003d55ef17184372443008e9b6d5d538 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Sat, 7 Jan 2012 17:30:35 +0900 Subject: [PATCH] Issue #1392192 by Garrett Albright: Fixed st() still requires profile to be selected before translating. --- core/includes/install.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/includes/install.inc b/core/includes/install.inc index 8f9d00742f07..533678f0f2ff 100644 --- a/core/includes/install.inc +++ b/core/includes/install.inc @@ -1100,7 +1100,7 @@ function st($string, array $args = array(), array $options = array()) { if (!isset($strings)) { $strings = array(); - if (isset($install_state['parameters']['profile']) && isset($install_state['parameters']['langcode'])) { + if (isset($install_state['parameters']['langcode'])) { // If the given langcode was selected, there should be at least one .po file // with its name ending in install.{$install_state['parameters']['langcode']}.po // This might or might not be the entire filename. It is also possible -- GitLab