5 Locale::Language - standard codes for language identification
11 $lang = code2language('en'); # $lang gets 'English'
12 $code = language2code('French'); # $code gets 'fr'
14 @codes = all_language_codes();
15 @names = all_language_names();
19 The C<Locale::Language> module provides access to standard codes used
20 for identifying languages, such as those as defined in ISO 639.
22 Most of the routines take an optional additional argument which
23 specifies the code set to use. If not specified, the default ISO
24 639 two-letter codes will be used.
26 =head1 SUPPORTED CODE SETS
28 There are several different code sets you can use for identifying
29 languages. The ones currently supported are:
35 This is the set of two-letter (lowercase) codes from ISO 639, such
38 This code set is identified with the symbol C<LOCALE_LANG_ALPHA_2>.
40 This is the default code set.
44 This is the set of three-letter (lowercase) bibliographic codes from
45 ISO 639, such as 'heb' for Hebrew.
47 This code set is identified with the symbol C<LOCALE_LANG_ALPHA_3>.
51 This is the set of three-letter (lowercase) terminologic codes from
54 This code set is identified with the symbol C<LOCALE_LANG_TERM>.
62 =item B<code2language ( CODE [,CODESET] )>
64 =item B<language2code ( NAME [,CODESET] )>
66 =item B<language_code2code ( CODE ,CODESET ,CODESET2 )>
68 =item B<all_language_codes ( [CODESET] )>
70 =item B<all_language_names ( [CODESET] )>
72 =item B<Locale::Language::rename_language ( CODE ,NEW_NAME [,CODESET] )>
74 =item B<Locale::Language::add_language ( CODE ,NAME [,CODESET] )>
76 =item B<Locale::Language::delete_language ( CODE [,CODESET] )>
78 =item B<Locale::Language::add_language_alias ( NAME ,NEW_NAME )>
80 =item B<Locale::Language::delete_language_alias ( NAME )>
82 =item B<Locale::Language::rename_language_code ( CODE ,NEW_CODE [,CODESET] )>
84 =item B<Locale::Language::add_language_code_alias ( CODE ,NEW_CODE [,CODESET] )>
86 =item B<Locale::Language::delete_language_code_alias ( CODE [,CODESET] )>
88 These routines are all documented in the Locale::Codes man page.
96 =item B<Locale::Codes>
98 =item B<Locale::Constants>
100 =item B<http://www.loc.gov/standards/iso639-2/>
102 Source of the ISO 639 codes.
108 See Locale::Codes for full author history.
110 Currently maintained by Sullivan Beck (sbeck@cpan.org).
114 Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
115 Copyright (c) 2001-2010 Neil Bowers
116 Copyright (c) 2010-2010 Sullivan Beck
118 This module is free software; you can redistribute it and/or
119 modify it under the same terms as Perl itself.