Skip to content

Commit

Permalink
Merge branch 'w41_MDL-35739_m23_cliinstall' of git://github.com/skoda…
Browse files Browse the repository at this point in the history
…k/moodle into MOODLE_23_STABLE
  • Loading branch information
Aparup Banerjee committed Oct 8, 2012
2 parents e7afca9 + e9c9610 commit 785bc3b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions admin/cli/install.php
Expand Up @@ -240,18 +240,8 @@
if ($interactive) {
cli_separator();
$languages = get_string_manager()->get_list_of_translations();
// format the langs nicely - 3 per line
$c = 0;
$langlist = '';
foreach ($languages as $key=>$lang) {
$c++;
$length = iconv_strlen($lang, 'UTF-8');
$padded = $lang.str_repeat(' ', 38-$length);
$langlist .= $padded;
if ($c % 3 == 0) {
$langlist .= "\n";
}
}
// Do not put the langs into columns because it is not compatible with RTL.
$langlist = implode("\n", $languages);
$default = $CFG->lang;
cli_heading(get_string('availablelangs', 'install'));
echo $langlist."\n";
Expand Down

0 comments on commit 785bc3b

Please sign in to comment.