From 7e4c9281e26daa57c3f0d53fa2928f72685526c3 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sun, 25 Jan 2015 12:24:51 -0500 Subject: [PATCH] Add check for install_disabled file in language directories to avoid listing them during the installation if incomplete Add text to invite people to contribute new translations if they cannot find theirs in the installer list - refs #7325 --- main/install/install.lib.php | 11 ++++++++++- main/lang/faroese/install_disabled | 0 main/lang/tagalog/install_disabled | 0 main/lang/tibetan/install_disabled | 0 main/lang/xhosa/install_disabled | 0 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 main/lang/faroese/install_disabled create mode 100644 main/lang/tagalog/install_disabled create mode 100644 main/lang/tibetan/install_disabled create mode 100644 main/lang/xhosa/install_disabled diff --git a/main/install/install.lib.php b/main/install/install.lib.php index 24b85dd608..91972b664e 100755 --- a/main/install/install.lib.php +++ b/main/install/install.lib.php @@ -381,6 +381,11 @@ function & get_language_folder_list() { continue; } if (is_dir($dirname.$entries)) { + if (is_file($dirname.$entries.'/install_disabled')) { + // Skip all languages that have this file present, just for + // the install process (languages incomplete) + continue; + } $result[$entries] = ucwords(str_replace($search, $replace_with, $entries)); } } @@ -1029,7 +1034,7 @@ function display_language_selection_box($name = 'language_list', $default_langua * can be done in the language of the user */ function display_language_selection() { ?> -

+

:

@@ -1038,6 +1043,10 @@ function display_language_selection() { ?> +

+
+
+