I18n-Langtags-List

I18N::LangTags::List(3p) Perl Programmers Reference Guide

I18n-Langtags-List

I18N::LangTags::List(3p) Perl Programmers Reference Guide # I18N::LangTags::List(3p) Perl Programmers Reference Guide NNAAMMEE # I18N::LangTags::List -- tags and names for human languages SSYYNNOOPPSSIISS # use I18N::LangTags::List; print "Parlez-vous... ", join(', ', I18N::LangTags::List::name('elx') || 'unknown_language', I18N::LangTags::List::name('ar-Kw') || 'unknown_language', I18N::LangTags::List::name('en') || 'unknown_language', I18N::LangTags::List::name('en-CA') || 'unknown_language', ), "?\n"; prints: Parlez-vous... Elamite, Kuwait Arabic, English, Canadian English? DDEESSCCRRIIPPTTIIOONN # This module provides a function "I18N::LangTags::List::name( _l_a_n_g_t_a_g ) " that takes a language tag (see I18N::LangTags) and returns the best attempt at an English name for it, or undef if it can't make sense of the tag. ...