From d7d97eede8353f0f56dd394c715aacfd81ab1e7d Mon Sep 17 00:00:00 2001 From: Dominic Radermacher Date: Sun, 3 Aug 2025 14:21:56 +0200 Subject: [PATCH] fix gettext.cmake --- cmake/gettext.cmake | 64 +++++++++---------- po/de.po | 140 ++++++++++++++++++++++++++++++------------ po/en.po | 140 ++++++++++++++++++++++++++++++------------ po/ptouch.pot | 146 +++++++++++++++++++++++++++++++------------- 4 files changed, 333 insertions(+), 157 deletions(-) diff --git a/cmake/gettext.cmake b/cmake/gettext.cmake index 21d6155..c48fe66 100644 --- a/cmake/gettext.cmake +++ b/cmake/gettext.cmake @@ -1,17 +1,15 @@ # Utilize gettext multilingual internationalization services if(Gettext_FOUND) - add_custom_target( - pot-update - ALL - DEPENDS ${CMAKE_SOURCE_DIR}/po/ptouch.pot - ) - add_dependencies(pot-update git-version) - # generate pot files using xgettext + find_program(GETTEXT_XGETTEXT_EXECUTABLE xgettext) if(GETTEXT_XGETTEXT_EXECUTABLE) + add_custom_target( + pot-update + ALL + DEPENDS ${CMAKE_SOURCE_DIR}/po/ptouch.pot + ) + file(GLOB_RECURSE C_FILES RELATIVE ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/src/*.c) - file(STRINGS ${CMAKE_BINARY_DIR}/version.h VERSION_LINE REGEX "VERSION") - string(REGEX MATCH "\".*\"$" PVERSION ${VERSION_LINE}) add_custom_command( TARGET pot-update PRE_BUILD @@ -20,40 +18,38 @@ if(Gettext_FOUND) --keyword=N_ --force-po --package-name=${PROJECT_NAME} - --package-version=${PVERSION} --copyright-holder="Dominic Radermacher " --msgid-bugs-address="dominic@familie-radermacher.ch" --output ${CMAKE_SOURCE_DIR}/po/ptouch.pot ${C_FILES} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) - else() - message(DEBUG "Variable GETTEXT_XGETTEXT_EXECUTABLE not set") - endif() - # read available languages from LINGUAS file while ignoring comments - file(STRINGS po/LINGUAS LINGUAS REGEX "^[^#]") + # read available languages from LINGUAS file while ignoring comments + file(STRINGS po/LINGUAS LINGUAS REGEX "^[^#]") - # merge po files - if(GETTEXT_MSGMERGE_EXECUTABLE) - add_custom_target( - po-merge - ALL - DEPENDS ${CMAKE_SOURCE_DIR}/po/ptouch.pot - ) - add_dependencies(po-merge pot-update) - - foreach(LINGUA IN LISTS LINGUAS) - add_custom_command( - TARGET po-merge - PRE_BUILD - COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} - --update - --quiet - ${CMAKE_SOURCE_DIR}/po/${LINGUA}.po - ${CMAKE_SOURCE_DIR}/po/ptouch.pot + # merge po files + find_program(GETTEXT_MSGMERGE_EXECUTABLE msgmerge) + if(GETTEXT_MSGMERGE_EXECUTABLE) + add_custom_target( + po-merge + ALL + DEPENDS ${CMAKE_SOURCE_DIR}/po/ptouch.pot ) - endforeach() + add_dependencies(po-merge pot-update) + + foreach(LINGUA IN LISTS LINGUAS) + add_custom_command( + TARGET po-merge + PRE_BUILD + COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} + --update + --quiet + ${CMAKE_SOURCE_DIR}/po/${LINGUA}.po + ${CMAKE_SOURCE_DIR}/po/ptouch.pot + ) + endforeach() + endif() endif() # compile po files diff --git a/po/de.po b/po/de.po index d544bb1..9455dee 100644 --- a/po/de.po +++ b/po/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: ptouch-print 1.3.1\n" "Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n" -"POT-Creation-Date: 2024-05-23 22:20-0400\n" +"POT-Creation-Date: 2025-08-03 10:11+0200\n" "PO-Revision-Date: 2024-05-23 22:27-0400\n" "Last-Translator: dominic@familie-radermacher.ch\n" "Language-Team: German \n" @@ -19,117 +19,162 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.4.2\n" -#: src/libptouch.c:95 src/libptouch.c:99 src/libptouch.c:103 +#: src/libptouch.c:105 src/libptouch.c:109 src/libptouch.c:113 #, c-format msgid "out of memory\n" msgstr "Nicht genug Speicher\n" -#: src/libptouch.c:107 +#: src/libptouch.c:117 #, c-format msgid "libusb_init() failed\n" msgstr "ptouch_init() fehlgeschlagen\n" -#: src/libptouch.c:116 +#: src/libptouch.c:126 #, c-format msgid "failed to get device descriptor" msgstr "" -#: src/libptouch.c:122 +#: src/libptouch.c:132 #, c-format msgid "%s found on USB bus %d, device %d\n" msgstr "Drucker %s am USB Bus %d, Gerät %d gefunden\n" -#: src/libptouch.c:137 +#: src/libptouch.c:147 #, c-format msgid "libusb_open error :%s\n" msgstr "" -#: src/libptouch.c:143 +#: src/libptouch.c:153 #, c-format msgid "error while detaching kernel driver: %s\n" msgstr "" -#: src/libptouch.c:147 +#: src/libptouch.c:157 #, c-format msgid "interface claim error: %s\n" msgstr "" -#: src/libptouch.c:158 +#: src/libptouch.c:168 #, c-format msgid "" "No P-Touch printer found on USB (remember to put switch to position E)\n" msgstr "Kein P-Ptouch Drucker am USB gefunden (Schalter muss auf E stehen)\n" -#: src/libptouch.c:178 +#: src/libptouch.c:188 +#, c-format +msgid "debug: called ptouch_send() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:195 #, c-format msgid "write error: %s\n" msgstr "" -#: src/libptouch.c:182 +#: src/libptouch.c:199 #, fuzzy, c-format msgid "write error: could send only %i of %ld bytes\n" msgstr "Lesefehler: %i anstatt 32 bytes empfangen\n" -#: src/libptouch.c:302 +#: src/libptouch.c:248 +#, c-format +msgid "debug: called ptouch_info_cmd() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:290 +#, fuzzy, c-format +msgid "debug: called ptouch_rasterstart() with NULL ptdev\n" +msgstr "ptouch_rasterstart() fehlgeschlagen\n" + +#: src/libptouch.c:321 +#, c-format +msgid "debug: called ptouch_finalize() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:336 #, c-format msgid "debug: dumping raw status bytes\n" msgstr "" -#: src/libptouch.c:326 src/libptouch.c:362 +#: src/libptouch.c:355 +#, c-format +msgid "debug: called ptouch_getstatus() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:365 src/libptouch.c:401 #, c-format msgid "read error: %s\n" msgstr "" -#: src/libptouch.c:331 +#: src/libptouch.c:370 #, c-format msgid "timeout while waiting for status response\n" msgstr "" -#: src/libptouch.c:345 +#: src/libptouch.c:384 #, c-format msgid "unknown tape width of %imm, please report this.\n" msgstr "Unbekannte Schriftband breite (%i mm), bitte melden\n" -#: src/libptouch.c:351 +#: src/libptouch.c:390 #, c-format msgid "got only 16 bytes... wondering what they are:\n" msgstr "nur 16 bytes empfangen... mal gucken was die sind:\n" -#: src/libptouch.c:355 +#: src/libptouch.c:394 #, c-format msgid "read error: got %i instead of 32 bytes\n" msgstr "Lesefehler: %i anstatt 32 bytes empfangen\n" -#: src/libptouch.c:358 +#: src/libptouch.c:397 #, c-format msgid "strange status:\n" msgstr "Seltsamer Status:\n" -#: src/libptouch.c:360 +#: src/libptouch.c:399 #, c-format msgid "trying to flush junk\n" msgstr "" -#: src/libptouch.c:365 +#: src/libptouch.c:404 #, c-format msgid "got another %i bytes. now try again\n" msgstr "weitere %i bytes empfangen. probiere es nochmal.\n" +#: src/libptouch.c:411 +#, c-format +msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:420 +#, c-format +msgid "debug: called ptouch_get_max_width() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:432 +#, c-format +msgid "debug: called ptouch_sendraster() with NULL ptdev\n" +msgstr "" + #: src/ptouch-print.c:82 #, c-format msgid "nothing to print\n" msgstr "" -#: src/ptouch-print.c:89 +#: src/ptouch-print.c:90 #, c-format msgid "image is too large (%ipx x %ipx)\n" msgstr "Bild ist zu gross (%ipx x %ipx)\n" -#: src/ptouch-print.c:90 src/ptouch-print.c:556 +#: src/ptouch-print.c:91 #, c-format msgid "maximum printing width for this tape is %ipx\n" msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n" +#: src/ptouch-print.c:94 +#, fuzzy, c-format +msgid "image size (%ipx x %ipx)\n" +msgstr "Bild ist zu gross (%ipx x %ipx)\n" + #: src/ptouch-print.c:104 #, c-format msgid "ptouch_rasterstart() failed\n" @@ -140,92 +185,107 @@ msgstr "ptouch_rasterstart() fehlgeschlagen\n" msgid "send print information command\n" msgstr "" -#: src/ptouch-print.c:116 +#: src/ptouch-print.c:117 #, c-format -msgid "send PT-D460BT magic commands\n" +msgid "send PT-D460BT chain commands\n" msgstr "" #: src/ptouch-print.c:122 #, c-format +msgid "send PT-D460BT magic commands\n" +msgstr "" + +#: src/ptouch-print.c:128 +#, c-format msgid "send precut command\n" msgstr "" -#: src/ptouch-print.c:133 +#: src/ptouch-print.c:139 #, fuzzy, c-format msgid "ptouch_sendraster() failed\n" msgstr "ptouch_send() fehlgeschlagen\n" -#: src/ptouch-print.c:182 +#: src/ptouch-print.c:188 #, c-format msgid "writing image '%s' failed\n" msgstr "Schreiben der Bilddatei '%s' fehlgeschlagen\n" -#: src/ptouch-print.c:206 +#: src/ptouch-print.c:210 #, c-format msgid "debug: o baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:207 +#: src/ptouch-print.c:211 #, c-format msgid "debug: text baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:266 +#: src/ptouch-print.c:270 #, c-format msgid "render_text(): %i lines, font = '%s'\n" msgstr "" -#: src/ptouch-print.c:269 +#: src/ptouch-print.c:273 #, c-format msgid "warning: font config not available\n" msgstr "Warnung: fontconfig ist nicht verfügbar\n" -#: src/ptouch-print.c:273 +#: src/ptouch-print.c:277 #, c-format msgid "setting font size=%i\n" msgstr "setze Zeichensatzgrösse=%i\n" -#: src/ptouch-print.c:277 +#: src/ptouch-print.c:281 #, c-format msgid "could not estimate needed font size\n" msgstr "Konnte die notwendige Zeichensatzgrösse nicht bestimmen\n" -#: src/ptouch-print.c:284 +#: src/ptouch-print.c:288 #, c-format msgid "choosing font size=%i\n" msgstr "Wähle Zeichensatzgrösse %i\n" -#: src/ptouch-print.c:300 src/ptouch-print.c:328 +#: src/ptouch-print.c:304 src/ptouch-print.c:332 #, c-format msgid "error in gdImageStringFT: %s\n" msgstr "Fehler in Funktion gdImageStringFT(): %s\n" -#: src/ptouch-print.c:495 +#: src/ptouch-print.c:514 #, c-format msgid "ptouch-print version %s by Dominic Radermacher\n" msgstr "ptouch-print Version %s von Dominic Radermacher\n" -#: src/ptouch-print.c:526 +#: src/ptouch-print.c:553 #, c-format msgid "ptouch_init() failed\n" msgstr "ptouch_init() fehlgeschlagen\n" -#: src/ptouch-print.c:529 +#: src/ptouch-print.c:556 #, c-format msgid "ptouch_getstatus() failed\n" msgstr "ptouch_getstatus() fehlgeschlagen\n" -#: src/ptouch-print.c:568 +#: src/ptouch-print.c:595 +#, fuzzy, c-format +msgid "maximum printing width for this printer is %ldpx\n" +msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n" + +#: src/ptouch-print.c:596 +#, fuzzy, c-format +msgid "maximum printing width for this tape is %ldpx\n" +msgstr "Maximal druckbare Breite für dieses Schriftband sind %ipx\n" + +#: src/ptouch-print.c:608 #, c-format msgid "failed to load image file\n" msgstr "" -#: src/ptouch-print.c:584 +#: src/ptouch-print.c:624 #, c-format msgid "could not render text\n" msgstr "Konnte Text nicht rendern\n" -#: src/ptouch-print.c:616 +#: src/ptouch-print.c:659 #, c-format msgid "ptouch_finalize(%d) failed\n" msgstr "ptouch_finalize(%d) fehlgeschlagen\n" diff --git a/po/en.po b/po/en.po index c495d46..ac36335 100644 --- a/po/en.po +++ b/po/en.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: ptouch-print 1.3.1\n" "Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n" -"POT-Creation-Date: 2024-05-23 22:20-0400\n" +"POT-Creation-Date: 2025-08-03 10:11+0200\n" "PO-Revision-Date: 2024-05-23 22:26-0400\n" "Last-Translator: dominic@familie-radermacher.ch\n" "Language-Team: English \n" @@ -18,118 +18,163 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 2.4.2\n" -#: src/libptouch.c:95 src/libptouch.c:99 src/libptouch.c:103 +#: src/libptouch.c:105 src/libptouch.c:109 src/libptouch.c:113 #, c-format msgid "out of memory\n" msgstr "out of memory\n" -#: src/libptouch.c:107 +#: src/libptouch.c:117 #, c-format msgid "libusb_init() failed\n" msgstr "libusb_init() failed\n" -#: src/libptouch.c:116 +#: src/libptouch.c:126 #, c-format msgid "failed to get device descriptor" msgstr "failed to get device descriptor" -#: src/libptouch.c:122 +#: src/libptouch.c:132 #, c-format msgid "%s found on USB bus %d, device %d\n" msgstr "%s found on USB bus %d, device %d\n" -#: src/libptouch.c:137 +#: src/libptouch.c:147 #, c-format msgid "libusb_open error :%s\n" msgstr "libusb_open error :%s\n" -#: src/libptouch.c:143 +#: src/libptouch.c:153 #, c-format msgid "error while detaching kernel driver: %s\n" msgstr "error while detaching kernel driver: %s\n" -#: src/libptouch.c:147 +#: src/libptouch.c:157 #, c-format msgid "interface claim error: %s\n" msgstr "interface claim error: %s\n" -#: src/libptouch.c:158 +#: src/libptouch.c:168 #, c-format msgid "" "No P-Touch printer found on USB (remember to put switch to position E)\n" msgstr "" "No P-Touch printer found on USB (remember to put switch to position E)\n" -#: src/libptouch.c:178 +#: src/libptouch.c:188 +#, c-format +msgid "debug: called ptouch_send() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:195 #, c-format msgid "write error: %s\n" msgstr "write error: %s\n" -#: src/libptouch.c:182 +#: src/libptouch.c:199 #, fuzzy, c-format msgid "write error: could send only %i of %ld bytes\n" msgstr "write error: could send only %i of %i bytes\n" -#: src/libptouch.c:302 +#: src/libptouch.c:248 +#, c-format +msgid "debug: called ptouch_info_cmd() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:290 +#, fuzzy, c-format +msgid "debug: called ptouch_rasterstart() with NULL ptdev\n" +msgstr "ptouch_rasterstart() failed\n" + +#: src/libptouch.c:321 +#, c-format +msgid "debug: called ptouch_finalize() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:336 #, c-format msgid "debug: dumping raw status bytes\n" msgstr "debug: dumping raw status bytes\n" -#: src/libptouch.c:326 src/libptouch.c:362 +#: src/libptouch.c:355 +#, c-format +msgid "debug: called ptouch_getstatus() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:365 src/libptouch.c:401 #, c-format msgid "read error: %s\n" msgstr "read error: %s\n" -#: src/libptouch.c:331 +#: src/libptouch.c:370 #, c-format msgid "timeout while waiting for status response\n" msgstr "timeout while waiting for status response\n" -#: src/libptouch.c:345 +#: src/libptouch.c:384 #, c-format msgid "unknown tape width of %imm, please report this.\n" msgstr "unknown tape width of %imm, please report this.\n" -#: src/libptouch.c:351 +#: src/libptouch.c:390 #, c-format msgid "got only 16 bytes... wondering what they are:\n" msgstr "got only 16 bytes... wondering what they are:\n" -#: src/libptouch.c:355 +#: src/libptouch.c:394 #, c-format msgid "read error: got %i instead of 32 bytes\n" msgstr "read error: got %i instead of 32 bytes\n" -#: src/libptouch.c:358 +#: src/libptouch.c:397 #, c-format msgid "strange status:\n" msgstr "strange status:\n" -#: src/libptouch.c:360 +#: src/libptouch.c:399 #, c-format msgid "trying to flush junk\n" msgstr "trying to flush junk\n" -#: src/libptouch.c:365 +#: src/libptouch.c:404 #, c-format msgid "got another %i bytes. now try again\n" msgstr "got another %i bytes. now try again\n" +#: src/libptouch.c:411 +#, c-format +msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:420 +#, c-format +msgid "debug: called ptouch_get_max_width() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:432 +#, c-format +msgid "debug: called ptouch_sendraster() with NULL ptdev\n" +msgstr "" + #: src/ptouch-print.c:82 #, c-format msgid "nothing to print\n" msgstr "" -#: src/ptouch-print.c:89 +#: src/ptouch-print.c:90 #, c-format msgid "image is too large (%ipx x %ipx)\n" msgstr "image is too large (%ipx x %ipx)\n" -#: src/ptouch-print.c:90 src/ptouch-print.c:556 +#: src/ptouch-print.c:91 #, c-format msgid "maximum printing width for this tape is %ipx\n" msgstr "maximum printing width for this tape is %ipx\n" +#: src/ptouch-print.c:94 +#, fuzzy, c-format +msgid "image size (%ipx x %ipx)\n" +msgstr "image is too large (%ipx x %ipx)\n" + #: src/ptouch-print.c:104 #, c-format msgid "ptouch_rasterstart() failed\n" @@ -140,92 +185,107 @@ msgstr "ptouch_rasterstart() failed\n" msgid "send print information command\n" msgstr "" -#: src/ptouch-print.c:116 +#: src/ptouch-print.c:117 #, c-format -msgid "send PT-D460BT magic commands\n" +msgid "send PT-D460BT chain commands\n" msgstr "" #: src/ptouch-print.c:122 #, c-format +msgid "send PT-D460BT magic commands\n" +msgstr "" + +#: src/ptouch-print.c:128 +#, c-format msgid "send precut command\n" msgstr "" -#: src/ptouch-print.c:133 +#: src/ptouch-print.c:139 #, c-format msgid "ptouch_sendraster() failed\n" msgstr "ptouch_sendraster() failed\n" -#: src/ptouch-print.c:182 +#: src/ptouch-print.c:188 #, c-format msgid "writing image '%s' failed\n" msgstr "writing image '%s' failed\n" -#: src/ptouch-print.c:206 +#: src/ptouch-print.c:210 #, c-format msgid "debug: o baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:207 +#: src/ptouch-print.c:211 #, c-format msgid "debug: text baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:266 +#: src/ptouch-print.c:270 #, c-format msgid "render_text(): %i lines, font = '%s'\n" msgstr "" -#: src/ptouch-print.c:269 +#: src/ptouch-print.c:273 #, c-format msgid "warning: font config not available\n" msgstr "warning: font config not available\n" -#: src/ptouch-print.c:273 +#: src/ptouch-print.c:277 #, c-format msgid "setting font size=%i\n" msgstr "setting font size=%i\n" -#: src/ptouch-print.c:277 +#: src/ptouch-print.c:281 #, c-format msgid "could not estimate needed font size\n" msgstr "could not estimate needed font size\n" -#: src/ptouch-print.c:284 +#: src/ptouch-print.c:288 #, c-format msgid "choosing font size=%i\n" msgstr "choosing font size=%i\n" -#: src/ptouch-print.c:300 src/ptouch-print.c:328 +#: src/ptouch-print.c:304 src/ptouch-print.c:332 #, c-format msgid "error in gdImageStringFT: %s\n" msgstr "error in gdImageStringFT: %s\n" -#: src/ptouch-print.c:495 +#: src/ptouch-print.c:514 #, c-format msgid "ptouch-print version %s by Dominic Radermacher\n" msgstr "ptouch-print version %s by Dominic Radermacher\n" -#: src/ptouch-print.c:526 +#: src/ptouch-print.c:553 #, c-format msgid "ptouch_init() failed\n" msgstr "ptouch_init() failed\n" -#: src/ptouch-print.c:529 +#: src/ptouch-print.c:556 #, c-format msgid "ptouch_getstatus() failed\n" msgstr "ptouch_getstatus() failed\n" -#: src/ptouch-print.c:568 +#: src/ptouch-print.c:595 +#, fuzzy, c-format +msgid "maximum printing width for this printer is %ldpx\n" +msgstr "maximum printing width for this tape is %ipx\n" + +#: src/ptouch-print.c:596 +#, fuzzy, c-format +msgid "maximum printing width for this tape is %ldpx\n" +msgstr "maximum printing width for this tape is %ipx\n" + +#: src/ptouch-print.c:608 #, c-format msgid "failed to load image file\n" msgstr "" -#: src/ptouch-print.c:584 +#: src/ptouch-print.c:624 #, c-format msgid "could not render text\n" msgstr "could not render text\n" -#: src/ptouch-print.c:616 +#: src/ptouch-print.c:659 #, c-format msgid "ptouch_finalize(%d) failed\n" msgstr "ptouch_finalize(%d) failed\n" diff --git a/po/ptouch.pot b/po/ptouch.pot index cb22f35..3a4f9b5 100644 --- a/po/ptouch.pot +++ b/po/ptouch.pot @@ -1,14 +1,14 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR Free Software Foundation, Inc. -# This file is distributed under the same license as the ptouch package. +# Copyright (C) YEAR Dominic\ Radermacher\ +# This file is distributed under the same license as the ptouch-print package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: ptouch 1.3.3\n" +"Project-Id-Version: ptouch-print\n" "Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n" -"POT-Creation-Date: 2024-05-23 22:20-0400\n" +"POT-Creation-Date: 2025-08-03 10:11+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,117 +17,162 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" -#: src/libptouch.c:95 src/libptouch.c:99 src/libptouch.c:103 +#: src/libptouch.c:105 src/libptouch.c:109 src/libptouch.c:113 #, c-format msgid "out of memory\n" msgstr "" -#: src/libptouch.c:107 +#: src/libptouch.c:117 #, c-format msgid "libusb_init() failed\n" msgstr "" -#: src/libptouch.c:116 +#: src/libptouch.c:126 #, c-format msgid "failed to get device descriptor" msgstr "" -#: src/libptouch.c:122 +#: src/libptouch.c:132 #, c-format msgid "%s found on USB bus %d, device %d\n" msgstr "" -#: src/libptouch.c:137 +#: src/libptouch.c:147 #, c-format msgid "libusb_open error :%s\n" msgstr "" -#: src/libptouch.c:143 +#: src/libptouch.c:153 #, c-format msgid "error while detaching kernel driver: %s\n" msgstr "" -#: src/libptouch.c:147 +#: src/libptouch.c:157 #, c-format msgid "interface claim error: %s\n" msgstr "" -#: src/libptouch.c:158 +#: src/libptouch.c:168 #, c-format msgid "" "No P-Touch printer found on USB (remember to put switch to position E)\n" msgstr "" -#: src/libptouch.c:178 +#: src/libptouch.c:188 +#, c-format +msgid "debug: called ptouch_send() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:195 #, c-format msgid "write error: %s\n" msgstr "" -#: src/libptouch.c:182 +#: src/libptouch.c:199 #, c-format msgid "write error: could send only %i of %ld bytes\n" msgstr "" -#: src/libptouch.c:302 +#: src/libptouch.c:248 +#, c-format +msgid "debug: called ptouch_info_cmd() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:290 +#, c-format +msgid "debug: called ptouch_rasterstart() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:321 +#, c-format +msgid "debug: called ptouch_finalize() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:336 #, c-format msgid "debug: dumping raw status bytes\n" msgstr "" -#: src/libptouch.c:326 src/libptouch.c:362 +#: src/libptouch.c:355 +#, c-format +msgid "debug: called ptouch_getstatus() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:365 src/libptouch.c:401 #, c-format msgid "read error: %s\n" msgstr "" -#: src/libptouch.c:331 +#: src/libptouch.c:370 #, c-format msgid "timeout while waiting for status response\n" msgstr "" -#: src/libptouch.c:345 +#: src/libptouch.c:384 #, c-format msgid "unknown tape width of %imm, please report this.\n" msgstr "" -#: src/libptouch.c:351 +#: src/libptouch.c:390 #, c-format msgid "got only 16 bytes... wondering what they are:\n" msgstr "" -#: src/libptouch.c:355 +#: src/libptouch.c:394 #, c-format msgid "read error: got %i instead of 32 bytes\n" msgstr "" -#: src/libptouch.c:358 +#: src/libptouch.c:397 #, c-format msgid "strange status:\n" msgstr "" -#: src/libptouch.c:360 +#: src/libptouch.c:399 #, c-format msgid "trying to flush junk\n" msgstr "" -#: src/libptouch.c:365 +#: src/libptouch.c:404 #, c-format msgid "got another %i bytes. now try again\n" msgstr "" +#: src/libptouch.c:411 +#, c-format +msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:420 +#, c-format +msgid "debug: called ptouch_get_max_width() with NULL ptdev\n" +msgstr "" + +#: src/libptouch.c:432 +#, c-format +msgid "debug: called ptouch_sendraster() with NULL ptdev\n" +msgstr "" + #: src/ptouch-print.c:82 #, c-format msgid "nothing to print\n" msgstr "" -#: src/ptouch-print.c:89 +#: src/ptouch-print.c:90 #, c-format msgid "image is too large (%ipx x %ipx)\n" msgstr "" -#: src/ptouch-print.c:90 src/ptouch-print.c:556 +#: src/ptouch-print.c:91 #, c-format msgid "maximum printing width for this tape is %ipx\n" msgstr "" +#: src/ptouch-print.c:94 +#, c-format +msgid "image size (%ipx x %ipx)\n" +msgstr "" + #: src/ptouch-print.c:104 #, c-format msgid "ptouch_rasterstart() failed\n" @@ -138,92 +183,107 @@ msgstr "" msgid "send print information command\n" msgstr "" -#: src/ptouch-print.c:116 +#: src/ptouch-print.c:117 #, c-format -msgid "send PT-D460BT magic commands\n" +msgid "send PT-D460BT chain commands\n" msgstr "" #: src/ptouch-print.c:122 #, c-format +msgid "send PT-D460BT magic commands\n" +msgstr "" + +#: src/ptouch-print.c:128 +#, c-format msgid "send precut command\n" msgstr "" -#: src/ptouch-print.c:133 +#: src/ptouch-print.c:139 #, c-format msgid "ptouch_sendraster() failed\n" msgstr "" -#: src/ptouch-print.c:182 +#: src/ptouch-print.c:188 #, c-format msgid "writing image '%s' failed\n" msgstr "" -#: src/ptouch-print.c:206 +#: src/ptouch-print.c:210 #, c-format msgid "debug: o baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:207 +#: src/ptouch-print.c:211 #, c-format msgid "debug: text baseline offset - %d\n" msgstr "" -#: src/ptouch-print.c:266 +#: src/ptouch-print.c:270 #, c-format msgid "render_text(): %i lines, font = '%s'\n" msgstr "" -#: src/ptouch-print.c:269 +#: src/ptouch-print.c:273 #, c-format msgid "warning: font config not available\n" msgstr "" -#: src/ptouch-print.c:273 +#: src/ptouch-print.c:277 #, c-format msgid "setting font size=%i\n" msgstr "" -#: src/ptouch-print.c:277 +#: src/ptouch-print.c:281 #, c-format msgid "could not estimate needed font size\n" msgstr "" -#: src/ptouch-print.c:284 +#: src/ptouch-print.c:288 #, c-format msgid "choosing font size=%i\n" msgstr "" -#: src/ptouch-print.c:300 src/ptouch-print.c:328 +#: src/ptouch-print.c:304 src/ptouch-print.c:332 #, c-format msgid "error in gdImageStringFT: %s\n" msgstr "" -#: src/ptouch-print.c:495 +#: src/ptouch-print.c:514 #, c-format msgid "ptouch-print version %s by Dominic Radermacher\n" msgstr "" -#: src/ptouch-print.c:526 +#: src/ptouch-print.c:553 #, c-format msgid "ptouch_init() failed\n" msgstr "" -#: src/ptouch-print.c:529 +#: src/ptouch-print.c:556 #, c-format msgid "ptouch_getstatus() failed\n" msgstr "" -#: src/ptouch-print.c:568 +#: src/ptouch-print.c:595 +#, c-format +msgid "maximum printing width for this printer is %ldpx\n" +msgstr "" + +#: src/ptouch-print.c:596 +#, c-format +msgid "maximum printing width for this tape is %ldpx\n" +msgstr "" + +#: src/ptouch-print.c:608 #, c-format msgid "failed to load image file\n" msgstr "" -#: src/ptouch-print.c:584 +#: src/ptouch-print.c:624 #, c-format msgid "could not render text\n" msgstr "" -#: src/ptouch-print.c:616 +#: src/ptouch-print.c:659 #, c-format msgid "ptouch_finalize(%d) failed\n" msgstr ""