Skip Menu |

This queue is for tickets about the Locale-POFileManager CPAN distribution.

Report information
The Basics
Id: 71546
Status: resolved
Priority: 0/
Queue: Locale-POFileManager

People
Owner: Nobody in particular
Requestors: duncan.garland [...] ntlworld.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Thanks, fixed in 0.04.