package BookPub::Admin::Command::Locale;
use strict;

use lib '/app/tools/common/lib';
use RSApache::Response::XSLT;

use lib '/app/tools/bookpub/lib';
use base 'BookPub::Command';

use constant kTemplate => '/app/tools/bookpub/templates/admin/show_locale.xsl';

sub cmd      { return 'locale'; }
sub area     { return 'admin'; }
sub pageName { return 'Locale Settings'; }

sub execute {
    my ($self) = @_;

    # Give any inherited methods the first crack at this.
    # (This checks for login and basic access permissions).
    #
    my $response = $self->SUPER::execute();
    return $response if $response;

    # !!! Funny story - we already _have_ the Locale stuff in the XML.
    # !!! At least the numeric and currency stuff.
    #

    $response = RSApache::Response::XSLT->new( $self->{xml}, kTemplate );

    return $response;
}

1;

