Skip to content

Commit

Permalink
Fix the doc of TransTractor::read() now that the refname is mandatory
Browse files Browse the repository at this point in the history
Fix #504
  • Loading branch information
mquinson committed Jun 11, 2024
1 parent e95f55e commit c75a90d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ General:
* Try to not fail when writing UTF po files with old Perl versions
(GitHub's #495) [Ineiev].

Documentation:
* Fix the doc of TransTractor::read() now that the refname is mandatory
(GitHub's #504, also involved in Debian's #1072760)

Translations:
* Updated: Serbian & Serbian (cyrillic), thanks Ivan Pesic.
* Updated: Spanish, thanks gallegonovato.
Expand Down
11 changes: 7 additions & 4 deletions lib/Locale/Po4a/TransTractor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,14 @@ sub new {
=over 4
=item read($$)
=item read($$$)
Add another input document data at the end of the existing array
C<< @{$self->{TT}{doc_in}} >>. The argument is the filename to read. If a second
argument is provided, it is the filename to use in the references.
Add another input document data at the end of the existing array C<< @{$self->{TT}{doc_in}} >>.
This function takes two mandatory arguments and an optional one.
* The filename to read on disk;
* The name to use as filename when building the reference in the PO file;
* The charset to use to read that file (UTF-8 by default)
This array C<< @{$self->{TT}{doc_in}} >> holds this input document data as an
array of strings with alternating meanings.
Expand Down

0 comments on commit c75a90d

Please sign in to comment.