Apache-iNcom
view release on metacpan or search on metacpan
Locale-Maketext-insu.patch view on Meta::CPAN
+ print STDERR "Noting ENV languages ", join(',', @languages),"\n" if $Debug;
}
}
}
#------------------------------------------------------------------------
- print "Lgs1: ", map("<$_>", @languages), "\n" if $Debug > 0;
+ print STDERR "Lgs1: ", map("<$_>", @languages), "\n" if $Debug > 0;
if($USING_LANGUAGE_TAGS) {
@languages = map &I18N::LangTags::locale2language_tag($_), @languages;
@@ -289,7 +318,7 @@
$it;
} @languages;
}
- print "Lgs2: ", map("<$_>", @languages), "\n" if $Debug > 0;
+ print STDERR "Lgs2: ", map("<$_>", @languages), "\n" if $Debug > 0;
push @languages, $base_class->fallback_languages;
# You are free to override fallback_languages to return empty-list
@@ -385,21 +414,21 @@
lib/Apache/iNcom.pm view on Meta::CPAN
=over
=item INCOM_DEFAULT_LANGUAGE
The language of the files without a language extension. Defaults to C<en>.
=item INCOM_LOCALE
The package uses to create Locale::Maketext(3) instance. If this is
set, an instance appropriate for the user's locale will be available
through the $Locale object.
=back
=head2 SESSION DIRECTIVES
=over
=item INCOM_SESSION_SERIALIZE_ACCESS
lib/Apache/iNcom.pm view on Meta::CPAN
See Apache::iNcom::OrderManager(3) for details.
=head1 USER MANAGEMENT
User management is handled through the DBIx::UserDB(3) module.
=head1 LOCALIZATION
Apache::iNcom is designed to make it easy to adapt your e-commerce
application to multiple locale.
The framework uses Locale::Maketext(3) for message formatting.
All pages may have a localized version available. The localized should
have an extension describing its language. (.en for English, .fr for
French, .de for German, etc.)
The user locale will
be negotiated through the Accep-Language header which is part of the
HTTP protocol. It can also be set explicitely by sending the user to
a special link (since not many users took the time to configure their
browser for language negotiation).
The URL :
I<INCOM_URL_PREFIX>/incom_set_lang/I<LANG>
This will set the language to use in the user's session.
lib/Apache/iNcom/Localizer.pm view on Meta::CPAN
generated request.
=head1 SYNOPSIS
my $file = $Localizer->find_localized_file( $filename );
my $bundle = $Localizer->get_handle( "Site_L10N" );
=head1 DESCRIPTION
This module is used for localization in the Apache::iNcom framework.
It should be used for operation which are locale sensitive. (Messages
display, currency and date formatting, etc.)
=head1 INITIALIZATION
An object is automatically initialized on each request by the
Apache::iNcom framework. The list of preferred languages is determined
by using the Accept-Language HHTP header. The default language is set
to the one specified in the configuration. It is accessible through
the $Localizer gobal variable in the Apache::iNcom pages.
lib/Apache/iNcom/Request.pm view on Meta::CPAN
An HTML::Validator object initialized with the configured input
profiles.
=item $Localizer
An Apache::iNcom::Localizer object initialized with the user requested
language.
=item $Locale
A Locale::Maketext object initialized with the proper locale. The
Locale::Maketext subclass used is specified in the C<INCOM_LOCALE>
configuration directives.
=back
=cut
sub setup_aliases {
my ( $self ) = shift;
( run in 1.711 second using v1.01-cache-2.11-cpan-ceb78f64989 )