From 905e27ad475c98261adcfd194ea4a6f98dacbc81 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 17 May 2026 00:31:46 +0100 Subject: [PATCH] Remove overly specific edge-case error messages, where just the filename and the system error would suffice; replace all the different types of memory allocation error with "memory allocation failure", since the action for the end-user is the same in all cases; and use the error messages "memory allocation failure", "interrupted by a signal", "error closing file", "input file is also the output", and "write error" since these are all used by either coreutils and grep, in similar contexts, so their translations can be copied. --- po/cs.po | 258 +++++++++++++++++++++----------------------- po/de.po | 258 +++++++++++++++++++++----------------------- po/fi.po | 258 +++++++++++++++++++++----------------------- po/fr.po | 259 +++++++++++++++++++++------------------------ po/ka.po | 183 ++++++++------------------------ po/pl.po | 258 +++++++++++++++++++++----------------------- po/pt.po | 225 +++++++++++++++------------------------ po/ru.po | 243 ++++++++++++++++++------------------------ po/tr.po | 258 +++++++++++++++++++++----------------------- src/main/main.c | 2 +- src/main/options.c | 31 ++---- src/pv/cursor.c | 16 ++- src/pv/display.c | 2 +- src/pv/file.c | 15 ++- src/pv/state.c | 8 +- src/pv/transfer.c | 35 ++++-- 16 files changed, 998 insertions(+), 1311 deletions(-) diff --git a/po/cs.po b/po/cs.po index 5d97fab..52dd264 100644 --- a/po/cs.po +++ b/po/cs.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2024-10-13 20:43+0000\n" "Last-Translator: mmatous \n" "Language-Team: Czech \n" @@ -297,93 +297,64 @@ msgstr "Prosím, hlašte veškeré chyby na: %s" msgid "(input)" msgstr "(vstup)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "selhala alokace stavu" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "chyba přidělování paměti" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "očekáváno ID procesu nebo dvojice PID:DS" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "neplatné ID procesu" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "nebylo možné zjistit informace o souboru" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "je adresář" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "selhalo vytváření jména pro soubor v sysfs" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "selhalo čtení velikosti souboru v sysfs" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "selhalo otevření blokového zařízení" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "selhalo zjištění velikosti blokového zařízení" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "selhala alokace struktury pro volby" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "selhala alokace struktury pro argv" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "očekáván celočíselný argument" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "očekáván číselný argument" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Zkuste `%s --help' pro více informací." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Zkuste `%s --h' pro více informací." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -391,39 +362,39 @@ msgstr "" "při sledování deskriptorů souborů nelze použít řádkový mód nebo volby pro " "modifikaci přenosu" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "při sledování deskriptorů souborů nelze pozicování kurzoru použít" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "při sledování deskriptorů souborů nelze použít vzdálené ovládání" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "při sledování deskriptorů souborů nelze použít přenos souborů" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "není dostupné na systémech bez /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -443,25 +414,13 @@ msgstr "Na program se nevztahuje ŽÁDNÁ ZÁRUKA, v míře povolené zákonem." msgid "Project web site" msgstr "Stránka projektu" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "selhalo zjištění názvu terminálu" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "selhalo otevření zámkového souboru" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "selhal pokus o uzamčení" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "selhalo otevření terminálu" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "přerušeno signálem" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -471,39 +430,23 @@ msgstr "yzafpnum kMGTPEZY" msgid "yzafpnum KMGTPEZY" msgstr "yzafpnum KMGTPEZY" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "selhala alokace vyrovnávací paměti" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "selhalo posunutí za začátek výstupu" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "chyba při zavírání souboru" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "selhalo zavření souboru" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "vstupní soubor je rovněž výstupem" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "selhalo čtení ze souboru" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "selhalo zjištění informací o výstupním souboru" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "vstupní soubor je výstupní soubor" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(žádný)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(stdin)" @@ -571,61 +514,96 @@ msgstr "zpráva nepřijata" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO není na tomto systému podporováno" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "selhala alokace struktury historie" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "selhala alokace seznamu souborů" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "čtení selhalo" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "varování: detekovány chyby při čtení" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "souborem nelze procházet" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "selhal skok za chybu" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "chyba přeskočena" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "vyrovnávací paměť není alokována" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "selhalo nastavení intervalového časovače" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "selhalo vynulování intervalového časovače" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "selhala alokace vyrovnávací paměti pro pozici v řádcích" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "zápis selhal" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "selhalo volání select" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "chyba při zápisu" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "není obyčejný soubor nebo blokové zařízení" +#~ msgid "state allocation failed" +#~ msgstr "selhala alokace stavu" + +#~ msgid "failed to stat file" +#~ msgstr "nebylo možné zjistit informace o souboru" + +#~ msgid "is a directory" +#~ msgstr "je adresář" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "selhalo vytváření jména pro soubor v sysfs" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "selhalo čtení velikosti souboru v sysfs" + +#~ msgid "failed to open block device" +#~ msgstr "selhalo otevření blokového zařízení" + +#~ msgid "failed to determine size of block device" +#~ msgstr "selhalo zjištění velikosti blokového zařízení" + +#~ msgid "option structure allocation failed" +#~ msgstr "selhala alokace struktury pro volby" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "selhala alokace struktury pro argv" + +#~ msgid "failed to get terminal name" +#~ msgstr "selhalo zjištění názvu terminálu" + +#~ msgid "lock attempt failed" +#~ msgstr "selhal pokus o uzamčení" + +#~ msgid "failed to open terminal" +#~ msgstr "selhalo otevření terminálu" + +#~ msgid "failed to seek to start of output" +#~ msgstr "selhalo posunutí za začátek výstupu" + +#~ msgid "failed to read file" +#~ msgstr "selhalo čtení ze souboru" + +#~ msgid "failed to stat output file" +#~ msgstr "selhalo zjištění informací o výstupním souboru" + +#~ msgid "history structure allocation failed" +#~ msgstr "selhala alokace struktury historie" + +#~ msgid "file list allocation failed" +#~ msgstr "selhala alokace seznamu souborů" + +#~ msgid "read failed" +#~ msgstr "čtení selhalo" + +#~ msgid "file is not seekable" +#~ msgstr "souborem nelze procházet" + +#~ msgid "failed to seek past error" +#~ msgstr "selhal skok za chybu" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "vyrovnávací paměť není alokována" + +#~ msgid "failed to set interval timer" +#~ msgstr "selhalo nastavení intervalového časovače" + +#~ msgid "failed to clear interval timer" +#~ msgstr "selhalo vynulování intervalového časovače" + +#~ msgid "line position buffer allocation failed" +#~ msgstr "selhala alokace vyrovnávací paměti pro pozici v řádcích" + +#~ msgid "select call failed" +#~ msgstr "selhalo volání select" + #~ msgid "PID[:FD]" #~ msgstr "PID[:DS]" diff --git a/po/de.po b/po/de.po index 59c94f4..828e501 100644 --- a/po/de.po +++ b/po/de.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2025-01-14 20:39+0000\n" "Last-Translator: Benny \n" "Language-Team: German \n" @@ -315,93 +315,64 @@ msgstr "Bitte senden Sie Fehlerberichte an %s" msgid "(input)" msgstr "(eingabe)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "Speicherzuweisung für `state' fehlgeschlagen" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "Fehler bei der Speicheranforderung" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "Prozess-ID oder PID:FD-Paar erwartet" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "ungültige Prozess-ID" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "konnte Dateiinformationen nicht lesen" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "ist ein Verzeichnis" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "konnte Sysfs-Dateinamen nicht erzeugen" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "konnte Größe der Sysfs-Datei nicht lesen" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "konnte Blockgerät nicht öffnen" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "konnte Größe des Blockgeräts nicht ermitteln" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "Speicherzuweisung für `option' fehlgeschlagen" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "Speicherzuweisung für `argv' der Option fehlgeschlagen" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "numerischen Wert nicht verstanden" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "Ganzzahliges Argument erwartet" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "numerisches Argument erwartet" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "`%s --help' zeigt weitere Informationen an." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "`%s -h' zeigt weitere Informationen an." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -409,44 +380,44 @@ msgstr "" "Beim Beobachten von Dateideskriptoren können keine Optionen für den " "Zeilenmodus oder den Übertragungsmodifikator verwendet werden" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" "Beim Beobachten von Dateideskriptoren kann Cursor-Positionierung nicht " "verwendet werden" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "" "Beim Beobachten von Dateideskriptoren kann die Fernbedienung nicht verwenden " "werden" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "" "Beim Beobachten von Dateideskriptoren können Dateien nicht übertragen werden" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "Nicht verfügbar auf Systemen ohne /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -466,25 +437,13 @@ msgstr "Es besteht KEINE GARANTIE, soweit dies gesetzlich zulässig ist." msgid "Project web site" msgstr "Projekt-Website" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "konnte Terminalname nicht lesen" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "konnte Sperrdatei nicht öffnen" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "Sperrversuch fehlgeschlagen" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "konnte Terminal nicht öffnen" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "von einem Signal unterbrochen" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -494,39 +453,23 @@ msgstr "yzafpnµm kMGTPEZY" msgid "yzafpnum KMGTPEZY" msgstr "yzafpnµm KMGTPEZY" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "Speicherzuweisung für den Puffer fehlgeschlagen" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "Konnte nicht zum Anfang der Ausgabe springen" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "Fehler beim Schließen der Datei" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "konnte Datei nicht schließen" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "die Eingabedatei ist auch die Ausgabedatei" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "konnte Datei nicht lesen" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "konnte Dateiinformationen für Ausgabe-Datei nicht lesen" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "Eingabe-Datei ist Ausgabe-Datei" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(keine)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(stdin)" @@ -594,61 +537,96 @@ msgstr "Nachricht nicht empfangen" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO wird auf diesem System nicht unterstützt" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "Speicherzuweisung für `history' fehlgeschlagen" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "Speicherzuweisung für die Dateiliste fehlgeschlagen" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "read-Aufruf fehlgeschlagen" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "warnung: lesefehler erkannt" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "Datei ist nicht durchsuchbar" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "konnte den Fehler nicht überwinden" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "über den Lesefehler hinaus verschoben" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "Speicherzuweisung für den Transferpuffer fehlgeschlagen" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "konnte Intervall-Timer nicht setzen" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "konnte Intervall-Timer nicht löschen" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "Zuweisung des Zeilenpuffers fehlgeschlagen" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "write-Aufruf fehlgeschlagen" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "select-Aufruf fehlgeschlagen" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "Schreibfehler" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "ist weder eine normale Datei noch ein Blockgerät" +#~ msgid "state allocation failed" +#~ msgstr "Speicherzuweisung für `state' fehlgeschlagen" + +#~ msgid "failed to stat file" +#~ msgstr "konnte Dateiinformationen nicht lesen" + +#~ msgid "is a directory" +#~ msgstr "ist ein Verzeichnis" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "konnte Sysfs-Dateinamen nicht erzeugen" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "konnte Größe der Sysfs-Datei nicht lesen" + +#~ msgid "failed to open block device" +#~ msgstr "konnte Blockgerät nicht öffnen" + +#~ msgid "failed to determine size of block device" +#~ msgstr "konnte Größe des Blockgeräts nicht ermitteln" + +#~ msgid "option structure allocation failed" +#~ msgstr "Speicherzuweisung für `option' fehlgeschlagen" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "Speicherzuweisung für `argv' der Option fehlgeschlagen" + +#~ msgid "failed to get terminal name" +#~ msgstr "konnte Terminalname nicht lesen" + +#~ msgid "lock attempt failed" +#~ msgstr "Sperrversuch fehlgeschlagen" + +#~ msgid "failed to open terminal" +#~ msgstr "konnte Terminal nicht öffnen" + +#~ msgid "failed to seek to start of output" +#~ msgstr "Konnte nicht zum Anfang der Ausgabe springen" + +#~ msgid "failed to read file" +#~ msgstr "konnte Datei nicht lesen" + +#~ msgid "failed to stat output file" +#~ msgstr "konnte Dateiinformationen für Ausgabe-Datei nicht lesen" + +#~ msgid "history structure allocation failed" +#~ msgstr "Speicherzuweisung für `history' fehlgeschlagen" + +#~ msgid "file list allocation failed" +#~ msgstr "Speicherzuweisung für die Dateiliste fehlgeschlagen" + +#~ msgid "read failed" +#~ msgstr "read-Aufruf fehlgeschlagen" + +#~ msgid "file is not seekable" +#~ msgstr "Datei ist nicht durchsuchbar" + +#~ msgid "failed to seek past error" +#~ msgstr "konnte den Fehler nicht überwinden" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "Speicherzuweisung für den Transferpuffer fehlgeschlagen" + +#~ msgid "failed to set interval timer" +#~ msgstr "konnte Intervall-Timer nicht setzen" + +#~ msgid "failed to clear interval timer" +#~ msgstr "konnte Intervall-Timer nicht löschen" + +#~ msgid "line position buffer allocation failed" +#~ msgstr "Zuweisung des Zeilenpuffers fehlgeschlagen" + +#~ msgid "select call failed" +#~ msgstr "select-Aufruf fehlgeschlagen" + #~ msgid "PID[:FD]" #~ msgstr "PID[:FD]" diff --git a/po/fi.po b/po/fi.po index 65fd408..6280acc 100644 --- a/po/fi.po +++ b/po/fi.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: pv 1.9.34\n" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2026-03-24 23:25+0000\n" "Last-Translator: Ricky-Tigg \n" "Language-Team: Finnish \n" @@ -299,93 +299,64 @@ msgstr "Ilmoita ongelmista: %s" msgid "(input)" msgstr "(syöte)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "tilan allokointi epäonnistui" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "muistinvarausvirhe" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "Listatiedostot eivät saa sisältää @-rivejä" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "prosessitunnusta tai pid:fd-paria odotetaan" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "virheellinen prosessin ID" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "tiedoston tilastointi epäonnistui" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "on hakemisto" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "sysfs-tiedostonimen luominen epäonnistui" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "sysfs-kokotiedoston lukeminen epäonnistui" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "lohkolaitteen avaaminen epäonnistui" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "lohkolaitteen koon päättely epäonnistui" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "vaihtoehtorakenteen allokointi epäonnistui" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "vaihtoehtorakenteen argv:n allokointi epäonnistui" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "numeerista arvoa ei ymmärretty" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "kokonaislukuargumenttia odotetaan" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "numeerista argumenttia odotetaan" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "puuttuva tiedostonimi" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "puuttuva prosessinimi" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Suorita `%s --help' saadaksesi lisätietoja." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Suorita `%s -h' saadaksesi lisätietoja." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -393,40 +364,40 @@ msgstr "" "rivitilaa tai siirtomuokkausvaihtoehtoja ei voi käyttää tiedostokuvauksia " "tarkasteltaessa" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" "kohdistimen sijoittelua ei voi käyttää tiedostokuvauksia tarkasteltaessa" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "etäohjausta ei voi käyttää tiedostokuvauksia tarkasteltaessa" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "etäkyselyä ei voi käyttää tiedostokuvauksia tarkasteltaessa" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "tiedostoja ei voi siirtää tiedostokuvauksia tarkasteltaessa" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "ei saatavilla järjestelmissä, joissa ei ole /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "etäohjausta ja etäkyselyä ei voi käyttää yhdessä" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "tiedostoja ei voi määrittää tämän vaihtoehdon kanssa" @@ -448,25 +419,13 @@ msgstr "TAKUUTA EI OLE, lain sallimissa rajoissa." msgid "Project web site" msgstr "Projektin verkkosivu" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "päätelaitteen nimen hakeminen epäonnistui" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "lukitustiedoston avaaminen epäonnistui" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "lukitusyritys epäonnistui" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "päätelaitteen avaaminen epäonnistui" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "signaalin keskeyttämä" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -476,39 +435,23 @@ msgstr "" msgid "yzafpnum KMGTPEZY" msgstr "" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "puskurin allokointi epäonnistui" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "tulosteen käynnistyksen hakeminen epäonnistui" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "virhe tiedoston sulkemisessa" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "tiedoston sulkeminen epäonnistui" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "syötetiedosto on myös tuotostiedosto" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "tiedoston lukeminen epäonnistui" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "tulostiedoston tilastointi epäonnistui" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "syötetiedosto on tulostetiedosto" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(ei mitään)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "" @@ -576,58 +519,93 @@ msgstr "viestiä ei vastaanotettu" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO ei ole tuettu tässä järjestelmässä" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "historiarakenteen allokointi epäonnistui" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "tiedostolistan allokointi epäonnistui" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "luku epäonnistui" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "varoitus: lukuvirheitä havaittu" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "tiedosto ei ole haettavissa" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "menneen virheen hakeminen epäonnistui" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "aiempi lukuvirhe ohitettu" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "siirtopuskuria ei ole allokoitu" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "aikaväliajastimen asettaminen epäonnistui" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "aikaväliajastimen tyhjennys epäonnistui" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "rivin sijaintipuskurin allokointi epäonnistui" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "kirjoittaminen epäonnistui" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "valintakutsu epäonnistui" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "kirjoitusvirhe" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "ei tavallinen tiedosto tai lohkolaite" + +#~ msgid "state allocation failed" +#~ msgstr "tilan allokointi epäonnistui" + +#~ msgid "failed to stat file" +#~ msgstr "tiedoston tilastointi epäonnistui" + +#~ msgid "is a directory" +#~ msgstr "on hakemisto" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "sysfs-tiedostonimen luominen epäonnistui" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "sysfs-kokotiedoston lukeminen epäonnistui" + +#~ msgid "failed to open block device" +#~ msgstr "lohkolaitteen avaaminen epäonnistui" + +#~ msgid "failed to determine size of block device" +#~ msgstr "lohkolaitteen koon päättely epäonnistui" + +#~ msgid "option structure allocation failed" +#~ msgstr "vaihtoehtorakenteen allokointi epäonnistui" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "vaihtoehtorakenteen argv:n allokointi epäonnistui" + +#~ msgid "failed to get terminal name" +#~ msgstr "päätelaitteen nimen hakeminen epäonnistui" + +#~ msgid "lock attempt failed" +#~ msgstr "lukitusyritys epäonnistui" + +#~ msgid "failed to open terminal" +#~ msgstr "päätelaitteen avaaminen epäonnistui" + +#~ msgid "failed to seek to start of output" +#~ msgstr "tulosteen käynnistyksen hakeminen epäonnistui" + +#~ msgid "failed to read file" +#~ msgstr "tiedoston lukeminen epäonnistui" + +#~ msgid "failed to stat output file" +#~ msgstr "tulostiedoston tilastointi epäonnistui" + +#~ msgid "history structure allocation failed" +#~ msgstr "historiarakenteen allokointi epäonnistui" + +#~ msgid "file list allocation failed" +#~ msgstr "tiedostolistan allokointi epäonnistui" + +#~ msgid "read failed" +#~ msgstr "luku epäonnistui" + +#~ msgid "file is not seekable" +#~ msgstr "tiedosto ei ole haettavissa" + +#~ msgid "failed to seek past error" +#~ msgstr "menneen virheen hakeminen epäonnistui" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "siirtopuskuria ei ole allokoitu" + +#~ msgid "failed to set interval timer" +#~ msgstr "aikaväliajastimen asettaminen epäonnistui" + +#~ msgid "failed to clear interval timer" +#~ msgstr "aikaväliajastimen tyhjennys epäonnistui" + +#~ msgid "line position buffer allocation failed" +#~ msgstr "rivin sijaintipuskurin allokointi epäonnistui" + +#~ msgid "select call failed" +#~ msgstr "valintakutsu epäonnistui" diff --git a/po/fr.po b/po/fr.po index afaf6e3..a615633 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2025-05-31 08:58+0000\n" "Last-Translator: milimarg \n" "Language-Team: French \n" @@ -316,93 +316,64 @@ msgstr "SVP rapporter tous bogues à %s" msgid "(input)" msgstr "(entrée)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "échec de l'allocation de mémoire de condition" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "échec d'allocation mémoire" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "ID de processus ou paire pid:fd attendue" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "ID de processus non valide" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "échec à statuer sur le fichier" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "est un répertoire" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "échec de génération du nom de fichier sysfs" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "échec de la lecture de la taille du fichier sysfs" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "échec de l'ouverture du périphérique de bloc" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "échec de l'évaluation de la taille du périphérique de bloc" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "l'allocation pour la structure d'une option a échoué" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "l'allocation pour la structure de l'option argv a échoué" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "valeur numérique non comprise" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "Valeur entière attendue" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "Valeur numérique attendue" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Essayez `%s --help' pour plus d'informations." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Essayez `%s -h' pour plus d'informations." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -410,45 +381,45 @@ msgstr "" "impossible d'utiliser le mode ligne ou les options de modificateur de " "transfert lors de la visualisation des descripteurs de fichiers" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" "impossible d'utiliser le positionnement du curseur lors de la visualisation " "des descripteurs de fichier" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "" "impossible d'utiliser la télécommande lors de la visualisation des " "descripteurs de fichiers" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "" "impossible de transférer des fichiers lorsque vous regardez des descripteurs " "de fichiers" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "non disponible sur les systèmes sans /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -470,25 +441,13 @@ msgstr "Il n'y a AUCUNE GARANTIE, dans la mesure permise par la loi." msgid "Project web site" msgstr "Site web du projet" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "échec de lecture du nom du terminal" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "échec de l'ouverture du fichier de verrouillage" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "échec de la tentative de verrouillage" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "échec de l'ouverture du terminal" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "interrompu par un signal" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -498,39 +457,23 @@ msgstr "yzafpnum kMGTPEZY" msgid "yzafpnum KMGTPEZY" msgstr "yzafpnum KMGTPEZY" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "échec de l'allocation de mémoire tampon" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "ne peut pas passer au début de la sortie" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "erreur à la fermeture du fichier" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "la fermeture du fichier a échoué" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "le fichier d'entrée est aussi le fichier de sortie" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "la lecture du fichier a échoué" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "échec à statuer sur le fichier de sortie" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "fichiers d'entré et de sortie sont les mêmes" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(aucun)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(stdin)" @@ -598,62 +541,98 @@ msgstr "message non reçu" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO non pris en charge sur ce système" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "l'allocation de la structure de l'historique a échoué" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "échec de l'allocation de la liste de fichiers" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "la lecture a échoué" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "avertissement : erreurs de lecture détectées" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "ne peut pas se déplacer dans le fichier" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "n'a pas réussi à dépasser l'erreur" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "erreur de lecture dépassée" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "aucun tampon de transfert alloué" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "La définition de l'intervalle du minuteur a échoué" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "La réinitialisation des intervalles du minuteur a échoué" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "L'allocation de la position de la ligne de la mémoire tampon a échoué" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "l'écriture a échoué" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "l'appel de sélection a échoué" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "erreur d'écriture" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "pas un fichier ordinaire ou un périphérique de bloc" +#~ msgid "state allocation failed" +#~ msgstr "échec de l'allocation de mémoire de condition" + +#~ msgid "failed to stat file" +#~ msgstr "échec à statuer sur le fichier" + +#~ msgid "is a directory" +#~ msgstr "est un répertoire" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "échec de génération du nom de fichier sysfs" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "échec de la lecture de la taille du fichier sysfs" + +#~ msgid "failed to open block device" +#~ msgstr "échec de l'ouverture du périphérique de bloc" + +#~ msgid "failed to determine size of block device" +#~ msgstr "échec de l'évaluation de la taille du périphérique de bloc" + +#~ msgid "option structure allocation failed" +#~ msgstr "l'allocation pour la structure d'une option a échoué" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "l'allocation pour la structure de l'option argv a échoué" + +#~ msgid "failed to get terminal name" +#~ msgstr "échec de lecture du nom du terminal" + +#~ msgid "lock attempt failed" +#~ msgstr "échec de la tentative de verrouillage" + +#~ msgid "failed to open terminal" +#~ msgstr "échec de l'ouverture du terminal" + +#~ msgid "failed to seek to start of output" +#~ msgstr "ne peut pas passer au début de la sortie" + +#~ msgid "failed to read file" +#~ msgstr "la lecture du fichier a échoué" + +#~ msgid "failed to stat output file" +#~ msgstr "échec à statuer sur le fichier de sortie" + +#~ msgid "history structure allocation failed" +#~ msgstr "l'allocation de la structure de l'historique a échoué" + +#~ msgid "file list allocation failed" +#~ msgstr "échec de l'allocation de la liste de fichiers" + +#~ msgid "read failed" +#~ msgstr "la lecture a échoué" + +#~ msgid "file is not seekable" +#~ msgstr "ne peut pas se déplacer dans le fichier" + +#~ msgid "failed to seek past error" +#~ msgstr "n'a pas réussi à dépasser l'erreur" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "aucun tampon de transfert alloué" + +#~ msgid "failed to set interval timer" +#~ msgstr "La définition de l'intervalle du minuteur a échoué" + +#~ msgid "failed to clear interval timer" +#~ msgstr "La réinitialisation des intervalles du minuteur a échoué" + +#~ msgid "line position buffer allocation failed" +#~ msgstr "" +#~ "L'allocation de la position de la ligne de la mémoire tampon a échoué" + +#~ msgid "select call failed" +#~ msgstr "l'appel de sélection a échoué" + #~ msgid "PID[:FD]" #~ msgstr "PID[:FD]" diff --git a/po/ka.po b/po/ka.po index b068b0e..785b358 100644 --- a/po/ka.po +++ b/po/ka.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: pv 1.9.34\n" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2026-05-16 19:25+0000\n" "Last-Translator: a-j-wood \n" "Language-Team: Georgian \n" @@ -301,131 +301,102 @@ msgstr "ნებისმიერი შეცდომის შესახ msgid "(input)" msgstr "(შეყვანა)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "მეხსიერების გამოყოფის შეცდომა" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "დამატებითი ინფორმაციისთვის სცადეთ `%s --help'." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "დამატებითი ინფორმაციისთვის სცადეთ `%s -h'." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" msgstr "" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -447,25 +418,13 @@ msgstr "კანონით დაშვებული ფარგლებ msgid "Project web site" msgstr "პროექტის ვებსაიტი" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "შეწყვეტილია სიგნალის მიერ" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -475,39 +434,23 @@ msgstr "" msgid "yzafpnum KMGTPEZY" msgstr "" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "ფაილის დახურვის შეცდომა" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "შეტანის ფაილი ასევე გამოსატანიცაა" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(არცერთი)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(სტანდარტული შეყვანა)" @@ -575,57 +518,17 @@ msgstr "" msgid "SA_SIGINFO not supported on this system" msgstr "" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "ჩაწერის შეცდომა" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" diff --git a/po/pl.po b/po/pl.po index a6e7712..baeeb55 100644 --- a/po/pl.po +++ b/po/pl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2026-04-06 15:34+0000\n" "Last-Translator: Coral Pink \n" "Language-Team: Polish \n" @@ -310,93 +310,64 @@ msgstr "Proszę przesyłać zgłoszenia błędów do %s" msgid "(input)" msgstr "(wejście)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "polecenie do uruchomienia musi zostać określone" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "alokacja stanu programu nie powiodła się" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "błąd przydziału pamięci" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "pliki list nie mogą zawierać linii wykorzystujących @" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "oczekiwany proces ID lub para PID:FD" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "niepoprawne ID procesu" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "nie udało się wykonać operacji stat na pliku" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "jest katalogiem" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "nie udało się wygenerować nazwy pliku dla sysfs" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "nie udało się odczytać rozmiaru pliku sysfs" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "nie udało się otworzyć urządzenia blokowego" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "nie udało się ustalić rozmiaru urządzenia blokowego" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "nie udało się zaalokować struktur opcji" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "nie udało się zaalokować struktur opcji argv" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "wartość liczbowa niezrozumiana" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "oczekiwany argument typu liczby całkowitej" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "oczekiwany argument liczbowy" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "brakująca nazwa pliku" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "brakująca nazwa procesu" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "niepoprawne określenie monitorowanych stron" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Spróbuj `%s --help' by uzyskać więcej informacji." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Spróbuj `%s -h' by uzyskać więcej informacji." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -404,45 +375,45 @@ msgstr "" "nie można użyć trybu zliczania linii lub opcji modyfikujących przesył " "łącznie z opcją obserwowania deskryptorów plików" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" "nie można użyć pozycjonowania kursora łącznie z opcją obserwowania " "deskryptorów plików" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "" "nie można korzystać ze zdalnego sterowania łącznie z obserwowaniem " "deskryptorów plików" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" "nie można korzystać ze zdalnego odczytu łącznie z obserwowaniem deskryptorów " "plików" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "nie można przesyłać plików z opcją obserwowania deskryptorów plików" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "niedostępne na systemach bez /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "nie można użyć zdalnego sterowania i zdalnego odczytu jednocześnie" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "tryb monitorowania nie może być określony z tą opcją" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "tryb monitorowania nie może być użyty z store-and-forward" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "pliki nie mogą być określone przy użyciu tej opcji" @@ -462,26 +433,14 @@ msgstr "Nie udziela się GWARANCJI w zakresie dozwolonym przez prawo." msgid "Project web site" msgstr "Strona projektu" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "nie udało się uzyskać nazwy terminala" - # "Przewidywany czas ukończenia" for ETA is too long -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "nie udało się otworzyć pliku blokowania zasobów" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "blokada zasobów nie powiodła się" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "nie udało się otworzyć terminala" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "przerwany przez sygnał" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -491,40 +450,24 @@ msgstr "yzafpnum kMGTPEZY" msgid "yzafpnum KMGTPEZY" msgstr "yzafpnum KMGTPEZY" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "nie udało się zaalokować bufora" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "nie udało się przewinąć wyjścia do początku" - # "Przewidywany czas ukończenia" for ETA is too long -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "nie udało się zamknąć pliku" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "błąd zamknięcia pliku" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "nie udało się odczytać pliku" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "plik wejściowy jest również plikiem wyjściowym" -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "nie udało się wykonać operacji stat na pliku wyjściowym" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "plik wejściowy jest zarazem plikiem wyjściowym" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(brak)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(stdin)" @@ -592,63 +535,98 @@ msgstr "wiadomość nieodebrana" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO nie jest wspierane na tym systemie" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "nie udało się zaalokować struktury historii" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "nie udało się zaalokować listy plików" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "błąd odczytu" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "ostrzeżenie: błędy odczytu wykryte" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "pliku nie da się przewijać" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "nie udało się przewinąć za błąd" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "pominięto błąd odczytu" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "brak zaalokowanego bufora transferu" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "nie udało się ustawić interwału czasowego" - -# "Przewidywany czas ukończenia" for ETA is too long -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "nie udało się wyczyścić interwału czasowego" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "alokacja buforu pozycji linii nie powiodła się" - -#: src/pv/transfer.c:1259 -msgid "write failed" +#: src/pv/transfer.c:1272 +msgid "write error" msgstr "błąd zapisu" -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "nie udało się wywołać funkcji select" - #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "plik nie jest plikiem regularnym lub urządzeniem blokowym" +#~ msgid "state allocation failed" +#~ msgstr "alokacja stanu programu nie powiodła się" + +#~ msgid "failed to stat file" +#~ msgstr "nie udało się wykonać operacji stat na pliku" + +#~ msgid "is a directory" +#~ msgstr "jest katalogiem" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "nie udało się wygenerować nazwy pliku dla sysfs" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "nie udało się odczytać rozmiaru pliku sysfs" + +#~ msgid "failed to open block device" +#~ msgstr "nie udało się otworzyć urządzenia blokowego" + +#~ msgid "failed to determine size of block device" +#~ msgstr "nie udało się ustalić rozmiaru urządzenia blokowego" + +#~ msgid "option structure allocation failed" +#~ msgstr "nie udało się zaalokować struktur opcji" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "nie udało się zaalokować struktur opcji argv" + +#~ msgid "failed to get terminal name" +#~ msgstr "nie udało się uzyskać nazwy terminala" + +#~ msgid "lock attempt failed" +#~ msgstr "blokada zasobów nie powiodła się" + +#~ msgid "failed to open terminal" +#~ msgstr "nie udało się otworzyć terminala" + +#~ msgid "failed to seek to start of output" +#~ msgstr "nie udało się przewinąć wyjścia do początku" + +#~ msgid "failed to read file" +#~ msgstr "nie udało się odczytać pliku" + +#~ msgid "failed to stat output file" +#~ msgstr "nie udało się wykonać operacji stat na pliku wyjściowym" + +#~ msgid "history structure allocation failed" +#~ msgstr "nie udało się zaalokować struktury historii" + +#~ msgid "file list allocation failed" +#~ msgstr "nie udało się zaalokować listy plików" + +#~ msgid "read failed" +#~ msgstr "błąd odczytu" + +#~ msgid "file is not seekable" +#~ msgstr "pliku nie da się przewijać" + +#~ msgid "failed to seek past error" +#~ msgstr "nie udało się przewinąć za błąd" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "brak zaalokowanego bufora transferu" + +#~ msgid "failed to set interval timer" +#~ msgstr "nie udało się ustawić interwału czasowego" + +# "Przewidywany czas ukończenia" for ETA is too long +#~ msgid "failed to clear interval timer" +#~ msgstr "nie udało się wyczyścić interwału czasowego" + +#~ msgid "line position buffer allocation failed" +#~ msgstr "alokacja buforu pozycji linii nie powiodła się" + +#~ msgid "select call failed" +#~ msgstr "nie udało się wywołać funkcji select" + #~ msgid "process list allocation failed" #~ msgstr "nie udało się zaalokować listy procesów" diff --git a/po/pt.po b/po/pt.po index 9052aaf..5008631 100644 --- a/po/pt.po +++ b/po/pt.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -301,93 +301,64 @@ msgstr "Por favor, reporte quaisquer defeitos para %s" msgid "(input)" msgstr "" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "alocação de memória de status falhou" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "falha de alocação de memória" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "ID do processo ou par pid:fd esperado" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "ID de processo inválido" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "erro obtendo informações do arquivo" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "erro na alocação da estrutura de opções" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "erro na alocação da estrutura de opções argv" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "argumento inteiro esperado" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "argumento numérico esperado" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Tente `%s --help' para maiores informações." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Tente `%s -h' para maiores informações." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -395,41 +366,41 @@ msgstr "" "não pode usar o modo de linha ou opções de modificador de transferência ao " "assistir os descritores de arquivo" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" "não pode usar o posicionamento do cursor ao observar os descritores de " "arquivo" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "não pode usar o controle remoto ao assistir os descritores de arquivo" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "não pode transferir arquivos ao assistir descritores de arquivo" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "não disponível em sistemas sem /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -449,25 +420,13 @@ msgstr "" msgid "Project web site" msgstr "" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "erro ao ler o nome do terminal" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "erro ao abrir arquivo de bloqueio" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "tentativa de bloqueio falhou" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "erro abrindo o terminal" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "interrompido por um sinal" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -477,39 +436,23 @@ msgstr "" msgid "yzafpnum KMGTPEZY" msgstr "" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "erro alocando o buffer" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "não pode mover para o início da produção" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "erro ao fechar o ficheiro" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "erro fechando o arquivo" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "ficheiro de entrada também é a saída" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "erro lendo o arquivo" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "erro obtendo informações do arquivo de saída" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "os arquivos de entrada e saída são o mesmo" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "" @@ -577,58 +520,60 @@ msgstr "mensagem não recebida" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO não suportado neste sistema" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "erro de leitura" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "aviso: erros de leitura detectados" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "não pode mover dentro do arquivo" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "não pode ir além do erro" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "ignorado erro de leitura" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "erro de gravação" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "erro na chamada da função select" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "erro de escrita" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "não é um arquivo regular ou dispositivo de bloqueio" + +#~ msgid "state allocation failed" +#~ msgstr "alocação de memória de status falhou" + +#~ msgid "failed to stat file" +#~ msgstr "erro obtendo informações do arquivo" + +#~ msgid "option structure allocation failed" +#~ msgstr "erro na alocação da estrutura de opções" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "erro na alocação da estrutura de opções argv" + +#~ msgid "failed to get terminal name" +#~ msgstr "erro ao ler o nome do terminal" + +#~ msgid "lock attempt failed" +#~ msgstr "tentativa de bloqueio falhou" + +#~ msgid "failed to open terminal" +#~ msgstr "erro abrindo o terminal" + +#~ msgid "failed to seek to start of output" +#~ msgstr "não pode mover para o início da produção" + +#~ msgid "failed to read file" +#~ msgstr "erro lendo o arquivo" + +#~ msgid "failed to stat output file" +#~ msgstr "erro obtendo informações do arquivo de saída" + +#~ msgid "read failed" +#~ msgstr "erro de leitura" + +#~ msgid "file is not seekable" +#~ msgstr "não pode mover dentro do arquivo" + +#~ msgid "failed to seek past error" +#~ msgstr "não pode ir além do erro" + +#~ msgid "select call failed" +#~ msgstr "erro na chamada da função select" diff --git a/po/ru.po b/po/ru.po index 55211c8..c0d1ccb 100644 --- a/po/ru.po +++ b/po/ru.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2025-01-15 19:08+0000\n" "Last-Translator: 0ko <0ko@users.noreply.translate.codeberg.org>\n" "Language-Team: Russian \n" @@ -298,131 +298,102 @@ msgstr "Сообщайте о проблемах на: %s" msgid "(input)" msgstr "(ввод)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "ошибка выделения памяти" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "ожидался ИД процесса или пара ИДпр:ДФ" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "неправильный ИД процесса" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "не удалось получить информацию о файле" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "является каталогом" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "не удалось создать имя файла sysfs" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "не удалось узнать размер файла sysfs" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "не удалось открыть блочное устройство" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "не удалось определить размер блочного устройства" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "не удалось выделить память для структуры опций" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "не удалось выделить память для структуры опций argv" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "число не распознано" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "ожидалось целое число" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "ожидалось число" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Выполните `%s --help' для получения подробностей." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Выполните `%s -h' для получения подробностей." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" msgstr "" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "удалённое управление невозможно при отслеживании дескрипторов файлов" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "передача файлов невозможна при отслеживании дескрипторов файлов" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "невозможно на системах без /proc/self/fdinfo" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -444,25 +415,13 @@ msgstr "" msgid "Project web site" msgstr "Веб-сайт проекта" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "не удалось получить имя терминала" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "не удалось открыть блокирующий файл" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "попытка блокировки не удалась" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "не удалось открыть терминал" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "прервано по сигналу" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -472,39 +431,23 @@ msgstr "" msgid "yzafpnum KMGTPEZY" msgstr "" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "не удалось выделить память для буфера" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "ошибка закрытия файла" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "не удалось закрыть файл" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "файл ввода также используется и для вывода" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "не удалось прочесть файл" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "не удалось получить информацию о выходном файле" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "пути исходного и выходного файлов одинаковы" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(нет)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(стд. ввод)" @@ -572,61 +515,81 @@ msgstr "сообщение не получено" msgid "SA_SIGINFO not supported on this system" msgstr "Этой системой не поддерживается SA_SIGINFO" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "не удалось выделить память для структуры истории" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "не удалось выделить память для списка файлов" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "чтение не удалось" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "внимание: замечены ошибки чтения" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "не выделена память для буфера передачи" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "не удалось задать измеритель временного промежутка" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "не удалось очистить измеритель временного промежутка" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "запись не удалась" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "запрос выборки не удался" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "ошибка записи" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "не является обычным файлом или блочным устройством" +#~ msgid "failed to stat file" +#~ msgstr "не удалось получить информацию о файле" + +#~ msgid "is a directory" +#~ msgstr "является каталогом" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "не удалось создать имя файла sysfs" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "не удалось узнать размер файла sysfs" + +#~ msgid "failed to open block device" +#~ msgstr "не удалось открыть блочное устройство" + +#~ msgid "failed to determine size of block device" +#~ msgstr "не удалось определить размер блочного устройства" + +#~ msgid "option structure allocation failed" +#~ msgstr "не удалось выделить память для структуры опций" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "не удалось выделить память для структуры опций argv" + +#~ msgid "failed to get terminal name" +#~ msgstr "не удалось получить имя терминала" + +#~ msgid "lock attempt failed" +#~ msgstr "попытка блокировки не удалась" + +#~ msgid "failed to open terminal" +#~ msgstr "не удалось открыть терминал" + +#~ msgid "failed to read file" +#~ msgstr "не удалось прочесть файл" + +#~ msgid "failed to stat output file" +#~ msgstr "не удалось получить информацию о выходном файле" + +#~ msgid "history structure allocation failed" +#~ msgstr "не удалось выделить память для структуры истории" + +#~ msgid "file list allocation failed" +#~ msgstr "не удалось выделить память для списка файлов" + +#~ msgid "read failed" +#~ msgstr "чтение не удалось" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "не выделена память для буфера передачи" + +#~ msgid "failed to set interval timer" +#~ msgstr "не удалось задать измеритель временного промежутка" + +#~ msgid "failed to clear interval timer" +#~ msgstr "не удалось очистить измеритель временного промежутка" + +#~ msgid "select call failed" +#~ msgstr "запрос выборки не удался" + #~ msgid "PID[:FD]" #~ msgstr "ИДпр[:FD]" diff --git a/po/tr.po b/po/tr.po index e52779d..cb4e5b8 100644 --- a/po/tr.po +++ b/po/tr.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: pv 1.8.14\n" "Report-Msgid-Bugs-To: https://codeberg.org/ivarch/pv/issues\n" -"POT-Creation-Date: 2026-05-16 16:13+0100\n" +"POT-Creation-Date: 2026-05-16 23:53+0100\n" "PO-Revision-Date: 2025-10-05 20:09+0000\n" "Last-Translator: Oğuz Ersen \n" "Language-Team: Turkish \n" @@ -298,93 +298,64 @@ msgstr "Lütfen hataları şu adrese bildirin: %s" msgid "(input)" msgstr "(giriş)" -#: src/main/main.c:381 src/main/options.c:1366 +#: src/main/main.c:381 src/main/options.c:1355 msgid "a command to run must be specified" msgstr "" -#: src/main/main.c:704 -msgid "state allocation failed" -msgstr "durum tahsisi başarısız oldu" +#: src/main/main.c:704 src/main/options.c:756 src/main/options.c:776 +#: src/pv/display.c:1082 src/pv/state.c:45 src/pv/state.c:894 +#: src/pv/state.c:906 src/pv/state.c:942 src/pv/transfer.c:914 +#: src/pv/transfer.c:1081 src/pv/transfer.c:1408 +msgid "memory allocation failure" +msgstr "bellek ayırma başarısız" #: src/main/options.c:418 msgid "list files may not contain @ lines" msgstr "" -#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:911 +#: src/main/options.c:438 src/main/options.c:440 src/main/options.c:900 msgid "process ID or pid:fd pair expected" msgstr "süreç kimliği (ID) veya pid:fd çifti bekleniyor" -#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:918 +#: src/main/options.c:449 src/main/options.c:451 src/main/options.c:907 msgid "invalid process ID" msgstr "geçersiz süreç kimliği (ID)" -#: src/main/options.c:538 src/pv/file.c:411 -msgid "failed to stat file" -msgstr "dosya statüsünde başarısız oldu" - -#: src/main/options.c:581 -msgid "is a directory" -msgstr "bir dizindir" - -#: src/main/options.c:610 -msgid "failed to generate sysfs filename" -msgstr "sysfs dosya adı oluşturulamadı" - -#: src/main/options.c:631 -msgid "failed to read sysfs size file" -msgstr "sysfs boyut dosyası okunamadı" - -#: src/main/options.c:650 -msgid "failed to open block device" -msgstr "blok aygıtı açılamadı" - -#: src/main/options.c:659 -msgid "failed to determine size of block device" -msgstr "blok aygıtının boyutu belirlenemedi" - -#: src/main/options.c:767 -msgid "option structure allocation failed" -msgstr "seçenek yapısı tahsisi başarısız oldu" - -#: src/main/options.c:787 -msgid "option structure argv allocation failed" -msgstr "seçenek yapısı argv tahsisi başarısız oldu" - -#: src/main/options.c:839 +#: src/main/options.c:828 msgid "numeric value not understood" msgstr "sayısal değer anlaşılmadı" -#: src/main/options.c:853 +#: src/main/options.c:842 msgid "integer argument expected" msgstr "tamsayı bağımsız değişkeni bekleniyor" -#: src/main/options.c:863 +#: src/main/options.c:852 msgid "numeric argument expected" msgstr "sayısal bağımsız değişken bekleniyor" -#: src/main/options.c:874 +#: src/main/options.c:863 msgid "missing filename" msgstr "" -#: src/main/options.c:900 +#: src/main/options.c:889 msgid "missing process name" msgstr "" -#: src/main/options.c:1189 +#: src/main/options.c:1178 msgid "invalid side specification" msgstr "" -#: src/main/options.c:1204 +#: src/main/options.c:1193 #, c-format msgid "Try `%s --help' for more information." msgstr "Daha fazla bilgi için `%s --help' seçeneğini deneyin." -#: src/main/options.c:1206 +#: src/main/options.c:1195 #, c-format msgid "Try `%s -h' for more information." msgstr "Daha fazla bilgi için `%s -h' seçeneğini deneyin." -#: src/main/options.c:1238 +#: src/main/options.c:1227 msgid "" "cannot use line mode or transfer modifier options when watching file " "descriptors" @@ -392,39 +363,39 @@ msgstr "" "dosya tanımlayıcılarını izlerken satır modu veya aktarım değiştirici " "seçeneklerini kullanamaz" -#: src/main/options.c:1246 +#: src/main/options.c:1235 msgid "cannot use cursor positioning when watching file descriptors" msgstr "dosya tanımlayıcılarını izlerken imleç konumlandırmayı kullanamaz" -#: src/main/options.c:1254 +#: src/main/options.c:1243 msgid "cannot use remote control when watching file descriptors" msgstr "dosya tanımlayıcılarını izlerken uzaktan kumandayı kullanamaz" -#: src/main/options.c:1262 +#: src/main/options.c:1251 msgid "cannot use remote query when watching file descriptors" msgstr "" -#: src/main/options.c:1270 +#: src/main/options.c:1259 msgid "cannot transfer files when watching file descriptors" msgstr "dosya tanımlayıcıları izlenirken dosya aktarılamıyor" -#: src/main/options.c:1294 +#: src/main/options.c:1283 msgid "not available on systems without /proc/self/fdinfo" msgstr "/proc/self/fdinfo olmayan sistemlerde kullanılamaz" -#: src/main/options.c:1305 +#: src/main/options.c:1294 msgid "cannot use remote control and remote query together" msgstr "" -#: src/main/options.c:1332 +#: src/main/options.c:1321 msgid "monitor mode cannot be specified with this option" msgstr "" -#: src/main/options.c:1344 +#: src/main/options.c:1333 msgid "monitor mode cannot be used with store-and-forward" msgstr "" -#: src/main/options.c:1355 +#: src/main/options.c:1344 msgid "files cannot be specified with this option" msgstr "" @@ -445,25 +416,13 @@ msgstr "Yasaların izin verdiği ölçüde GARANTİ YOKTUR." msgid "Project web site" msgstr "Proje web sitesi" -#: src/pv/cursor.c:73 -msgid "failed to get terminal name" -msgstr "terminal adı alınamadı" - -#: src/pv/cursor.c:102 src/pv/cursor.c:129 +#: src/pv/cursor.c:108 src/pv/cursor.c:135 msgid "failed to open lock file" msgstr "lock dosyası açılamadı" -#: src/pv/cursor.c:162 -msgid "lock attempt failed" -msgstr "kilit denemesi başarısız oldu" - -#: src/pv/cursor.c:437 -msgid "failed to open terminal" -msgstr "terminal açılamadı" - -#: src/pv/cursor.c:784 src/pv/cursor.c:786 -msgid "exiting due to signal" -msgstr "" +#: src/pv/cursor.c:790 src/pv/cursor.c:792 +msgid "interrupted by a signal" +msgstr "bir işaret tarafından kesildi" #: src/pv/display.c:311 msgid "yzafpnum kMGTPEZY" @@ -473,39 +432,23 @@ msgstr "yzafpnum kMGTPEZY" msgid "yzafpnum KMGTPEZY" msgstr "yzafpnum KMGTPEZY" -#: src/pv/display.c:1082 src/pv/state.c:942 src/pv/transfer.c:1395 -msgid "buffer allocation failed" -msgstr "arabellek tahsisi başarısız oldu" - #: src/pv/file.c:81 msgid "/dev/null is not usable" msgstr "" -#: src/pv/file.c:217 -msgid "failed to seek to start of output" -msgstr "çıktının başlangıcına ulaşılamadı" +#: src/pv/file.c:371 +msgid "error closing file" +msgstr "dosya kapatılırken hata" -#: src/pv/file.c:372 -msgid "failed to close file" -msgstr "dosya kapatılamadı" +#: src/pv/file.c:438 +msgid "input file is also the output" +msgstr "girdi dosyası aynı zamanda çıkış" -#: src/pv/file.c:404 -msgid "failed to read file" -msgstr "dosya okunamadı" - -#: src/pv/file.c:418 -msgid "failed to stat output file" -msgstr "çıktı dosyası stat edilemedi" - -#: src/pv/file.c:439 -msgid "input file is output file" -msgstr "girdi dosyası çıktı dosyasıdır" - -#: src/pv/file.c:580 +#: src/pv/file.c:579 msgid "(none)" msgstr "(yok)" -#: src/pv/file.c:582 +#: src/pv/file.c:581 msgid "(stdin)" msgstr "(stdin)" @@ -573,62 +516,97 @@ msgstr "mesaj alınamadı" msgid "SA_SIGINFO not supported on this system" msgstr "SA_SIGINFO bu sistemde desteklenmiyor" -#: src/pv/state.c:45 -msgid "history structure allocation failed" -msgstr "geçmiş yapısı tahsisi başarısız oldu" - -#: src/pv/state.c:894 src/pv/state.c:906 -msgid "file list allocation failed" -msgstr "dosya listesi tahsisi başarısız oldu" - -#: src/pv/transfer.c:742 -msgid "read failed" -msgstr "okuma başarısız" - #: src/pv/transfer.c:757 msgid "warning: read errors detected" msgstr "uyarı: okuma hataları tespit edildi" -#: src/pv/transfer.c:769 -msgid "file is not seekable" -msgstr "dosya aranabilir değil" - -#: src/pv/transfer.c:846 -msgid "failed to seek past error" -msgstr "geçmiş hatayı aramakta başarısız oldu" - #: src/pv/transfer.c:862 msgid "skipped past read error" msgstr "geçmiş okuma hatası atlandı" -#: src/pv/transfer.c:909 -msgid "no transfer buffer allocated" -msgstr "aktarım arabelleği ayrılmamış" - -#: src/pv/transfer.c:997 -msgid "failed to set interval timer" -msgstr "aralık zamanlayıcısı ayarlanamadı" - -#: src/pv/transfer.c:1023 -msgid "failed to clear interval timer" -msgstr "aralık zamanlayıcısı temizlenemedi" - -#: src/pv/transfer.c:1070 -msgid "line position buffer allocation failed" -msgstr "satır konumu arabellek tahsisi başarısız oldu" - -#: src/pv/transfer.c:1259 -msgid "write failed" -msgstr "yazma başarısız" - -#: src/pv/transfer.c:1495 -msgid "select call failed" -msgstr "seçme çağrısı başarısız oldu" +#: src/pv/transfer.c:1272 +msgid "write error" +msgstr "yazma hatası" #: src/pv/watchpid.c:160 src/pv/watchpid.c:288 msgid "not a regular file or block device" msgstr "normal bir dosya veya blok aygıtı değil" +#~ msgid "state allocation failed" +#~ msgstr "durum tahsisi başarısız oldu" + +#~ msgid "failed to stat file" +#~ msgstr "dosya statüsünde başarısız oldu" + +#~ msgid "is a directory" +#~ msgstr "bir dizindir" + +#~ msgid "failed to generate sysfs filename" +#~ msgstr "sysfs dosya adı oluşturulamadı" + +#~ msgid "failed to read sysfs size file" +#~ msgstr "sysfs boyut dosyası okunamadı" + +#~ msgid "failed to open block device" +#~ msgstr "blok aygıtı açılamadı" + +#~ msgid "failed to determine size of block device" +#~ msgstr "blok aygıtının boyutu belirlenemedi" + +#~ msgid "option structure allocation failed" +#~ msgstr "seçenek yapısı tahsisi başarısız oldu" + +#~ msgid "option structure argv allocation failed" +#~ msgstr "seçenek yapısı argv tahsisi başarısız oldu" + +#~ msgid "failed to get terminal name" +#~ msgstr "terminal adı alınamadı" + +#~ msgid "lock attempt failed" +#~ msgstr "kilit denemesi başarısız oldu" + +#~ msgid "failed to open terminal" +#~ msgstr "terminal açılamadı" + +#~ msgid "failed to seek to start of output" +#~ msgstr "çıktının başlangıcına ulaşılamadı" + +#~ msgid "failed to read file" +#~ msgstr "dosya okunamadı" + +#~ msgid "failed to stat output file" +#~ msgstr "çıktı dosyası stat edilemedi" + +#~ msgid "history structure allocation failed" +#~ msgstr "geçmiş yapısı tahsisi başarısız oldu" + +#~ msgid "file list allocation failed" +#~ msgstr "dosya listesi tahsisi başarısız oldu" + +#~ msgid "read failed" +#~ msgstr "okuma başarısız" + +#~ msgid "file is not seekable" +#~ msgstr "dosya aranabilir değil" + +#~ msgid "failed to seek past error" +#~ msgstr "geçmiş hatayı aramakta başarısız oldu" + +#~ msgid "no transfer buffer allocated" +#~ msgstr "aktarım arabelleği ayrılmamış" + +#~ msgid "failed to set interval timer" +#~ msgstr "aralık zamanlayıcısı ayarlanamadı" + +#~ msgid "failed to clear interval timer" +#~ msgstr "aralık zamanlayıcısı temizlenemedi" + +#~ msgid "line position buffer allocation failed" +#~ msgstr "satır konumu arabellek tahsisi başarısız oldu" + +#~ msgid "select call failed" +#~ msgstr "seçme çağrısı başarısız oldu" + #~ msgid "process list allocation failed" #~ msgstr "işlem listesi tahsisi başarısız oldu" diff --git a/src/main/main.c b/src/main/main.c index 31613af..2456b87 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -701,7 +701,7 @@ int main(int argc, char **argv) * mitigated by the fact that each string is only translated * once. */ - pv_perror("%s", _("state allocation failed")); + pv_perror("%s", _("memory allocation failure")); opts_free(opts); debug("%s: %d", "exiting with status", PV_ERROREXIT_MEMORY); pv_set_error_prefix(NULL); diff --git a/src/main/options.c b/src/main/options.c index 9c5be4b..126c52d 100644 --- a/src/main/options.c +++ b/src/main/options.c @@ -534,10 +534,8 @@ static bool opts_use_size_of_file(opts_t opts, const char *size_file) stat_rc = stat(size_file, &sb); if (0 != stat_rc) { - /*@-mustfreefresh@ *//* see above */ - pv_perror("%s: %s", size_file, _("failed to stat file")); + pv_perror("%s", size_file); return false; - /*@+mustfreefresh@ */ } /* This was a regular file - use its size and return. */ @@ -577,10 +575,9 @@ static bool opts_use_size_of_file(opts_t opts, const char *size_file) #else /* HAVE_NFTW */ /* This was a directory - report an error. */ if (S_ISDIR((mode_t) (sb.st_mode))) { - /*@-mustfreefresh@ *//* see above */ - pv_error("%s: %s", size_file, _("is a directory")); + errno = EISDIR; + pv_perror("%s", size_file); return false; - /*@+mustfreefresh@ */ } #endif /* !HAVE_NFTW */ @@ -606,10 +603,8 @@ static bool opts_use_size_of_file(opts_t opts, const char *size_file) if (pv_snprintf (sysfs_filename, sizeof(sysfs_filename), "/sys/dev/block/%u:%u/size", major(sb.st_rdev), minor(sb.st_rdev)) < 0) { - /*@-mustfreefresh@ *//* see above */ - pv_perror("%s: %s", size_file, _("failed to generate sysfs filename")); + pv_perror("%s", size_file); return false; - /*@+mustfreefresh@ */ } sysfs_fptr = fopen(sysfs_filename, "r"); /* flawfinder: ignore */ @@ -627,11 +622,9 @@ static bool opts_use_size_of_file(opts_t opts, const char *size_file) } /* Read not successful - report the error and return. */ /* NB fclose() comes after the error report, to retain errno. */ - /*@-mustfreefresh@ *//* see above */ - pv_perror("%s: %s", size_file, _("failed to read sysfs size file")); + pv_perror("%s: %s", size_file, sysfs_filename); (void) fclose(sysfs_fptr); return false; - /*@+mustfreefresh@ */ } #endif /* CAN_BUILD_SYSFS_FILENAME */ @@ -646,21 +639,17 @@ static bool opts_use_size_of_file(opts_t opts, const char *size_file) */ if (device_fd < 0) { - /*@-mustfreefresh@ *//* see above */ - pv_perror("%s: %s", size_file, _("failed to open block device")); + pv_perror("%s", size_file); return false; - /*@+mustfreefresh@ */ } device_size = (off_t) lseek(device_fd, 0, SEEK_END); if (device_size < 0) { - /*@-mustfreefresh@ *//* see above */ - pv_perror("%s: %s", size_file, _("failed to determine size of block device")); + pv_perror("%s", size_file); /* NB close() after reporting error, to preserve errno. */ (void) close(device_fd); return false; - /*@+mustfreefresh@ */ } (void) close(device_fd); @@ -762,9 +751,9 @@ opts_t opts_parse(unsigned int argc, char **argv) char *leafptr; opts = calloc(1, sizeof(*opts)); - if (!opts) { + if (NULL == opts) { /*@-mustfreefresh@ *//* see above */ - pv_perror("%s", _("option structure allocation failed")); + pv_perror("%s", _("memory allocation failure")); return NULL; /*@+mustfreefresh@ */ } @@ -784,7 +773,7 @@ opts_t opts_parse(unsigned int argc, char **argv) opts->argv = calloc((size_t) (argc + 1), sizeof(char *)); if (NULL == opts->argv) { /*@-mustfreefresh@ *//* see above */ - pv_perror("%s", _("option structure argv allocation failed")); + pv_perror("%s", _("memory allocation failure")); free(opts); /* can't call opts_free as argv is not set */ return NULL; /*@+mustfreefresh@ */ diff --git a/src/pv/cursor.c b/src/pv/cursor.c index 523dfbd..02a5c86 100644 --- a/src/pv/cursor.c +++ b/src/pv/cursor.c @@ -70,7 +70,13 @@ static void pv_crs_open_lockfile(pvcursorstate_t cursor, readonly_pvcontrol_t co ttydev = pv_strdup(ttyname(fd)); if (NULL == ttydev) { if (!control->force) { - pv_error("%s", _("failed to get terminal name")); + /* + * Error not translated as this should never be + * reached, since ttyname() will have been called + * earlier, and if it failed, cursor positioning + * would have been turned off. + */ + pv_perror("%s", "ttyname"); } /* * If the terminal name is unknown, then neither IPC nor a @@ -159,7 +165,7 @@ static void pv_crs_lock(pvcursorstate_t cursor, readonly_pvcontrol_t control, in lock_fd = cursor->lock_fd; } } else { - pv_perror("%s", _("lock attempt failed")); + pv_perror("%s", NULL == cursor->lock_file ? "(tty)" : cursor->lock_file); return; } } @@ -434,7 +440,7 @@ void pv_crs_init(pvcursorstate_t cursor, readonly_pvcontrol_t control, pvtransie */ if (terminalfd < 0) { - pv_perror("%s: %s", ttyfile, _("failed to open terminal")); + pv_perror("%s", ttyfile); cursor->disable = true; return; } @@ -781,9 +787,9 @@ void pv_report_signal_interrupt(int signum) /*@+unrecog @ */ #endif if (NULL != signal_name) { - pv_error("%s: %s", _("exiting due to signal"), signal_name); + pv_error("%s: %s", _("interrupted by a signal"), signal_name); } else { - pv_error("%s", _("exiting due to signal")); + pv_error("%s", _("interrupted by a signal")); } } } diff --git a/src/pv/display.c b/src/pv/display.c index 2f2ddbe..0c9495b 100644 --- a/src/pv/display.c +++ b/src/pv/display.c @@ -1079,7 +1079,7 @@ static bool pv_format(pvprogramstatus_t status, readonly_pvcontrol_t control, re new_buffer = malloc(new_size + 16); if (NULL == new_buffer) { - pv_perror("%s", _("buffer allocation failed")); + pv_perror("%s", _("memory allocation failure")); status->exit_status |= PV_ERROREXIT_MEMORY; display->display_buffer = NULL; return false; diff --git a/src/pv/file.c b/src/pv/file.c index d6f8615..914fd7c 100644 --- a/src/pv/file.c +++ b/src/pv/file.c @@ -212,9 +212,8 @@ static off_t pv_calc_total_bytes(pvstate_t state) total = end_position; } if (lseek(state->control.output_fd, 0, SEEK_SET) != 0) { - pv_perror("%s: %s", - NULL == state->control.output_name ? "(null)" : state->control.output_name, - _("failed to seek to start of output")); + pv_perror("%s", + NULL == state->control.output_name ? "(null)" : state->control.output_name); state->status.exit_status |= PV_ERROREXIT_ACCESS; } /* @@ -369,7 +368,7 @@ int pv_next_file(pvstate_t state, unsigned int filenum, int oldfd) if (oldfd >= 0) { if (0 != close(oldfd)) { - pv_perror("%s", _("failed to close file")); + pv_perror("%s: %s", pv_current_file_name(state), _("error closing file")); state->status.exit_status |= PV_ERROREXIT_TRANSITION; return -1; } @@ -401,21 +400,21 @@ int pv_next_file(pvstate_t state, unsigned int filenum, int oldfd) * open symlinks would be counterintuitive. */ if (fd < 0) { - pv_perror("%s: %s", next_filename, _("failed to read file")); + pv_perror("%s", next_filename); state->status.exit_status |= PV_ERROREXIT_ACCESS; return -1; } } if (0 != fstat(fd, &isb)) { - pv_perror("%s: %s", NULL == next_filename ? "-" : next_filename, _("failed to stat file")); + pv_perror("%s", NULL == next_filename ? "-" : next_filename); (void) close(fd); state->status.exit_status |= PV_ERROREXIT_ACCESS; return -1; } if (0 != fstat(state->control.output_fd, &osb)) { - pv_perror("%s", _("failed to stat output file")); + pv_perror("%s", NULL == state->control.output_name ? "(null)" : state->control.output_name); (void) close(fd); state->status.exit_status |= PV_ERROREXIT_ACCESS; return -1; @@ -436,7 +435,7 @@ int pv_next_file(pvstate_t state, unsigned int filenum, int oldfd) input_file_is_output = false; if (input_file_is_output) { - pv_error("%s: %s", _("input file is output file"), NULL == next_filename ? "-" : next_filename); + pv_error("%s: %s", _("input file is also the output"), NULL == next_filename ? "-" : next_filename); (void) close(fd); state->status.exit_status |= PV_ERROREXIT_OUROBOROS; return -1; diff --git a/src/pv/state.c b/src/pv/state.c index 1a349de..181fc4d 100644 --- a/src/pv/state.c +++ b/src/pv/state.c @@ -42,7 +42,7 @@ static void pv_alloc_calc_history(pvtransfercalc_t calc) * unavoidable memory leak warnings, but they are mitigated * by the fact that each string is only translated once. */ - pv_perror("%s", _("history structure allocation failed")); + pv_perror("%s", _("memory allocation failure")); /*@+mustfreefresh@ */ return; } @@ -891,7 +891,7 @@ void pv_state_inputfiles(pvstate_t state, unsigned int input_file_count, const c new_array = calloc((size_t) (input_file_count + 1), sizeof(char *)); if (NULL == new_array) { /*@-mustfreefresh@ *//* see similar _() issue above */ - pv_perror("%s", _("file list allocation failed")); + pv_perror("%s", _("memory allocation failure")); /*@+mustfreefresh@ */ return; } @@ -903,7 +903,7 @@ void pv_state_inputfiles(pvstate_t state, unsigned int input_file_count, const c new_string = pv_strdup(input_files[file_idx]); if (NULL == new_string) { /*@-mustfreefresh@ *//* see similar _() issue above */ - pv_perror("%s", _("file list allocation failed")); + pv_perror("%s", _("memory allocation failure")); /*@+mustfreefresh@ */ return; } @@ -939,7 +939,7 @@ void pv_state_watchfds(pvstate_t state, unsigned int watchfd_count, const pid_t new_array = malloc((1 + watchfd_count) * sizeof(*new_array)); if (NULL == new_array) { /*@-mustfreefresh@ *//* see similar _() issue above */ - pv_perror("%s", _("buffer allocation failed")); + pv_perror("%s", _("memory allocation failure")); /*@+mustfreefresh@ */ return; } diff --git a/src/pv/transfer.c b/src/pv/transfer.c index 11132a0..d609a6b 100644 --- a/src/pv/transfer.c +++ b/src/pv/transfer.c @@ -739,7 +739,7 @@ static bool pv__transfer_read(pvstate_t state, int fd, bool *eof_in, bool *eof_o * the end of the file was reached. */ if (do_not_skip_errors) { - pv_perror("%s: %s", pv_current_file_name(state), _("read failed")); + pv_perror("%s", pv_current_file_name(state)); *eof_in = true; if (state->transfer.write_position >= state->transfer.read_position) { *eof_out = true; @@ -765,8 +765,8 @@ static bool pv__transfer_read(pvstate_t state, int fd, bool *eof_in, bool *eof_o * report the error and behave as if the end of input had been * reached. */ - if (0 > orig_offset) { - pv_perror("%s: %s", pv_current_file_name(state), _("file is not seekable")); + if (orig_offset < 0) { + pv_perror("%s", pv_current_file_name(state)); *eof_in = true; if (state->transfer.write_position >= state->transfer.read_position) { *eof_out = true; @@ -843,7 +843,7 @@ static bool pv__transfer_read(pvstate_t state, int fd, bool *eof_in, bool *eof_o * file was reached. */ if (EINVAL != errno) { - pv_perror("%s: %s", pv_current_file_name(state), _("failed to seek past error")); + pv_perror("%s", pv_current_file_name(state)); } } else { amount_skipped = skip_offset - orig_offset; @@ -906,7 +906,12 @@ static bool pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, lon size_t write_check_position, write_end_position; if (NULL == state->transfer.transfer_buffer) { - pv_error("%s", _("no transfer buffer allocated")); + /* + * Report it as a generic allocation error, since this + * condition should never be reached due to checks made on + * the path to this function. + */ + pv_error("%s", _("memory allocation failure")); state->status.exit_status |= PV_ERROREXIT_MEMORY; *eof_out = true; state->transfer.written = -1; @@ -994,7 +999,12 @@ static bool pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, lon (long) (new_timer.it_value.tv_usec)); if (0 != setitimer(ITIMER_REAL, &new_timer, NULL)) { - pv_perror("%s", _("failed to set interval timer")); + /* + * Record failure only as debugging information, + * since if this call failed, it's not actionable by + * the user and would only clutter the display. + */ + debug("%s: %s", "setitimer (set) failed", strerror(errno)); } #else /* ! HAVE_SETITIMER */ @@ -1020,7 +1030,8 @@ static bool pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, lon new_timer.it_value.tv_sec = 0; new_timer.it_value.tv_usec = 0; if (0 != setitimer(ITIMER_REAL, &new_timer, NULL)) { - pv_perror("%s", _("failed to clear interval timer")); + /* Debug output only, as above. */ + debug("%s: %s", "setitimer (clear) failed", strerror(errno)); } /*@+unrecog@ */ @@ -1067,7 +1078,7 @@ static bool pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, lon state->transfer.line_positions = calloc((size_t) (state->transfer.line_positions_capacity), sizeof(off_t)); if (NULL == state->transfer.line_positions) { - pv_perror("%s", _("line position buffer allocation failed")); + pv_perror("%s", _("memory allocation failure")); } /*@+mustfreeonly@ */ /* @@ -1256,7 +1267,9 @@ static bool pv__transfer_write(pvstate_t state, bool *eof_in, bool *eof_out, lon * adjust the exit status, and mark the output as EOF. */ - pv_error("%s: %s", _("write failed"), strerror(write_errno)); + errno = write_errno; + pv_perror("%s: %s", NULL == state->control.output_name ? "(null)" : state->control.output_name, + _("write error")); state->status.exit_status |= PV_ERROREXIT_TRANSFER; *eof_out = true; state->transfer.written = -1; @@ -1392,7 +1405,7 @@ ssize_t pv_transfer(pvstate_t state, int fd, bool *eof_in, bool *eof_out, off_t state->transfer.transfer_buffer = pv__allocate_aligned_buffer(state->control.output_fd, fd, state->control.target_buffer_size + 32); if (NULL == state->transfer.transfer_buffer) { - pv_perror("%s", _("buffer allocation failed")); + pv_perror("%s", _("memory allocation failure")); state->status.exit_status |= PV_ERROREXIT_MEMORY; return -1; } @@ -1492,7 +1505,7 @@ ssize_t pv_transfer(pvstate_t state, int fd, bool *eof_in, bool *eof_out, off_t /* * Any other error is reported and causes an early return. */ - pv_perror("%s: %s", pv_current_file_name(state), _("select call failed")); + pv_perror("%s", pv_current_file_name(state)); state->status.exit_status |= PV_ERROREXIT_TRANSFER;