aboutsummaryrefslogtreecommitdiffstats
path: root/sisinstall
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 /sisinstall
parentec3470be2c7f3db0b9c23c6827ab56c935f801e4 (diff)
downloadplptools-b105b61017274eec171269b0d0f9cc617f01d423.tar.gz
plptools-b105b61017274eec171269b0d0f9cc617f01d423.tar.bz2
plptools-b105b61017274eec171269b0d0f9cc617f01d423.zip
I18N-ify sis classes
Diffstat (limited to 'sisinstall')
-rw-r--r--sisinstall/sismain.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/sisinstall/sismain.cpp b/sisinstall/sismain.cpp
index 17d4d2f..8420733 100644
--- a/sisinstall/sismain.cpp
+++ b/sisinstall/sismain.cpp
@@ -24,6 +24,12 @@ void main(int argc, char* argv[])
char* filename = 0;
char option;
bool dryrun = false;
+
+#ifdef LC_ALL
+ setlocale(LC_ALL, "");
+#endif
+ textdomain(PACKAGE);
+
while ((option = getopt(argc, argv, "nl:")) != -1)
{
switch (option)
@@ -39,15 +45,15 @@ void main(int argc, char* argv[])
if (optind < argc)
{
filename = argv[optind];
- printf("Installing sis file %s%s\n", filename,
- dryrun ? ", not really" : "");
+ printf(_("Installing sis file %s%s\n"), filename,
+ dryrun ? _(", not really") : "");
}
struct stat st;
if (-1 == stat(filename, &st))
error(__LINE__);
off_t len = st.st_size;
if (logLevel >= 2)
- printf("File is %d bytes long\n", len);
+ printf(_("File is %d bytes long\n"), len);
uint8_t* buf = new uint8_t[len];
int fd = open(filename, O_RDONLY);
if (-1 == fd)
@@ -62,7 +68,7 @@ void main(int argc, char* argv[])
psion = new Psion();
if (!psion->connect())
{
- printf("Couldn't connect with the Psion\n");
+ printf(_("Couldn't connect with the Psion\n"));
exit(1);
}
createCRCTable();
@@ -79,7 +85,7 @@ void main(int argc, char* argv[])
}
else
{
- printf("Could not parse the sis file.\n");
+ printf(_("Could not parse the sis file.\n"));
}
psion->disconnect();