/* @var $this yii\web\View */ /* @var $locale string */ /* @var $query string */ /* @var $title string */ echo $this->render('_locale', ['locale' => $locale, 'title' => 'ICU Language Data']); if ($locale) { ?> <h2 id="icu-data-currency">ICU Language Data <small><a href="#icu-data-currency">#</a></small></h2> <p>In PHP you may retrieve this data using the following code:</p> <pre> <?php echo '<?php'; ?> $data = ResourceBundle::create('<?php echo Html::encode($locale); ?> ', 'ICUDATA-lang'); foreach($data as $name => $value) { echo "$name: " . print_r($value, true); } </pre> <?php echo $this->render('_icuData', ['icuData' => ResourceInfo::languageData($locale)]); ?> <?php }
/* @var $this yii\web\View */ /* @var $locale string */ /* @var $query string */ /* @var $title string */ echo $this->render('_locale', ['locale' => $locale, 'title' => 'ICU Region Data']); if ($locale) { ?> <h2 id="icu-data-region">ICU Region Data <small><a href="#icu-data-region">#</a></small></h2> <p>In PHP you may retrieve this data using the following code:</p> <pre> <?php echo '<?php'; ?> $data = ResourceBundle::create('<?php echo Html::encode($locale); ?> ', 'ICUDATA-region'); foreach($data as $name => $value) { echo "$name: " . print_r($value, true); } </pre> <?php echo $this->render('_icuData', ['icuData' => ResourceInfo::regionData($locale)]); ?> <?php }
/* @var $this yii\web\View */ /* @var $locale string */ /* @var $query string */ /* @var $title string */ echo $this->render('_locale', ['locale' => $locale, 'title' => 'ICU Currency Data']); if ($locale) { ?> <h2 id="icu-data-currency">ICU Currency Data <small><a href="#icu-data-currency">#</a></small></h2> <p>In PHP you may retrieve this data using the following code:</p> <pre> <?php echo '<?php'; ?> $data = ResourceBundle::create('<?php echo Html::encode($locale); ?> ', 'ICUDATA-curr'); foreach($data as $name => $value) { echo "$name: " . print_r($value, true); } </pre> <?php echo $this->render('_icuData', ['icuData' => ResourceInfo::currencyData($locale)]); ?> <?php }
</td> </tr> <tr> <th>Default Currency</th> <?php $defaultCurrency = \app\models\NumberFormatterInfo::getDefaultCurrency($locale); ?> <td><?php echo $defaultCurrency ? $defaultCurrency . ' (' . \app\models\NumberFormatterInfo::getDefaultCurrencySymbol($locale) . ')' : '<em>none</em>'; ?> </td> <td><?php echo $defaultCurrency ? ResourceInfo::getCurrencyName($defaultCurrency, Yii::$app->language) : '<em>none</em>'; ?> </td> <td><?php echo $defaultCurrency ? ResourceInfo::getCurrencyName($defaultCurrency, $locale) : '<em>none</em>'; ?> </td> </tr> </table> <h2 id="icu-data-default">ICU Data <small><a href="#icu-data-default">#</a></small></h2> <?php echo $this->render('_icuData', ['icuData' => ResourceInfo::defaultData($locale)]); ?> <?php }