install_find_locales

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

./install.php, строка 496

Версии
6
install_find_locales($profilename)

Find all .po files for the current profile.

▾ 2 функции вызывают install_find_locales()

install_select_locale in ./install.php
Allow admin to select which locale to use for the current profile.
install_task_list in ./install.php
Add the installation task list to the current page.

Код

<?php
function install_find_locales($profilename) {
  $locales = file_scan_directory('./profiles/'. $profilename .'/translations', '\.po$', array('.', '..', 'CVS'), 0, FALSE);
  array_unshift($locales, (object) array('name' => 'en'));
  return $locales;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему