mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-11-18 17:34:20 +00:00
print size_t values with %zu
size_t is unsigned int on 32-bit systems such as Raspberry Pi OS, where %ld gives -Wformat warnings and reads the wrong argument size. The translations change along with the strings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a137e1aee7
commit
657ef6673d
5 files changed
+15
-15
No files matched your search
@@ -77,7 +77,7 @@ msgstr ""
|
||||
|
||||
#: src/libptouch.c:252
|
||||
#, fuzzy, c-format
|
||||
msgid "write error: could send only %i of %ld bytes\n"
|
||||
msgid "write error: could send only %i of %zu bytes\n"
|
||||
msgstr "Lesefehler: %i anstatt 32 bytes empfangen\n"
|
||||
|
||||
#: src/libptouch.c:302
|
||||
@@ -337,12 +337,12 @@ msgstr "ptouch_getstatus() fehlgeschlagen\n"
|
||||
|
||||
#: src/ptouch-print.c:789
|
||||
#, fuzzy, c-format
|
||||
msgid "printer has %d dpi, maximum printing width is %ld px\n"
|
||||
msgid "printer has %d dpi, maximum printing width is %zu px\n"
|
||||
msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n"
|
||||
|
||||
#: src/ptouch-print.c:790
|
||||
#, fuzzy, c-format
|
||||
msgid "maximum printing width for this tape is %ldpx\n"
|
||||
msgid "maximum printing width for this tape is %zupx\n"
|
||||
msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n"
|
||||
|
||||
#: src/ptouch-print.c:815
|
||||
@@ -361,7 +361,7 @@ msgid "ptouch_finalize(%d) failed\n"
|
||||
msgstr "ptouch_finalize(%d) fehlgeschlagen\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#~ msgid "maximum printing width for this printer is %ldpx\n"
|
||||
#~ msgid "maximum printing width for this printer is %zupx\n"
|
||||
#~ msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n"
|
||||
|
||||
#, c-format
|
||||
|
||||
Reference in new issue
Block a user