api.i18n.php 377 B

1234567891011121314
  1. <?php
  2. /**
  3. * Loads current YALF language
  4. */
  5. $yalfLanguagePath = $system->getLangPath();
  6. if (file_exists($yalfLanguagePath)) {
  7. $allLangFiles = rcms_scandir($yalfLanguagePath, '*.php');
  8. if (!empty($allLangFiles)) {
  9. foreach ($allLangFiles as $locPreloadIndex => $locPreloadName) {
  10. require_once ($yalfLanguagePath . $locPreloadName);
  11. }
  12. }
  13. }