NAME

XML::NewsML_G2::Translatable_Text - a text with optional translations

SYNOPSIS

my $text = XML::NewsML_G2::Translatable_Text->new(text => 'Freizeit');
$text->add_translation('en', 'leisure');

ATTRIBUTES

text

Default (untranslated) text content

METHODS

add_translation

Define a translation for the text

AUTHOR

Christian Eder <[email protected]>

LICENCE AND COPYRIGHT

Copyright (c) 2019, APA-IT. All rights reserved.

See XML::NewsML_G2 for the license.