From b105b61017274eec171269b0d0f9cc617f01d423 Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Sat, 9 Mar 2002 21:07:08 +0000 Subject: I18N-ify sis classes --- lib/siscomponentrecord.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/siscomponentrecord.cpp') diff --git a/lib/siscomponentrecord.cpp b/lib/siscomponentrecord.cpp index 091f2b2..83781d1 100644 --- a/lib/siscomponentrecord.cpp +++ b/lib/siscomponentrecord.cpp @@ -22,6 +22,7 @@ #include "siscomponentrecord.h" #include "sisfile.h" +#include "plpintl.h" #include #include @@ -52,7 +53,7 @@ SISComponentNameRecord::fillFrom(uint8_t* buf, int base, off_t len, m_nameLengths[i] = read32(p + size); if (m_nameLengths[i] > len) { - printf("Length too large for name record %d.\n", i); + printf(_("Length too large for name record %d.\n"), i); return SIS_TRUNCATED; } size += 4; @@ -66,12 +67,12 @@ SISComponentNameRecord::fillFrom(uint8_t* buf, int base, off_t len, m_namePtrs[i] = read32(p + size); if (m_namePtrs[i] + m_nameLengths[i] > len) { - printf("Position/length too large for name record %d.\n", i); + printf(_("Position/length too large for name record %d.\n"), i); return SIS_TRUNCATED; } size += 4; if (logLevel >= 2) - printf("Name %d (for %s) is %.*s\n", + printf(_("Name %d (for %s) is %.*s\n"), i, sisFile->getLanguage(i)->m_name, m_nameLengths[i], @@ -82,7 +83,7 @@ SISComponentNameRecord::fillFrom(uint8_t* buf, int base, off_t len, m_names[i][len] = 0; } if (logLevel >= 1) - printf("%d .. %d (%d bytes): Name records\n", base, base + size, size); + printf(_("%d .. %d (%d bytes): Name records\n"), base, base + size, size); return SIS_OK; } -- cgit v1.2.3