Markus Benning
and 1 contributors

NAME

Test::Locale::PO - check PO files for empty/fuzzy translations

SYNOPSIS

  use Test::More tests => 3;
  use Test::Locale::PO;

  po_file_ok('po/de.po');              # default is empty => 1, fuzzy => 1
  po_file_ok('po/fr.po', empty => 0);  # dont check for empty strings
  po_file_ok('po/it.po', fuzzy => 0);  # dont check for fuzzy flagged strings

DESCRIPTION

Test::Locale::PO will parse the specified PO file with Locale::PO and check it for empty or fuzzy-flagged translations.

po_file_ok( $file, %options )

Will run the check against the specified file.

options

empty (default 1)

check for empty translations.

fuzzy (default 1)

check for translations flagged as fuzzy.

DEPENDENCIES

Test::Builder, Locale::PO

COPYRIGHT AND LICENSE

Copyright 2013 by Markus Benning

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.