Subject: | Incorrect documentation - missing methods |
Date: | Sat, 8 Oct 2011 17:39:01 +0100 |
To: | <bug-Locale-POFileManager [...] rt.cpan.org> |
From: | "Duncan Garland" <duncan.garland [...] ntlworld.com> |
Hi,
This is the example given on CPAN:
use Locale::POFileManager;
my $manager = Locale::POFileManager->new(
base_dir => '/path/to/app/i18n/po',
canonical_language => 'en',
);
my $file = $manager->language_file('de');
$file->add_entry(
msgid => 'Hello',
msgstr => 'Guten Tag'
);
my @entries = $file->entries;
my $entry = $file->entry_for('Hello');
$file->save;
It doesn't work because the entries, entries_for and save methods don't
exist.
print $file->msgstr( 'Hello' ) . "\n";
does work.
Regards
Duncan