#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package Admin::Locale::Command::Show;

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

use lib '/app/tools/admin/lib';
use Admin::Command;
use base 'Admin::Command';

use constant kTemplate => '/app/tools/admin/templates/locale/index.xsl';

sub cmd  { return "show"; }
sub area { return "locale"; }

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;

