aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sisfilerecord.cpp
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-09 21:07:08 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-09 21:07:08 +0000
commitb105b61017274eec171269b0d0f9cc617f01d423 (patch)
tree8632bbea1942c50b934546d026de4ab67ef584ec /lib/sisfilerecord.cpp
parentec3470be2c7f3db0b9c23c6827ab56c935f801e4 (diff)
downloadplptools-b105b61017274eec171269b0d0f9cc617f01d423.tar.gz
plptools-b105b61017274eec171269b0d0f9cc617f01d423.tar.bz2
plptools-b105b61017274eec171269b0d0f9cc617f01d423.zip
I18N-ify sis classes
Diffstat (limited to 'lib/sisfilerecord.cpp')
-rw-r--r--lib/sisfilerecord.cpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/sisfilerecord.cpp b/lib/sisfilerecord.cpp
index e7dd007..24650da 100644
--- a/lib/sisfilerecord.cpp
+++ b/lib/sisfilerecord.cpp
@@ -22,6 +22,7 @@
#include "sisfilerecord.h"
#include "sisfile.h"
+#include "plpintl.h"
#include <stdio.h>
@@ -35,26 +36,26 @@ SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile)
int size = 0;
m_flags = read32(p);
if (logLevel >= 2)
- printf("Got flags %d\n", m_flags);
+ printf(_("Got flags %d\n"), m_flags);
m_fileType = read32(p + 4);
if (logLevel >= 2)
- printf("Got file type %d\n", m_fileType);
+ printf(_("Got file type %d\n"), m_fileType);
m_fileDetails = read32(p + 8);
if (logLevel >= 2)
- printf("Got file details %d\n", m_fileDetails);
+ printf(_("Got file details %d\n"), m_fileDetails);
m_sourceLength = read32(p + 12);
m_sourcePtr = read32(p + 16);
-// printf("Got source length = %d, source name ptr = %d\n",
+// printf(_("Got source length = %d, source name ptr = %d\n"),
// m_sourceLength, m_sourcePtr);
if (logLevel >= 2)
if (m_sourceLength > 0)
- printf("Got source name %.*s\n", m_sourceLength, buf + m_sourcePtr);
+ printf(_("Got source name %.*s\n"), m_sourceLength, buf + m_sourcePtr);
m_destLength = read32(p + 20);
m_destPtr = read32(p + 24);
-// printf("Got dest length = %d, dest name ptr = %d\n",
+// printf(_("Got dest length = %d, dest name ptr = %d\n"),
// m_destLength, m_destPtr);
if (logLevel >= 2)
- printf("Got destination name %.*s\n", m_destLength, buf + m_destPtr);
+ printf(_("Got destination name %.*s\n"), m_destLength, buf + m_destPtr);
size = 28;
switch (m_flags)
{
@@ -65,11 +66,11 @@ SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile)
m_filePtrs[0] = read32(p + size + 4);
size += 8;
if (logLevel >= 2)
- printf("File is %d bytes long (at %d) (to %d)\n",
+ printf(_("File is %d bytes long (at %d) (to %d)\n"),
m_fileLengths[0], m_filePtrs[0],
m_fileLengths[0] + m_filePtrs[0]);
if (logLevel >= 1)
- printf("%d .. %d (%d bytes): Single file record type %d, %.*s\n",
+ printf(_("%d .. %d (%d bytes): Single file record type %d, %.*s\n"),
m_filePtrs[0],
m_filePtrs[0] + m_fileLengths[0],
m_fileLengths[0],
@@ -99,13 +100,13 @@ SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile)
return SIS_TRUNCATED;
size += 4;
if (logLevel >= 2)
- printf("File %d (for %s) is %d bytes long (at %d)\n",
+ printf(_("File %d (for %s) is %d bytes long (at %d)\n"),
i,
sisFile->getLanguage(i)->m_name,
fileLen,
m_filePtrs[i]);
if (logLevel >= 1)
- printf("%d .. %d (%d bytes): File record (%s) for %.*s\n",
+ printf(_("%d .. %d (%d bytes): File record (%s) for %.*s\n"),
m_filePtrs[i],
m_filePtrs[i] + fileLen,
fileLen,
@@ -117,7 +118,7 @@ SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile)
default:
if (logLevel >= 2)
- printf("Unknown file flags %d\n", m_flags);
+ printf(_("Unknown file flags %d\n"), m_flags);
}
*base += size;
return SIS_OK;