Skip to content

Commit

Permalink
po4a-updatepo: remove --width as no localized file will ever be gener…
Browse files Browse the repository at this point in the history
…ated

Closes #549
  • Loading branch information
mquinson committed Jan 28, 2025
1 parent b818e40 commit faa7bc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ General:
* Fix a failure with Perl 5.40.
* Add --target-lang option to po4a [jnavila]

Scripts:
* po4a-updatepo: remove --width as no localized file will ever be
generated (GitHub's #549) [Mt].

Markdown:
* Avoid searching for bullets in code blocks (GitHub's #550)
[Alexander Golubev].
Expand Down
13 changes: 3 additions & 10 deletions po4a-updatepo
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,6 @@ The wrapping of the reference comments is controlled by the B<--porefs> option.
Note that this option has no impact on how the msgid and msgstr are wrapped, i.e.
on how newlines are added to the content of these strings.
=item B<-w>, B<--width>
Column at which we should wrap the resulting file if the format supports it (default: 76).
If the provided value is 0 or negative, then the resulting file will not be wraped at all.
This is useful with some formats that could break when rewraped.
=item B<--msgid-bugs-address> I<email@address>
Set the report address for msgid bugs. By default, the created POT files
Expand Down Expand Up @@ -218,7 +212,6 @@ my $previous;
my $noprevious;
my $msgmerge_opt = "";
my $porefs = "full";
my $width = 76;
my $wrappo;
GetOptions(
'help|h' => \$help,
Expand All @@ -237,7 +230,6 @@ GetOptions(

'no-previous' => \$noprevious,
'wrap-po=s' => \$wrappo,
'width=s' => \$width,
'previous' => \$previous,
'msgmerge-opt=s' => \$msgmerge_opt,
'copyright-holder=s' => \$copyright_holder,
Expand Down Expand Up @@ -267,8 +259,9 @@ my %options = (
"package-name" => $package_name,
"package-version" => $package_version,
"porefs" => $porefs,
"wrap-po" => $wrappo,
"wrapcol" => $width,
"wrap-po" => $wrappo

# There is no need to pass wrapcol, as updatepo will never produce a localized file
);

foreach (@options) {
Expand Down

0 comments on commit faa7bc8

Please sign in to comment.