Manual Pages for UNIX Darwin command on man I18N::LangTags::Detect
MyWebUniversity

Manual Pages for UNIX Darwin command on man I18N::LangTags::Detect

I18N::LangTags::Detect(3Ppemr)l Programmers Reference GuIi1d8eN::LangTags::Detect(3pm)

NAME

I18N::LangTags::Detect - detect the user's language preferences

SYNOPSIS

use I18N::LangTags::Detect;

my @userwants = I18N::LangTags::Detect::detect();

DESCRIPTION

It is a common problem to want to detect what language(s) the user would prefer output in. FFUUNNCCTTIIOONNSS

This module defines one public function, "I18N::Lang-

Tags::Detect::detect()". This function is not exported (nor is even exportable), and it takes no parameters. In scalar context, the function returns the most preferred language tag (or undef if no preference was seen). In list context (which is usually what you want), the function returns a (possibly empty) list of language tags representing (best first) what

languages the user apparently would accept output in. You will proba-

bly want to pass the output of this through "I18N::LangTags::impli-

catesuperstightly(...)" or "I18N::LangTags::implicatesupers(...)", like so: my @languages = I18N::LangTags::implicatesuperstightly(

I18N::LangTags::Detect::detect()

); ENVIRONMENT This module looks for several environment variables, including REQUESTMETHOD, HTTPACCEPTLANGUAGE, LANGUAGE, LCALL, LCMESSAGES, and LANG. It will also use the Win32::Locale module, if it's installed.

SEE ALSO

I18N::LangTags, Win32::Locale, Locale::Maketext. (This module's core code started out as a routine in Locale::Maketext; but I moved it here once I realized it was more generally useful.) COPYRIGHT

Copyright (c) 1998-2004 Sean M. Burke. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The programs and documentation in this dist are distributed in the hope that they will be useful, but without any warranty; without even the

implied warranty of merchantability or fitness for a particular pur-

pose. AUTHOR Sean M. Burke "sburke@cpan.org"

perl v5.8.8 2001-09-21 I18N::LangTags::Detect(3pm)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™