ResourceBundle::get
Grapheme 関数
ResourceBundle
PHP Manual

# ResourceBundle::getLocales

# resourcebundle_locales

(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう)

ResourceBundle::getLocales -- resourcebundle_locales — Get supported locales

### 説明

Object oriented style

array ResourceBundle::getLocales ( void )

Procedural style

array resourcebundle_locales ( ResourceBundle `$r` )

Get the list of locales supported by the bundle. The list is taken from the bundle table named `res_index` which should contain a table named `InstalledLocales`, which contains locales as keys. This bundle should be either in data directory as .res file or part of the .dat file for this function to work.

### パラメータ

`r`

  ResourceBundle object.

### 返り値

Returns the list of locales supported by the bundle.

### 例

例1 resourcebundle_locales() example

`<?php
$r = resourcebundle_create( 'es', "/usr/share/data/myapp");
echo join("\n", resourcebundle_locales($r));
?>`

例2 OO example

`<?php
$r = new ResourceBundle( 'es', "/usr/share/data/myapp");
echo join("\n", $r->getLocales());
?>`

上の例の出力は以下となります。

    es
    root

### 参考

- resourcebundle_get() - Get data from the bundle

ResourceBundle::get
Grapheme 関数
ResourceBundle
PHP Manual