File:  [LON-CAPA] / loncom / xml / languagetags.pm
Revision 1.1: download - view: text, annotated - select for diffs
Sat Oct 11 21:06:11 2003 UTC (20 years, 6 months ago) by www
Branches: MAIN
CVS tags: version_2_0_X, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_X, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99, HEAD
Move <mt>-tag into separate module to avoid module-dependency vicious cycle.

# The LearningOnline Network with CAPA
# Locale-related tags
#
# $Id: languagetags.pm,v 1.1 2003/10/11 21:06:11 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
# This file is part of the LearningOnline Network with CAPA (LON-CAPA).
#
# LON-CAPA is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# LON-CAPA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LON-CAPA; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# /home/httpd/html/adm/gpl.txt
#
# http://www.lon-capa.org/
#

package Apache::languagetags;

use strict;

BEGIN {
  &Apache::lonxml::register('Apache::languagetags',
			    ('mt'));
}

# ================================================================ The <mt> tag

sub start_mt {
    my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
    return &Apache::lonlocal::mt(&Apache::lonxml::get_all_text("/mt",$parser));
}

sub end_mt {
    return '';
}


1;
__END__

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>