Locale::Codes::LangExt - standard codes for language extension identification


Locale-Codes documentation  | view source Contained in the Locale-Codes distribution.

Index


NAME

Top

Locale::Codes::LangExt - standard codes for language extension identification

SYNOPSIS

Top

   use Locale::Codes::LangExt;

   $lext = code2langext('acm');                 # $lext gets 'Mesopotamian Arabic'
   $code = langext2code('Mesopotamian Arabic'); # $code gets 'acm'

   @codes   = all_langext_codes();
   @names   = all_langext_names();

DESCRIPTION

Top

The Locale::Codes::LangExt module provides access to standard codes used for identifying language extensions, such as those as defined in the IANA language registry.

Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default IANA language registry codes will be used.

SUPPORTED CODE SETS

Top

The following different code sets can be used to identify languages extensions:

alpha

This is the set of three-letter (lowercase) codes from the IANA language registry, such as 'acm' for Mesopotamian Arabic.

This code set is identified with the symbol LOCALE_LANGEXT_ALPHA.

This is the default code set.

ROUTINES

Top

code2langext ( CODE [,CODESET] )
langext2code ( NAME [,CODESET] )
langext_code2code ( CODE ,CODESET ,CODESET2 )
all_langext_codes ( [CODESET] )
all_langext_names ( [CODESET] )
Locale::Codes::LangExt::rename_langext ( CODE ,NEW_NAME [,CODESET] )
Locale::Codes::LangExt::add_langext ( CODE ,NAME [,CODESET] )
Locale::Codes::LangExt::delete_langext ( CODE [,CODESET] )
Locale::Codes::LangExt::add_langext_alias ( NAME ,NEW_NAME )
Locale::Codes::LangExt::delete_langext_alias ( NAME )
Locale::Codes::LangExt::rename_langext_code ( CODE ,NEW_CODE [,CODESET] )
Locale::Codes::LangExt::add_langext_code_alias ( CODE ,NEW_CODE [,CODESET] )
Locale::Codes::LangExt::delete_langext_code_alias ( CODE [,CODESET] )

These routines are all documented in the Locale::Codes::API man page.

SEE ALSO

Top

Locale::Codes

The Locale-Codes distribution.

Locale::Codes::API

The list of functions supported by this module.

http://www.iana.org/assignments/language-subtag-registry

The IANA language subtag registry.

AUTHOR

Top

See Locale::Codes for full author history.

Currently maintained by Sullivan Beck (sbeck@cpan.org).

COPYRIGHT

Top


Locale-Codes documentation  | view source Contained in the Locale-Codes distribution.