Jenkins::i18n::Stats - class to provide translations processing statistics
use Jenkins::i18n::Stats;
Jenkins::i18n::Stats
None by default.
Creates a new instance.
Return the number of all keys retrieve from all files processed, ignoring if they are repeated several times.
Returns the number of found translation files.
Returns the number of keys that are missing after comparing a language to the original in English.
Returns the number of keys that are available in the a language but not in the original English.
Returns the number of keys in the language that are available but doesn't actually have a translated value.
Returns the number of keys that have the same values as the original in English. Not necessarilly an error.
Returns the number of keys that are not related to Jenkins, but coming from Hudson.
Increments the files counter.
files
Increments the missing counter.
missing
Increments the unused counter.
unused
Increments the empty counter.
empty
Increments the same counter.
same
Increments the no_jenkins counter.
no_jenkins
Increments the keys counters.
This is required in order to allow the counting of unique keys processed, as well all the keys processed.
Returns the number of unique keys processed.
Calculates how much of the translation is completed.
Requires no parameters.
Returns a float as the percentage of the translation that is completed.
Returns a summary of all statistics in text format.
The summary is returned as a hash reference.
Getter for the files attribute.
Config::Properties
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
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.
translation-tool.pl
To install Jenkins::i18n, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jenkins::i18n
CPAN shell
perl -MCPAN -e shell install Jenkins::i18n
For more information on module installation, please visit the detailed CPAN module installation guide.