Difference between revisions of "Esmith::FormMagick::LexTester"
From SME Server
Jump to navigationJump to searchLine 30: | Line 30: | ||
[http://wiki.contribs.org/CGI::FormMagick CGI::FormMagick] | [http://wiki.contribs.org/CGI::FormMagick CGI::FormMagick] | ||
[http://wiki.contribs.org/Esmith::FormMagick Esmith::FormMagick] | [http://wiki.contribs.org/Esmith::FormMagick Esmith::FormMagick] | ||
− | + | ||
[[Category:SME Server Development Framework]] | [[Category:SME Server Development Framework]] | ||
[[Category:Development Tools]] | [[Category:Development Tools]] | ||
[[Category:SME9-Development]] | [[Category:SME9-Development]] |
Revision as of 22:24, 21 December 2013
NAME
esmith::FormMagick::LexTester - test FormMagick lexicon completeness
In a root terminal you can do the command below if you want to display the up-to-date content
perldoc esmith::FormMagick::LexTester
SYNOPSIS
use esmith::FormMagick::LexTester;
my $lt = esmith::FormMagick::Lextester->new();
foreach my $lang (qw(en fr de)) { my $ok = $lt->lextest($lang); unless ($ok) { my @untranslated = @{$lt->{untranslated}}; warn "Untranslated terms for $lang: @untranslated\n", } }
DESCRIPTION
esmith::FormMagick::LexTester is a subclass of esmith::FormMagick whose speciality is checking the completeness of localisation lexicons.
new();
Exactly as for esmith::FormMagick
$lt->lextest($lang)
Given a two-letter language code, checks the completeness of the lexicon for that language. Returns true on success, false on failure. If it fails, it sets $lt->{untranslated}, which is an arrayref containing a list of strings to be translated.
SEE ALSO
CGI::FormMagick Esmith::FormMagick