NAME

XML::NewsML_G2::Role::HasTranslations - Role for item types that have translations

SYNOPSIS

    my $media_topic = XML::NewsML_G2::Media_Topic->new
        (name  => 'alpine skiing',
         qcode => 20001057);
    $media_topic->add_translation('de', 'alpiner Skilauf')

DESCRIPTION

This module serves as a role for all NewsML-G2 item type classes which have translations

ATTRIBUTES

translations

Hash mapping from language to according translation

AUTHOR

Christian Eder <christian.eder@apa.at>

LICENCE AND COPYRIGHT

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

See XML::NewsML_G2 for the license.