<button class="btn btn-primary" data-toggle="dropdown" type="button"><?php echo __('New translation'); ?> </button> <div class="dropdown-menu dropdown-menu-right"> <form class="col-sm-12" role="form" method="post" action="<?php echo Request::current()->url(); ?> "> <div class="form-group"> <label class="sr-only" for="locale"><?php echo __('New translation'); ?> </label> <select class="form-control" id="locale" name="locale"> <?foreach (IntlCalendar::getAvailableLocales() as $locale):?> <option value="<?php echo $locale; ?> "><?php echo $locale; ?> </option> <?endforeach?> </select> <p class="help-block"><?php echo __('If your locale is not listed, be sure your hosting has your locale installed.'); ?> </p> </div> <button type="submit" class="btn btn-primary"><?php
<?php ini_set("intl.error_level", E_WARNING); var_dump(intlcal_get_available_locales(1)); var_dump(IntlCalendar::getAvailableLocales(2));
<?php ini_set("intl.error_level", E_WARNING); ini_set("intl.default_locale", "nl"); $locales = IntlCalendar::getAvailableLocales(); var_dump(count($locales) > 100); $locales = intlcal_get_available_locales(); var_dump(in_array('pt', $locales)); ?> ==DONE==