Permalink
Browse files

Merge branch 'w41_MDL-35739_m23_cliinstall' of git://github.com/skoda…

…k/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents e7afca9 + e9c9610 commit 785bc3bca9b26ad62ae9bb94129a754050714835 @nebgor nebgor committed Oct 8, 2012
Showing with 2 additions and 12 deletions.
  1. +2 −12 admin/cli/install.php
View
@@ -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";

0 comments on commit 785bc3b

Please sign in to comment.