928 |
sub get_text ($) { |
sub get_text ($) { |
929 |
my ($type, $level, $node) = @_; |
my ($type, $level, $node) = @_; |
930 |
$type = $level . ':' . $type if defined $level; |
$type = $level . ':' . $type if defined $level; |
931 |
|
$level = 'm' unless defined $level; |
932 |
my @arg; |
my @arg; |
933 |
{ |
{ |
934 |
if (defined $Msg->{$type}) { |
if (defined $Msg->{$type}) { |
953 |
? htescape ($node->owner_element->manakai_local_name) |
? htescape ($node->owner_element->manakai_local_name) |
954 |
: '' |
: '' |
955 |
}ge; |
}ge; |
956 |
return ($type, $Msg->{$type}->[0], $msg); |
return ($type, 'level-' . $level . ' ' . $Msg->{$type}->[0], $msg); |
957 |
} elsif ($type =~ s/:([^:]*)$//) { |
} elsif ($type =~ s/:([^:]*)$//) { |
958 |
unshift @arg, $1; |
unshift @arg, $1; |
959 |
redo; |
redo; |
960 |
} |
} |
961 |
} |
} |
962 |
return ($type, '', htescape ($_[0])); |
return ($type, 'level-'.$level, htescape ($_[0])); |
963 |
} # get_text |
} # get_text |
964 |
|
|
965 |
} |
} |