Last active
August 29, 2015 13:57
-
-
Save stborchert/9778307 to your computer and use it in GitHub Desktop.
Force Drupal to use English as default language on admin pages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Force Drupal to use English as default language on admin pages and for drush. | |
*/ | |
if (empty($_REQUEST) || (!empty($_GET['q']) && strpos($_GET['q'], 'admin') !== FALSE)) { | |
$language_default = array( | |
'language' => 'en', 'name' => 'English', 'native' => 'English', | |
'direction' => 0, 'enabled' => 1, 'plurals' => 0, 'formula' => '', | |
'domain' => '', 'prefix' => '', 'weight' => 0, 'javascript' => '' | |
); | |
$conf['language_default'] = (object) $language_default; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment