Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

resourcebundle_locales(3) [php man page]

RESOURCEBUNDLE_LOCALES(3)						 1						 RESOURCEBUNDLE_LOCALES(3)

ResourceBundle::getLocales - Get supported locales

	Object oriented style

SYNOPSIS
public array ResourceBundle::getLocales (string $bundlename) DESCRIPTION
Procedural style array resourcebundle_locales (string $bundlename) Get available locales from ResourceBundle name. PARAMETERS
o $bundlename - Path of ResourceBundle for which to get available locales, or empty string for default locales list. RETURN VALUES
Returns the list of locales supported by the bundle. EXAMPLES
Example #1 resourcebundle_locales(3) example <?php $bundle = "/user/share/data/myapp"; echo join(PHP_EOL, resourcebundle_locales($bundle)); ?> The above example will output something similar to: es root Example #2 OO example <?php $bundle = "/usr/share/data/myapp"; $r = new ResourceBundle( 'es', $bundle); echo join(" ", $r->getLocales($bundle)); ?> The above example will output something similar to: es root SEE ALSO
resourcebundle_get(3). PHP Documentation Group RESOURCEBUNDLE_LOCALES(3)

Check Out this Related Man Page

RESOURCEBUNDLE_GET_ERROR_CODE(3)					 1					  RESOURCEBUNDLE_GET_ERROR_CODE(3)

ResourceBundle::getErrorCode - Get bundle's last error code.

	Object oriented style

SYNOPSIS
public int ResourceBundle::getErrorCode (void ) DESCRIPTION
Procedural style int resourcebundle_get_error_code (ResourceBundle $r) Get error code from the last function performed by the bundle object. PARAMETERS
o $r -ResourceBundle object. RETURN VALUES
Returns error code from last bundle object call. EXAMPLES
Example #1 resourcebundle_get_error_code(3) example <?php $r = resourcebundle_create( 'es', "/usr/share/data/myapp"); echo $r['somestring']; if(intl_is_failure(resourcebundle_get_error_code($r))) { report_error("Bundle error"); } ?> Example #2 OO example <?php $r = new ResourceBundle( 'es', "/usr/share/data/myapp"); echo $r['somestring']; if(intl_is_failure(ResourceBundle::getErrorCode($r))) { report_error("Bundle error"); } ?> SEE ALSO
resourcebundle_get_error_message(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group RESOURCEBUNDLE_GET_ERROR_CODE(3)
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help me with parsing this file

Hi, I need a shell script that would parse this file /usr/share/i18n/locales/aa_DJ:title "Afar language locale for Djibouti (Cadu/Laaqo Dialects)." /usr/share/i18n/locales/aa_ER:title "Afar language locale for Eritrea (Cadu/Laaqo Dialects)." /usr/share/i18n/locales/aa_ER@saaho:title... (2 Replies)
Discussion started by: eamani_sun
2 Replies

2. Red Hat

ICU resource bundling on Linux: error faced while using Key more than 15 chars

Hi, I am trying to use ICU resource bundle on Unix and created a resource bundle "root.res" from the following file. root { abcdefghijklmnop { "16 character key" } abcdefghijklmno { "15 character key" } abcdefghijklmn { "14 character key" } abcdefghijklm12 { "13 C... (0 Replies)
Discussion started by: prashant_jindal
0 Replies

3. AIX

Add a bundle to a lpp_source

Hi. I forgot a bundle (X11.dt) in the lpp_source (base OS AIX 7.1). The bundle is now in the CD drive, I need to add it permanently in the lpp_source. What do I have to do ? - copy (where ?) bundle on my NIM server (how to determine what files to copy to have all elements of the bundle ?) ?... (1 Reply)
Discussion started by: stephnane
1 Replies

4. HP-UX

Install sequence in a bundle

Hi all. I'm wondering if there's a install sequence in a HPUX bundle? I'm trying to put many depots together into 1 single bundle, and use HPUX ignite to install this bundle. But I have to make sure one of the depot is last installed. I feel that if there're many different packages in a bundle,... (0 Replies)
Discussion started by: baibinghere
0 Replies

5. AIX

Create a bundle of user ids

if I want to create a bundle of user ids on some aix servers, if there is a way not need to do "passwd username" one by one user to set the password? Thanks (3 Replies)
Discussion started by: rainbow_bean
3 Replies

6. Shell Programming and Scripting

Delete duplicates in CA bundle

I do have a big CA bundle certificate file and each time if i get request to add new certificate to the existing bundle i need to make sure it is not present already. How i can validate the duplicates. The alignment of the certificate within the bundle seems to be different. Example: Cert 1... (7 Replies)
Discussion started by: diva_thilak
7 Replies