File: dump-po

package info (click to toggle)
liblocale-msgfmt-perl 0.15-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 324 kB
  • sloc: perl: 1,804; sh: 20; makefile: 7
file content (3 lines) | stat: -rwxr-xr-x 221 bytes parent folder | download | duplicates (3)
1
2
3
#!/bin/sh

perl -MLocale::Maketext::Extract -MData::Dumper -e '$Ext = Locale::Maketext::Extract->new; $Ext->read_po(shift); my $f = $Ext->lexicon; my %h = %{$f}; foreach(sort keys %h){print $_ . " " . $h{$_} . "\n";}' $1