NAME

Jenkins::i18n::License

SYNOPSIS

use Jenkins::i18n::License;
my $license = Jenkins::i18n::License->new;
$license->print_license($some_file);
my $data_ref = $license->read_license;

DESCRIPTION

This class handles all license requirements for new translation files created.

It is intended to be used to provide the license text on new properties files.

METHODS

new

Creates a new instance of the class and return it.

Doesn't expect any parameter.

print

Print the license text to a file.

Expects as parameters:

  1. the complete path to the file

read

Returns the license, as an array reference.

The license itself will include a line referencing the translators, which will include the current year.

AUTHOR

Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2022 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>

This file is part of Jenkins Translation Tool project.

Jenkins Translation Tool 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 3 of the License, or (at your option) any later version.

Jenkins Translation Tool 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 Jenkins Translation Tool. If not, see (http://www.gnu.org/licenses/).

The original translation-tool.pl script was licensed through the MIT License, copyright (c) 2004, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributors. Translations files generated by the Jenkins Translation Tool CLI are distributed with the same MIT License.