aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-11-02 20:51:06 +0000
committerJason Woodward2003-11-02 20:51:06 +0000
commit8fe92862548c6a8322dcbdd751c4891c855b2295 (patch)
tree8da65481796c9200661643fe9ff2fbcfba37c0bc
parent2b5ceb8d7271e8ff4dc63ef15f1fadb307dd27dd (diff)
downloadslapt-get-8fe92862548c6a8322dcbdd751c4891c855b2295.tar.gz
updated makefile for gettext stuff, added po template
-rw-r--r--Makefile11
-rw-r--r--po/en.po474
-rw-r--r--po/slapt-get.pot474
-rw-r--r--src/main.c8
4 files changed, 961 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 1d7f498..cd86797 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,9 @@ CURLFLAGS=`curl-config --libs`
OBJS=src/configuration.o src/package.o src/curl.o src/transaction.o src/action.o src/main.o
RCDEST=/etc/slapt-getrc
RCSOURCE=example.slapt-getrc
+LOCALESDIR=/usr/share/$(PROGRAM_NAME)/locales
SBINDIR=/sbin/
-DEFINES=-DPROGRAM_NAME="\"$(PROGRAM_NAME)\"" -DVERSION="\"$(VERSION)\"" -DRC_LOCATION="\"$(RCDEST)\"" -DENABLE_NLS
+DEFINES=-DPROGRAM_NAME="\"$(PROGRAM_NAME)\"" -DVERSION="\"$(VERSION)\"" -DRC_LOCATION="\"$(RCDEST)\"" -DENABLE_NLS -DLOCALESDIR="\"$(LOCALESDIR)\""
CFLAGS=-W -Werror -Wall -O2 -ansi -pedantic -Iinclude $(DEFINES)
default: $(PROGRAM_NAME)
@@ -28,6 +29,7 @@ install: $(PROGRAM_NAME)
install --mode=0644 -b $(RCSOURCE) $(RCDEST)
install $(PROGRAM_NAME).8 /usr/man/man8/
install -d /var/$(PROGRAM_NAME)
+ if [ ! -d $(LOCALESDIR)/en ]; then mkdir -p $(LOCALESDIR)/en/LC_MESSAGES; fi; msgfmt -o $(LOCALESDIR)/en/LC_MESSAGES/slapt-get.mo po/en.po;
uninstall:
-rm /sbin/$(PROGRAM_NAME)
@@ -44,6 +46,8 @@ pkg: $(PROGRAM_NAME)
-@mkdir -p pkg/etc
-@mkdir -p pkg/install
-@mkdir -p pkg/usr/man/man8
+ -@mkdir -p pkg$(LOCALESDIR)
+ -@mkdir -p pkg$(LOCALESDIR)/en/LC_MESSAGES; msgfmt -o pkg$(LOCALESDIR)/en/LC_MESSAGES/slapt-get.mo po/en.po
-@cp $(PROGRAM_NAME) ./pkg/sbin/
-@strip ./pkg/sbin/$(PROGRAM_NAME)
-@cp example.slapt-getrc ./pkg/etc/slapt-getrc.new
@@ -57,11 +61,8 @@ pkg: $(PROGRAM_NAME)
@( cd pkg; makepkg -c y $(PROGRAM_NAME)-$(VERSION)-$(ARCH)-$(RELEASE).tgz )
po: $(PROGRAM_NAME)
- -rm po/*
-grep '_(' src/*.c |cut -f2-255 -d':'|sed -re "s/.*(_\(\".*\"\)).*/\1/" > po/gettext_strings
+ -mv po/slapt-get.pot po/slapt-get.pot~
-xgettext -d slapt-get -o po/slapt-get.pot -a -C --no-location po/gettext_strings
- -cp po/slapt-get.pot po/en.po
- -sed -i -re "s/CHARSET/ISO-8859-1/" po/en.po
- -msgfmt -o po/slapt-get.mo po/en.po
-rm po/gettext_strings
diff --git a/po/en.po b/po/en.po
new file mode 100644
index 0000000..1389ce0
--- /dev/null
+++ b/po/en.po
@@ -0,0 +1,474 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: 0.9.6h\n"
+"POT-Creation-Date: 2003-10-31 21:17+0000\n"
+"PO-Revision-Date: 2003-11-02 01:49+500\n"
+"Last-Translator: Jason Woodward <woodwardj@jaos.org>\n"
+"Language-Team: slapt-get-devel <slapt-get-devel@software.jaos.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "Reading Package Lists... "
+msgstr "Reading Package Lists... "
+
+msgid "Done\n"
+msgstr "Done\n"
+
+#, c-format
+msgid "No Such package: %s\n"
+msgstr "No Such package: %s\n"
+
+#, c-format
+msgid "%s is up to date.\n"
+msgstr "%s is up to date.\n"
+
+msgid "yes"
+msgstr "yes"
+
+msgid "no"
+msgstr "no"
+
+#, c-format
+msgid "%s is not installed.\n"
+msgstr "%s is not installed.\n"
+
+#, c-format
+msgid "Package Name: %s\n"
+msgstr "Package Name: %s\n"
+
+#, c-format
+msgid "Package Mirror: %s\n"
+msgstr "Package Mirror: %s\n"
+
+#, c-format
+msgid "Package Location: %s\n"
+msgstr "Package Location: %s\n"
+
+#, c-format
+msgid "Package Version: %s\n"
+msgstr "Package Version: %s\n"
+
+#, c-format
+msgid "Package Size: %d K\n"
+msgstr "Package Size: %d K\n"
+
+#, c-format
+msgid "Package Installed Size: %d K\n"
+msgstr "Package Installed Size: %d K\n"
+
+#, c-format
+msgid "Package Required: %s\n"
+msgstr "Package Required: %s\n"
+
+msgid "Package Description:\n"
+msgstr "Package Description:\n"
+
+#, c-format
+msgid "Installed: %s\n"
+msgstr "Installed: %s\n"
+
+#, c-format
+msgid "No such package: %s\n"
+msgstr "No such package: %s\n"
+
+#, c-format
+msgid "Retrieving package data [%s]..."
+msgstr "Retrieving package data [%s]..."
+
+#, c-format
+msgid "Retrieving package data [%s]...\n"
+msgstr "Retrieving package data [%s]...\n"
+
+#, c-format
+msgid "Retrieving extras list [%s]..."
+msgstr "Retrieving extras list [%s]..."
+
+#, c-format
+msgid "Retrieving extras list [%s]...\n"
+msgstr "Retrieving extras list [%s]...\n"
+
+#, c-format
+msgid "Retrieving patch list [%s]..."
+msgstr "Retrieving patch list [%s]..."
+
+#, c-format
+msgid "Retrieving patch list [%s]...\n"
+msgstr "Retrieving patch list [%s]...\n"
+
+#, c-format
+msgid "Retrieving checksum list [%s]..."
+msgstr "Retrieving checksum list [%s]..."
+
+#, c-format
+msgid "Retrieving checksum list [%s]...\n"
+msgstr "Retrieving checksum list [%s]...\n"
+
+msgid "Failed to malloc global_config\n"
+msgstr "Failed to malloc global_config\n"
+
+#, c-format
+msgid "Maximum number of sources (%d) exceeded.\n"
+msgstr "Maximum number of sources (%d) exceeded.\n"
+
+#, c-format
+msgid "Maximum length of source (%d) exceeded.\n"
+msgstr "Maximum length of source (%d) exceeded.\n"
+
+#, c-format
+msgid "WORKINGDIR directive not set within %s.\n"
+msgstr "WORKINGDIR directive not set within %s.\n"
+
+#, c-format
+msgid "SOURCE directive not set within %s.\n"
+msgstr "SOURCE directive not set within %s.\n"
+
+#, c-format
+msgid "Failed to build working directory [%s]\n"
+msgstr "Failed to build working directory [%s]\n"
+
+#, c-format
+msgid "Please update permissions on %s or run with appropriate privileges\n"
+msgstr "Please update permissions on %s or run with appropriate privileges\n"
+
+#, c-format
+msgid "Failed to open %s\n"
+msgstr "Failed to open %s\n"
+
+msgid "Perhaps you want to run --update?\n"
+msgstr "Perhaps you want to run --update?\n"
+
+#, c-format
+msgid "Failed to opendir %s\n"
+msgstr "Failed to opendir %s\n"
+
+#, c-format
+msgid "Failed to chdir: %s\n"
+msgstr "Failed to chdir: %s\n"
+
+#, c-format
+msgid "unlinking %s\n"
+msgstr "unlinking %s\n"
+
+msgid "Failed to malloc list\n"
+msgstr "Failed to malloc list\n"
+
+msgid "Failed to get cwd\n"
+msgstr "Failed to get cwd\n"
+
+#, c-format
+msgid "\tCurrent working directory: %s\n"
+msgstr "\tCurrent working directory: %s\n"
+
+#, c-format
+msgid "Failed to mkdir: %s\n"
+msgstr "Failed to mkdir: %s\n"
+
+#, c-format
+msgid "\tCreated directory: %s\n"
+msgstr "\tCreated directory: %s\n"
+
+#, c-format
+msgid "Failed to chdir to %s\n"
+msgstr "Failed to chdir to %s\n"
+
+#, c-format
+msgid "\tchdir into %s\n"
+msgstr "\tchdir into %s\n"
+
+#, c-format
+msgid "\tchdir back into %s\n"
+msgstr "\tchdir back into %s\n"
+
+#, c-format
+msgid "Fetching url:[%s]\n"
+msgstr "Fetching url:[%s]\n"
+
+#, c-format
+msgid "Failed to download: %s\n"
+msgstr "Failed to download: %s\n"
+
+msgid "Failed to calloc url\n"
+msgstr "Failed to calloc url\n"
+
+msgid "Failed to calloc file_name\n"
+msgstr "Failed to calloc file_name\n"
+
+#, c-format
+msgid "Using cached copy of %s\n"
+msgstr "Using cached copy of %s\n"
+
+#, c-format
+msgid "Downloading %s %s %s [%dK]..."
+msgstr "Downloading %s %s %s [%dK]..."
+
+#, c-format
+msgid "Downloading %s %s %s [%dK]...\n"
+msgstr "Downloading %s %s %s [%dK]...\n"
+
+#, c-format
+msgid "Failed to unlink %s\n"
+msgstr "Failed to unlink %s\n"
+
+#, c-format
+msgid "verifying %s md5 checksum..."
+msgstr "verifying %s md5 checksum..."
+
+#, c-format
+msgid "md5 sum for %s is not correct!\n"
+msgstr "md5 sum for %s is not correct!\n"
+
+#, c-format
+msgid "MD5 found: [%s]\n"
+msgstr "MD5 found: [%s]\n"
+
+#, c-format
+msgid "MD5 expected: [%s]\n"
+msgstr "MD5 expected: [%s]\n"
+
+#, c-format
+msgid "File: %s/%s\n"
+msgstr "File: %s/%s\n"
+
+msgid "An implementation of the Debian APT system to Slackware\n"
+msgstr "An implementation of the Debian APT system to Slackware\n"
+
+msgid "Usage:\n"
+msgstr "Usage:\n"
+
+#, c-format
+msgid "%s [option(s)] [target]\n"
+msgstr "%s [option(s)] [target]\n"
+
+msgid "Targets:\n"
+msgstr "Targets:\n"
+
+msgid "retrieves pkg data from MIRROR"
+msgstr "retrieves pkg data from MIRROR"
+
+msgid "upgrade installed pkgs"
+msgstr "upgrade installed pkgs"
+
+msgid "upgrade to newer release"
+msgstr "upgrade to newer release"
+
+msgid "[pkg name(s)] - install specified pkg(s)"
+msgstr "[pkg name(s)] - install specified pkg(s)"
+
+msgid "[pkg name(s)] - remove specified pkg(s)"
+msgstr "[pkg name(s)] - remove specified pkg(s)"
+
+msgid "[pkg name] - show pkg description"
+msgstr "[pkg name] - show pkg description"
+
+msgid "[expression] - search available pkgs"
+msgstr "[expression] - search available pkgs"
+
+msgid "list available pkgs"
+msgstr "list available pkgs"
+
+msgid "list installed pkgs"
+msgstr "list installed pkgs"
+
+msgid "purge cached pkgs"
+msgstr "purge cached pkgs"
+
+msgid "print version and license info"
+msgstr "print version and license info"
+
+msgid "Options:\n"
+msgstr "Options:\n"
+
+msgid "only download pkg on install/upgrade"
+msgstr "only download pkg on install/upgrade"
+
+msgid "show pkgs to be installed/upgraded"
+msgstr "show pkgs to be installed/upgraded"
+
+msgid "do not prompt during install/upgrade"
+msgstr "do not prompt during install/upgrade"
+
+msgid "re-install the pkg"
+msgstr "re-install the pkg"
+
+msgid "install/upgrade excludes"
+msgstr "install/upgrade excludes"
+
+msgid "do not perform md5 check sum"
+msgstr "do not perform md5 check sum"
+
+msgid "ignore dependency failures"
+msgstr "ignore dependency failures"
+
+msgid "prompt before each install/upgrade"
+msgstr "prompt before each install/upgrade"
+
+#, c-format
+msgid "%s version %s\n"
+msgstr "%s version %s\n"
+
+msgid "Failed to malloc pkgs\n"
+msgstr "Failed to malloc pkgs\n"
+
+#, c-format
+msgid "regex failed on [%s]\n"
+msgstr "regex failed on [%s]\n"
+
+msgid "Failed to malloc tmp_pkg\n"
+msgstr "Failed to malloc tmp_pkg\n"
+
+#, c-format
+msgid "pkg name too long [%s:%d]\n"
+msgstr "pkg name too long [%s:%d]\n"
+
+#, c-format
+msgid "pkg version too long [%s:%d]\n"
+msgstr "pkg version too long [%s:%d]\n"
+
+#, c-format
+msgid "pkg mirror too long [%s:%d]\n"
+msgstr "pkg mirror too long [%s:%d]\n"
+
+#, c-format
+msgid "pkg location too long [%s:%d]\n"
+msgstr "pkg location too long [%s:%d]\n"
+
+msgid "regexec failed to parse location\n"
+msgstr "regexec failed to parse location\n"
+
+msgid "getline reached EOF attempting to read location\n"
+msgstr "getline reached EOF attempting to read location\n"
+
+msgid "Failed to calloc size_c\n"
+msgstr "Failed to calloc size_c\n"
+
+msgid "regexec failed to parse size_c\n"
+msgstr "regexec failed to parse size_c\n"
+
+msgid "getline reached EOF attempting to read size_c\n"
+msgstr "getline reached EOF attempting to read size_c\n"
+
+msgid "Failed to calloc size_u\n"
+msgstr "Failed to calloc size_u\n"
+
+msgid "regexec failed to parse size_u\n"
+msgstr "regexec failed to parse size_u\n"
+
+msgid "getline reached EOF attempting to read size_u\n"
+msgstr "getline reached EOF attempting to read size_u\n"
+
+msgid "error attempting to read pkg description\n"
+msgstr "error attempting to read pkg description\n"
+
+msgid "Failed to realloc pkgs\n"
+msgstr "Failed to realloc pkgs\n"
+
+msgid "Failed to calloc short_description\n"
+msgstr "Failed to calloc short_description\n"
+
+msgid "Failed to compile regex\n"
+msgstr "Failed to compile regex\n"
+
+#, c-format
+msgid "Regex Error: %s\n"
+msgstr "Regex Error: %s\n"
+
+msgid "Failed to calloc list->pkgs[list->pkg_count]\n"
+msgstr "Failed to calloc list->pkgs[list->pkg_count]\n"
+
+#, c-format
+msgid "%s-%s is to be installed\n"
+msgstr "%s-%s is to be installed\n"
+
+#, c-format
+msgid "Install %s-%s [Y|n] "
+msgstr "Install %s-%s [Y|n] "
+
+#, c-format
+msgid "Preparing to install %s-%s\n"
+msgstr "Preparing to install %s-%s\n"
+
+#, c-format
+msgid "Failed to execute command: [%s]\n"
+msgstr "Failed to execute command: [%s]\n"
+
+#, c-format
+msgid "excluding %s\n"
+msgstr "excluding %s\n"
+
+#, c-format
+msgid "%s-%s is to be upgraded to version %s\n"
+msgstr "%s-%s is to be upgraded to version %s\n"
+
+#, c-format
+msgid "Replace %s-%s with %s-%s? [y|N] "
+msgstr "Replace %s-%s with %s-%s? [y|N] "
+
+#, c-format
+msgid "Preparing to replace %s-%s with %s-%s\n"
+msgstr "Preparing to replace %s-%s with %s-%s\n"
+
+#, c-format
+msgid "%s-%s is to be removed\n"
+msgstr "%s-%s is to be removed\n"
+
+#, c-format
+msgid "Failed to compile regex [%s]\n"
+msgstr "Failed to compile regex [%s]\n"
+
+msgid "Failed to malloc deps\n"
+msgstr "Failed to malloc deps\n"
+
+msgid "Failed to malloc deps->pkgs\n"
+msgstr "Failed to malloc deps->pkgs\n"
+
+#, c-format
+msgid "pkg conditional too long [%s:%d]\n"
+msgstr "pkg conditional too long [%s:%d]\n"
+
+msgid "The following packages have unmet dependencies:\n"
+msgstr "The following packages have unmet dependencies:\n"
+
+#, c-format
+msgid " %s: Depends: %s\n"
+msgstr " %s: Depends: %s\n"
+
+msgid "The following packages have been EXCLUDED:\n"
+msgstr "The following packages have been EXCLUDED:\n"
+
+msgid "The following NEW packages will be installed:\n"
+msgstr "The following NEW packages will be installed:\n"
+
+msgid "The following packages will be REMOVED:\n"
+msgstr "The following packages will be REMOVED:\n"
+
+msgid "The following packages will be upgraded:\n"
+msgstr "The following packages will be upgraded:\n"
+
+#, c-format
+msgid "%d upgraded, %d newly installed, %d to remove and %d not upgraded.\n"
+msgstr "%d upgraded, %d newly installed, %d to remove and %d not upgraded.\n"
+
+#, c-format
+msgid "Need to get %dK of archives.\n"
+msgstr "Need to get %dK of archives.\n"
+
+#, c-format
+msgid "After unpacking %dK disk space will be freed.\n"
+msgstr "After unpacking %dK disk space will be freed.\n"
+
+#, c-format
+msgid "After unpacking %dK of additional disk space will be used.\n"
+msgstr "After unpacking %dK of additional disk space will be used.\n"
+
+msgid "Do you want to continue? [y/N] "
+msgstr "Do you want to continue? [y/N] "
+
+msgid "Abort.\n"
+msgstr "Abort.\n"
diff --git a/po/slapt-get.pot b/po/slapt-get.pot
new file mode 100644
index 0000000..a6a58cc
--- /dev/null
+++ b/po/slapt-get.pot
@@ -0,0 +1,474 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2003-11-02 19:37+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+msgid "Reading Package Lists... "
+msgstr ""
+
+msgid "Done\n"
+msgstr ""
+
+#, c-format
+msgid "No Such package: %s\n"
+msgstr ""
+
+#, c-format
+msgid "%s is up to date.\n"
+msgstr ""
+
+msgid "yes"
+msgstr ""
+
+msgid "no"
+msgstr ""
+
+#, c-format
+msgid "%s is not installed.\n"
+msgstr ""
+
+#, c-format
+msgid "Package Name: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Package Mirror: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Package Location: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Package Version: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Package Size: %d K\n"
+msgstr ""
+
+#, c-format
+msgid "Package Installed Size: %d K\n"
+msgstr ""
+
+#, c-format
+msgid "Package Required: %s\n"
+msgstr ""
+
+msgid "Package Description:\n"
+msgstr ""
+
+#, c-format
+msgid "Installed: %s\n"
+msgstr ""
+
+#, c-format
+msgid "No such package: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Retrieving package data [%s]..."
+msgstr ""
+
+#, c-format
+msgid "Retrieving package data [%s]...\n"
+msgstr ""
+
+#, c-format
+msgid "Retrieving extras list [%s]..."
+msgstr ""
+
+#, c-format
+msgid "Retrieving extras list [%s]...\n"
+msgstr ""
+
+#, c-format
+msgid "Retrieving patch list [%s]..."
+msgstr ""
+
+#, c-format
+msgid "Retrieving patch list [%s]...\n"
+msgstr ""
+
+#, c-format
+msgid "Retrieving checksum list [%s]..."
+msgstr ""
+
+#, c-format
+msgid "Retrieving checksum list [%s]...\n"
+msgstr ""
+
+msgid "Failed to malloc global_config\n"
+msgstr ""
+
+#, c-format
+msgid "Maximum number of sources (%d) exceeded.\n"
+msgstr ""
+
+#, c-format
+msgid "Maximum length of source (%d) exceeded.\n"
+msgstr ""
+
+#, c-format
+msgid "WORKINGDIR directive not set within %s.\n"
+msgstr ""
+
+#, c-format
+msgid "SOURCE directive not set within %s.\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to build working directory [%s]\n"
+msgstr ""
+
+#, c-format
+msgid "Please update permissions on %s or run with appropriate privileges\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to open %s\n"
+msgstr ""
+
+msgid "Perhaps you want to run --update?\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to opendir %s\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to chdir: %s\n"
+msgstr ""
+
+#, c-format
+msgid "unlinking %s\n"
+msgstr ""
+
+msgid "Failed to malloc list\n"
+msgstr ""
+
+msgid "Failed to get cwd\n"
+msgstr ""
+
+#, c-format
+msgid "\tCurrent working directory: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to mkdir: %s\n"
+msgstr ""
+
+#, c-format
+msgid "\tCreated directory: %s\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to chdir to %s\n"
+msgstr ""
+
+#, c-format
+msgid "\tchdir into %s\n"
+msgstr ""
+
+#, c-format
+msgid "\tchdir back into %s\n"
+msgstr ""
+
+#, c-format
+msgid "Fetching url:[%s]\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to download: %s\n"
+msgstr ""
+
+msgid "Failed to calloc url\n"
+msgstr ""
+
+msgid "Failed to calloc file_name\n"
+msgstr ""
+
+#, c-format
+msgid "Using cached copy of %s\n"
+msgstr ""
+
+#, c-format
+msgid "Downloading %s %s %s [%dK]..."
+msgstr ""
+
+#, c-format
+msgid "Downloading %s %s %s [%dK]...\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to unlink %s\n"
+msgstr ""
+
+#, c-format
+msgid "verifying %s md5 checksum..."
+msgstr ""
+
+#, c-format
+msgid "md5 sum for %s is not correct!\n"
+msgstr ""
+
+#, c-format
+msgid "MD5 found: [%s]\n"
+msgstr ""
+
+#, c-format
+msgid "MD5 expected: [%s]\n"
+msgstr ""
+
+#, c-format
+msgid "File: %s/%s\n"
+msgstr ""
+
+msgid "A implementation of the Debian APT system to Slackware\n"
+msgstr ""
+
+msgid "Usage:\n"
+msgstr ""
+
+#, c-format
+msgid "%s [option(s)] [target]\n"
+msgstr ""
+
+msgid "Targets:\n"
+msgstr ""
+
+msgid "retrieves pkg data from MIRROR"
+msgstr ""
+
+msgid "upgrade installed pkgs"
+msgstr ""
+
+msgid "upgrade to newer release"
+msgstr ""
+
+msgid "[pkg name(s)] - install specified pkg(s)"
+msgstr ""
+
+msgid "[pkg name(s)] - remove specified pkg(s)"
+msgstr ""
+
+msgid "[pkg name] - show pkg description"
+msgstr ""
+
+msgid "[expression] - search available pkgs"
+msgstr ""
+
+msgid "list available pkgs"
+msgstr ""
+
+msgid "list installed pkgs"
+msgstr ""
+
+msgid "purge cached pkgs"
+msgstr ""
+
+msgid "print version and license info"
+msgstr ""
+
+msgid "Options:\n"
+msgstr ""
+
+msgid "only download pkg on install/upgrade"
+msgstr ""
+
+msgid "show pkgs to be installed/upgraded"
+msgstr ""
+
+msgid "do not prompt during install/upgrade"
+msgstr ""
+
+msgid "re-install the pkg"
+msgstr ""
+
+msgid "install/upgrade excludes"
+msgstr ""
+
+msgid "do not perform md5 check sum"
+msgstr ""
+
+msgid "ignore dependency failures"
+msgstr ""
+
+msgid "prompt before each install/upgrade"
+msgstr ""
+
+#, c-format
+msgid "%s version %s\n"
+msgstr ""
+
+msgid "Failed to malloc pkgs\n"
+msgstr ""
+
+#, c-format
+msgid "regex failed on [%s]\n"
+msgstr ""
+
+msgid "Failed to malloc tmp_pkg\n"
+msgstr ""
+
+#, c-format
+msgid "pkg name too long [%s:%d]\n"
+msgstr ""
+
+#, c-format
+msgid "pkg version too long [%s:%d]\n"
+msgstr ""
+
+#, c-format
+msgid "pkg mirror too long [%s:%d]\n"
+msgstr ""
+
+#, c-format
+msgid "pkg location too long [%s:%d]\n"
+msgstr ""
+
+msgid "regexec failed to parse location\n"
+msgstr ""
+
+msgid "getline reached EOF attempting to read location\n"
+msgstr ""
+
+msgid "Failed to calloc size_c\n"
+msgstr ""
+
+msgid "regexec failed to parse size_c\n"
+msgstr ""
+
+msgid "getline reached EOF attempting to read size_c\n"
+msgstr ""
+
+msgid "Failed to calloc size_u\n"
+msgstr ""
+
+msgid "regexec failed to parse size_u\n"
+msgstr ""
+
+msgid "getline reached EOF attempting to read size_u\n"
+msgstr ""
+
+msgid "error attempting to read pkg description\n"
+msgstr ""
+
+msgid "Failed to realloc pkgs\n"
+msgstr ""
+
+msgid "Failed to calloc short_description\n"
+msgstr ""
+
+msgid "Failed to compile regex\n"
+msgstr ""
+
+#, c-format
+msgid "Regex Error: %s\n"
+msgstr ""
+
+msgid "Failed to calloc list->pkgs[list->pkg_count]\n"
+msgstr ""
+
+#, c-format
+msgid "%s-%s is to be installed\n"
+msgstr ""
+
+#, c-format
+msgid "Install %s-%s [Y|n] "
+msgstr ""
+
+#, c-format
+msgid "Preparing to install %s-%s\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to execute command: [%s]\n"
+msgstr ""
+
+#, c-format
+msgid "excluding %s\n"
+msgstr ""
+
+#, c-format
+msgid "%s-%s is to be upgraded to version %s\n"
+msgstr ""
+
+#, c-format
+msgid "Replace %s-%s with %s-%s? [y|N] "
+msgstr ""
+
+#, c-format
+msgid "Preparing to replace %s-%s with %s-%s\n"
+msgstr ""
+
+#, c-format
+msgid "%s-%s is to be removed\n"
+msgstr ""
+
+#, c-format
+msgid "Failed to compile regex [%s]\n"
+msgstr ""
+
+msgid "Failed to malloc deps\n"
+msgstr ""
+
+msgid "Failed to malloc deps->pkgs\n"
+msgstr ""
+
+#, c-format
+msgid "pkg conditional too long [%s:%d]\n"
+msgstr ""
+
+msgid "The following packages have unmet dependencies:\n"
+msgstr ""
+
+#, c-format
+msgid " %s: Depends: %s\n"
+msgstr ""
+
+msgid "The following packages have been EXCLUDED:\n"
+msgstr ""
+
+msgid "The following NEW packages will be installed:\n"
+msgstr ""
+
+msgid "The following packages will be REMOVED:\n"
+msgstr ""
+
+msgid "The following packages will be upgraded:\n"
+msgstr ""
+
+#, c-format
+msgid "%d upgraded, %d newly installed, %d to remove and %d not upgraded.\n"
+msgstr ""
+
+#, c-format
+msgid "Need to get %dK of archives.\n"
+msgstr ""
+
+#, c-format
+msgid "After unpacking %dK disk space will be freed.\n"
+msgstr ""
+
+#, c-format
+msgid "After unpacking %dK of additional disk space will be used.\n"
+msgstr ""
+
+msgid "Do you want to continue? [y/N] "
+msgstr ""
+
+msgid "Abort.\n"
+msgstr ""
diff --git a/src/main.c b/src/main.c
index 5dca634..f430a6f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -53,6 +53,12 @@ int main( int argc, char *argv[] ){
setvbuf(stdout, (char *)NULL, _IONBF, 0); /* unbuffer stdout */
+ #ifdef ENABLE_NLS
+ setlocale(LC_MESSAGES,getenv("LANG"));
+ bindtextdomain(PROGRAM_NAME,LOCALESDIR);
+ textdomain(PROGRAM_NAME);
+ #endif
+
if( argc < 2 ) usage(), exit(1);
/* load up the configuration file */
@@ -222,7 +228,7 @@ int main( int argc, char *argv[] ){
void usage(){
printf("%s - Jason Woodward <woodwardj at jaos dot org>\n",PROGRAM_NAME);
- printf(_("A implementation of the Debian APT system to Slackware\n"));
+ printf(_("An implementation of the Debian APT system to Slackware\n"));
printf(_("Usage:\n"));
printf(_("%s [option(s)] [target]\n"),PROGRAM_NAME);
printf("\n");