Subject: | Feature Request: Line number that is the start of the translation |
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,
};
};