MetaTrans::Languages

MetaTrans::Languages Perl module contains a simple 'database' of most of the known languages.
Download

MetaTrans::Languages Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jan Pomikalek
  • Publisher web site:
  • http://search.cpan.org/~janpom/MetaTrans-1.04/lib/MetaTrans/Base.pm

MetaTrans::Languages Tags


MetaTrans::Languages Description

MetaTrans::Languages Perl module contains a simple 'database' of most of the known languages. MetaTrans::Languages Perl module contains a simple "database" of most of the known languages. Extracted from MARC codes for languages, http://www.loc.gov/marc/languages/.SYNOPSIS use MetaTrans::Languages qw(get_lang_by_code get_code_by_lang); print get_lang_by_code('afr'); # prints 'Afrikaans' print get_code_by_lang('Afrikaans'); # prints 'afr'FUNCTIONSget_lang_by_code($code)Returns the name of the language with $code or undef if no language with such a $code is known.get_code_by_lang($language)Returns the code of the $language or undef if the language is unknown.is_known_lang($code)Returns true if the language with $code exists in the "database", false otherwise.get_langs_hashReturns the {code_1 => language_1, code_2 => language_2, ...} hash containing all known languages and their codes.get_langs_hash_revReturns the {language_1 => code_1, language_2 => code_2, ...} hash containing all known languages and their codes. Requirements: · Perl


MetaTrans::Languages Related Software