Skip to content

Commit 7e4c928

Browse files
committed
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
1 parent da1bdf5 commit 7e4c928

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

main/install/install.lib.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ function & get_language_folder_list() {
381381
continue;
382382
}
383383
if (is_dir($dirname.$entries)) {
384+
if (is_file($dirname.$entries.'/install_disabled')) {
385+
// Skip all languages that have this file present, just for
386+
// the install process (languages incomplete)
387+
continue;
388+
}
384389
$result[$entries] = ucwords(str_replace($search, $replace_with, $entries));
385390
}
386391
}
@@ -1029,7 +1034,7 @@ function display_language_selection_box($name = 'language_list', $default_langua
10291034
* can be done in the language of the user
10301035
*/
10311036
function display_language_selection() { ?>
1032-
<h2><?php get_lang('WelcomeToTheDokeosInstaller'); ?></h2>
1037+
<h2><?php get_lang('WelcomeToTheChamiloInstaller'); ?></h2>
10331038
<div class="RequirementHeading">
10341039
<h2><?php echo display_step_sequence(); ?><?php echo get_lang('InstallationLanguage'); ?></h2>
10351040
<p><?php echo get_lang('PleaseSelectInstallationProcessLanguage'); ?>:</p>
@@ -1038,6 +1043,10 @@ function display_language_selection() { ?>
10381043
<button type="submit" name="step1" class="btn next" value="<?php echo get_lang('Next'); ?>"><?php echo get_lang('Next'); ?></button>
10391044
<input type="hidden" name="is_executable" id="is_executable" value="-" />
10401045
</form>
1046+
<br /><br />
1047+
</div>
1048+
<div class="RequirementHeading">
1049+
<?php echo get_lang('YourLanguageNotThereContactUs'); ?>
10411050
</div>
10421051
<?php
10431052
}

main/lang/faroese/install_disabled

Whitespace-only changes.

main/lang/tagalog/install_disabled

Whitespace-only changes.

main/lang/tibetan/install_disabled

Whitespace-only changes.

main/lang/xhosa/install_disabled

Whitespace-only changes.

0 commit comments

Comments
 (0)