1 #############################################################################
2 ## Name: lib/Wx/Locale.pm
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Locale.pm 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2001-2002 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
17 *Wx::gettext = \&Wx::GetTranslation;
18 *Wx::gettext_noop = sub { $_[0] };
20 @Wx::Locale::T::ISA = qw(Exporter);
27 package Wx::Locale::T;
30 my( $from, $to, @export );
31 if( @_ == 1 && $_[0] eq ':default' ) {
32 @_ = ( 'gettext', 'gettext', 'gettext_noop', 'gettext_noop' )
39 *{"Wx::Locale::T::$to"} = *{"Wx::$from"};
43 push @Wx::Locale::T::EXPORT_OK, @export;
44 Wx::Locale::T->export_to_level( 1, $temp, @export );
50 # this should be conditionally defined, but it does no harm to leave
52 Wx::_match( @_, $Wx::_n_n, 1, 1 ) && return Wx::Locale::newShort( @_ );
53 Wx::_match( @_, $Wx::_s_s_s_b_b, 1, 1 ) && return Wx::Locale::newLong( @_ );
54 Wx::_croak Wx::_ovl_error;