@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb008 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
addons
/
Commercial.pack
/
lib
/
MT
/
Commercial
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/addons/Commercial.pack/lib/MT/Commercial/L10N.pm
# Movable Type (r) (C) 2001-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id: L10N.pm 70810 2008-01-08 22:58:00Z bchoate $ package MT::Commercial::L10N; use strict; use base 'MT::L10N'; sub init { my $lh = shift; $lh->SUPER::init(@_); $lh->fail_with('mt_fallback'); return; } sub mt_fallback { my $lh = shift; MT->language_handle->maketext(@_); } sub get_handle { my $this = shift; my ($lang) = @_; my $lh; # Look up plugin's handle first. # If not available, use system's handle. eval { $lh = $this->SUPER::get_handle($lang) || $this->SUPER::get_handle('en_us'); }; if (!$@ && $lh) { return $lh; } return MT->language_handle; } 1;