AxKit-XSP-L10N
view release on metacpan or search on metacpan
If no "base" or "AxL10NBase" are specified, or the given "base" or
"AxL10NBase" can't be loaded, the supplied "value" will be returned.
lang
This specifies the target language to localize the string to. It can
be specified as either an attribute, or as a child tag.
<l10n:translate lang="fr"></l10n:translate>
If no "lang" is supplied, "Locale::Maketext" will attempt to guess
the best language. Since this is running under AxKit/mod_perl, it
should find the language specified in the "Accept-Language" header
of the users browser.
value
This is the string to be localized. It can be specified as either an
attribute, or as a child tag.
<l10n:translate>English</l10n:translate>
inc/Module/AutoInstall.pm view on Meta::CPAN
}
}
$UnderCPAN = _check_lock(); # check for $UnderCPAN
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) {
require Config;
print
"*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n";
# make an educated guess of whether we'll need root permission.
print " (You may need to do that as the 'root' user.)\n"
if eval '$>';
}
print "*** $class configuration finished.\n";
chdir $cwd;
# import to main::
no strict 'refs';
*{'main::WriteMakefile'} = \&Write if caller(0) eq 'main';
inc/Module/AutoInstall.pm view on Meta::CPAN
sub _has_cpanplus {
return (
$HasCPANPLUS = (
$INC{'CPANPLUS/Config.pm'}
or _load('CPANPLUS::Shell::Default')
)
);
}
# make guesses on whether we're under the CPAN installation directory
sub _under_cpan {
require Cwd;
require File::Spec;
my $cwd = File::Spec->canonpath( Cwd::cwd() );
my $cpan = File::Spec->canonpath( $CPAN::Config->{cpan_home} );
return ( index( $cwd, $cpan ) > -1 );
}
lib/AxKit/XSP/L10N.pm view on Meta::CPAN
If no C<base> or C<AxL10NBase> are specified, or the given C<base> or
C<AxL10NBase> can't be loaded, the supplied C<value> will be returned.
=item lang
This specifies the target language to localize the string to.
It can be specified as either an attribute, or as a child tag.
<l10n:translate lang="fr"></l10n:translate>
If no C<lang> is supplied, C<Locale::Maketext> will attempt to guess
the best language. Since this is running under AxKit/mod_perl, it
should find the language specified in the C<Accept-Language> header
of the users browser.
=item value
This is the string to be localized. It can be specified as either an
attribute, or as a child tag.
<l10n:translate>English</l10n:translate>
( run in 0.756 second using v1.01-cache-2.11-cpan-702932259ff )