Locale::Codes::Language3perl
Module for dealing with language code sets
Usage
use Locale::Codes::Language;$name = code2language(CODE);$code = language2code(NAME);@codes = all_language_codes();@names = all_language_names();
Overview
This module provides access to language code sets.
Please refer to the Locale::Codes::Types document for a description of the code sets available.
Most of the routines take an optional additional argument which specifies the code set to use. The code set can be specified using the name of a code set, or the perl constant specified in the above document. If not specified, the default code set will be used.
Routines
All routines in this module call the appropriate method in the Locale::Codes module, using an object of type: language Please refer to the documentation of the Locale::Codes module for details about each function.
The following functions are exported automatically:
code2language(CODE [,CODESET] [,'retired'])
|
See |
|---|---|
language2code(NAME [,CODESET] [,'retired'])
|
See |
language_code2code(CODE ,CODESET ,CODESET2)
|
See |
all_language_codes([CODESET] [,'retired'])
|
See |
all_language_names([CODESET] [,'retired'])
|
See |
The following functions are not exported and must be called fully qualified with the package name:
Locale::Codes::Language::show_errors(FLAG)-
By default, invalid input will produce empty results, but no errors. By passing in a non-zero value of FLAG, errors will be produced.
See
show_errorsin Locale::Codes but note that the default for the non-OO modules are to NOT produce errors.
- Locale::Codes::Language::rename_language(CODE ,NEW_NAME [,CODESET])
-
See
rename_codein Locale::Codes
- Locale::Codes::Language::add_language(CODE ,NAME [,CODESET])
-
See
add_codein Locale::Codes
- Locale::Codes::Language::delete_language(CODE [,CODESET])
-
See
delete_codein Locale::Codes
- Locale::Codes::Language::add_language_alias(NAME ,NEW_NAME)
-
See
add_aliasin Locale::Codes
Locale::Codes::Language::delete_language_alias(NAME)-
See
delete_aliasin Locale::Codes
- Locale::Codes::Language::rename_language_code(CODE ,NEW_CODE [,CODESET])
-
See
replace_codein Locale::Codes
- Locale::Codes::Language::add_language_code_alias(CODE ,NEW_CODE [,CODESET])
-
See
add_code_aliasin Locale::Codes
- Locale::Codes::Language::delete_language_code_alias(CODE [,CODESET])
-
See
delete_code_aliasin Locale::Codes
Releases
4 releases since Debian 7 (Wheezy); the text changed 3 times.