예제 #1
0
    echo Locale::getScript($locale) ?: '<em>none</em>';
    ?>
</td>
        <td><?php 
    echo Locale::getDisplayScript($locale, Yii::$app->language) ?: '<em>none</em>';
    ?>
</td>
        <td><?php 
    echo Locale::getDisplayScript($locale, $locale) ?: '<em>none</em>';
    ?>
</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>