Issue #1392192 by Garrett Albright: Fixed st() still requires profile to be selected before translating.

8.0.x
catch 2012-01-07 17:30:35 +09:00
parent 72fdf526a2
commit fc3f966000
1 changed files with 1 additions and 1 deletions

View File

@ -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