From afd2a6c02c3924495f93d2cb0b5c9eaf5a3ec265 Mon Sep 17 00:00:00 2001
From: Bill Seremetis <bill@seremetis.net>
Date: Sun, 22 Sep 2013 19:34:36 +0300
Subject: [PATCH] Display a list of all languages on installation, no matter if
 local translations exist

---
 core/includes/install.core.inc | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 5580e16..bba2e43 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1563,8 +1563,17 @@ function install_select_language_form($form, &$form_state, $files = array()) {
   // Build a select list with language names in native language for the user
   // to choose from. And build a list of available languages for the browser
   // to select the language default from.
+
+  // Select lists based on all standard languages.
+  foreach ($standard_languages as $langcode => $language_names) {
+    $select_options[$langcode] = $language_names[1];
+    $browser_options[$langcode] = new Language(array(
+      'id' => $langcode,
+    ));
+  }
+
+  // Modify the select lists based on available language files.
   if (count($files)) {
-    // Select lists based on available language files.
     foreach ($files as $langcode => $uri) {
       $select_options[$langcode] = isset($standard_languages[$langcode]) ? $standard_languages[$langcode][1] : $langcode;
       $browser_options[$langcode] = new Language(array(
@@ -1572,16 +1581,6 @@ function install_select_language_form($form, &$form_state, $files = array()) {
       ));
     }
   }
-  else {
-    // Select lists based on all standard languages.
-    foreach ($standard_languages as $langcode => $language_names) {
-      $select_options[$langcode] = $language_names[1];
-      $browser_options[$langcode] = new Language(array(
-        'id' => $langcode,
-      ));
-    }
-  }
-
   $browser_langcode = language_from_browser($browser_options);
   $form['langcode'] = array(
     '#type' => 'select',
-- 
1.8.4

