Skip Menu |
 

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

Report information
The Basics
Id: 87278
Status: new
Priority: 0/
Queue: Locale-PO-Callback

People
Owner: Nobody in particular
Requestors: bitcard.org [...] fremnet.net
Cc:
AdminCc:

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



Subject: Feature Request: Line number that is the start of the translation
Download (untitled) / with headers
text/plain 284b
Greetings It became necessary for us to know the location from within the file of the translation in question (we were using this module to test our translations) I've attached a simple patch that takes the easiest route to include a linenumber in the hashref passed to the callback
Subject: local_po_callback_linenumber.patch
--- lib/Locale/PO/Callback.pm 2010-05-18 04:05:27.000000000 +1000 +++ lib/Locale/PO/Callback.pm 2013-07-25 09:48:21.218876887 +1000 @@ -56,6 +56,7 @@ my $empty_stanza = sub { { comments => '', + linenumber => $. + 1, }; };
Sorry, a better version of the patch that doesn't result in warnings.
Subject: locale_po_callback_linenumber.patch
--- lib/Locale/PO/Callback.pm 2010-05-18 04:05:27.000000000 +1000 +++ lib/Locale/PO/Callback.pm 2013-07-25 10:16:11.384365373 +1000 @@ -56,6 +56,7 @@ my $empty_stanza = sub { { comments => '', + linenumber => ($. || 0) + 1, }; };


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.