Locale:...Language(3)
π NAME π
Locale::Codes::Language β module for dealing with language code sets. This is the Locale:...Language(3) page from User Contributed Perl Documentation, bestie, and it's here to make language codes make sense. π«Ά
β¨ SYNOPSIS β¨
okay so here's the first-look vibe check:
use Locale::Codes::Language;
$name = code2language(CODE);
$code = language2code(NAME);
@codes = all_language_codes();
@names = all_language_names();
π DESCRIPTION π
This module provides access to language code sets. Yes bestie, that's the whole assignment. π
For a description of the code sets available, please refer to the Locale::Codes::Types document. It's giving reference material, and it's iconic. πΈ
Most of the routines take an optional additional argument which specifies the code set to use. You can specify the code set by using the name of a code set, or by using the perl constant specified in the above document. If you don't specify one, the default code set will be used. Easy peasy, no cap. β¨
π 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'])β Seecode2nameinLocale::Codes.code2languages(CODE [,CODESET])β Seecode2namesinLocale::Codes.language2code(NAME [,CODESET] [,'retired'])β Seename2codeinLocale::Codes.language_code2code(CODE ,CODESET ,CODESET2)β Seecode2codeinLocale::Codes.all_language_codes([CODESET] [,'retired'])β Seeall_codesinLocale::Codes.all_language_names([CODESET] [,'retired'])β Seeall_namesinLocale::Codes.
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 ofFLAG, errors will be produced. Seeshow_errorsinLocale::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])β Seerename_codeinLocale::Codes.Locale::Codes::Language::add_language(CODE ,NAME [,CODESET])β Seeadd_codeinLocale::Codes.Locale::Codes::Language::delete_language(CODE [,CODESET])β Seedelete_codeinLocale::Codes.Locale::Codes::Language::add_language_alias(NAME ,NEW_NAME)β Seeadd_aliasinLocale::Codes.Locale::Codes::Language::delete_language_alias(NAME)β Seedelete_aliasinLocale::Codes.Locale::Codes::Language::rename_language_code(CODE ,NEW_CODE [,CODESET])β Seereplace_codeinLocale::Codes.Locale::Codes::Language::add_language_code_alias(CODE ,NEW_CODE [,CODESET])β Seeadd_code_aliasinLocale::Codes.Locale::Codes::Language::delete_language_code_alias(CODE [,CODESET])β Seedelete_code_aliasinLocale::Codes.
π¦ SEE ALSO π¦
Locale::Codesβ TheLocale-Codesdistribution, iykyk. π¦
π AUTHOR π
See Locale::Codes for full author history.
Currently maintained by Sullivan Beck (sbeck@cpan.org). Slay, Sullivan. π
π COPYRIGHT π
Copyright (c) 2011-2024 Sullivan Beck
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Periodt. π
okay bestie, that's the whole page. It's from perl v5.42.0, dated 2024-06-23, and it lives at Locale:...Language(3). Catch you in the group chat! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Locale-Codes 3.790.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms