From e9c59d25a792fc3f897608bc6b54b92d72ba4271 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 2 Apr 2004 15:19:23 +0000 Subject: [PATCH] Basic internationalisation support. --- po/Makefile.in | 47 ++++++++++++++ po/device-mapper.po | 151 ++++++++++++++++++++++++++++++++++++++++++++ po/pogen.h | 24 +++++++ 3 files changed, 222 insertions(+) create mode 100644 po/Makefile.in create mode 100644 po/device-mapper.po create mode 100644 po/pogen.h diff --git a/po/Makefile.in b/po/Makefile.in new file mode 100644 index 0000000..a2b3223 --- /dev/null +++ b/po/Makefile.in @@ -0,0 +1,47 @@ +# +# Copyright (C) 2004 Red Hat, Inc. All rights reserved. +# +# This file is part of the device-mapper userspace tools. +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions +# of the GNU General Public License v.2. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ + +LANGS=de + +TARGETS=$(LANGS:%=%.mo) + +POSOURCES = $(top_srcdir)/dmsetup/*.pot $(top_srcdir)/lib/*.pot \ + $(top_srcdir)/lib/*/*.pot + +include ../make.tmpl + +install: $(TARGETS) + @echo Installing translation files in $(localedir) + @( \ + for lang in $(LANGS); do \ + $(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 $$lang.mo \ + $(localedir)/$$lang/LC_MESSAGES/@INTL_PACKAGE@.mo;\ + done; \ + ) + +pofile: device-mapper.po + +device-mapper.po: Makefile $(POSOURCES) + @echo Compiling string table + @xgettext -C -F --keyword=_log --keyword=log_debug \ + --keyword=log_info --keyword=_ --keyword=N_ \ + --keyword=log_notice --keyword=log_warn --keyword=log_err \ + --keyword=log_fatal --keyword=log_debug --keyword=log_error \ + --keyword=log_print --keyword=log_verbose \ + --keyword=log_very_verbose -d - \ + $(POSOURCES) > $@ + diff --git a/po/device-mapper.po b/po/device-mapper.po new file mode 100644 index 0000000..4d79ceb --- /dev/null +++ b/po/device-mapper.po @@ -0,0 +1,151 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2004-02-24 15:16+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ioctl/libdevmapper.c:113 +#, c-format +msgid "%s: open failed: %s" +msgstr "" + +#: ioctl/libdevmapper.c:114 +msgid "Is device-mapper driver missing from kernel?" +msgstr "" + +#: ioctl/libdevmapper.c:555 +msgid "Failed to get device-mapper version" +msgstr "" + +#: ioctl/libdevmapper.c:591 +#, c-format +msgid "" +"device-mapper ioctl protocol version %d failed. Trying protocol version 1." +msgstr "" + +#: ioctl/libdevmapper.c:595 +msgid "Using device-mapper ioctl protocol version 1" +msgstr "" + +#: ioctl/libdevmapper.c:603 +#, c-format +msgid "Incompatible libdevmapper %s%s and kernel driver %s" +msgstr "" + +#: ioctl/libdevmapper.c:760 +#, c-format +msgid "dm_task_set_newname: strdup(%s) failed" +msgstr "" + +#: ioctl/libdevmapper.c:780 +#, c-format +msgid "create_target: malloc(%d) failed" +msgstr "" + +#: ioctl/libdevmapper.c:787 +msgid "create_target: strdup(params) failed" +msgstr "" + +#: ioctl/libdevmapper.c:792 +msgid "create_target: strdup(type) failed" +msgstr "" + +#: ioctl/libdevmapper.c:831 +#, c-format +msgid "t->params= '%s'" +msgstr "" + +#: ioctl/libdevmapper.c:864 +msgid "targets and newname are incompatible" +msgstr "" + +#: ioctl/libdevmapper.c:902 +msgid "Missing major number for persistent device" +msgstr "" + +#: ioctl/libdevmapper.c:939 ioctl/libdevmapper.c:964 +msgid "Failed to create device-mapper task struct" +msgstr "" + +#: ioctl/libdevmapper.c:1008 +#, c-format +msgid "Internal error: unknown device-mapper task %d" +msgstr "" + +#: ioctl/libdevmapper.c:1024 +msgid "Couldn't create ioctl argument" +msgstr "" + +#: ioctl/libdevmapper.c:1032 +#, c-format +msgid "dm %s %s %s %s" +msgstr "" + +#: ioctl/libdevmapper.c:1041 ioctl/libdevmapper.c:1044 +#, c-format +msgid "device-mapper ioctl cmd %d failed: %s" +msgstr "" + +#: libdm-common.c:94 +#, c-format +msgid "dm_task_create: malloc(%d) failed" +msgstr "" + +#: libdm-common.c:126 +#, c-format +msgid "dm_task_set_name: Device %s not found" +msgstr "" + +#: libdm-common.c:135 +#, c-format +msgid "dm_task_set_name: strdup(%s) failed" +msgstr "" + +#: libdm-common.c:150 +#, c-format +msgid "dm_task_set_uuid: strdup(%s) failed" +msgstr "" + +#: libdm-common.c:160 +#, c-format +msgid "Setting major: %d" +msgstr "" + +#: libdm-common.c:168 +#, c-format +msgid "Setting minor: %d" +msgstr "" + +#: libdm-common.c:201 libdm-common.c:235 +#, c-format +msgid "A non-block device file at '%s' is already present" +msgstr "" + +#: libdm-common.c:210 libdm-common.c:245 libdm-common.c:271 +#, c-format +msgid "Unable to unlink device node for '%s'" +msgstr "" + +#: libdm-common.c:217 +#, c-format +msgid "Unable to make device node for '%s'" +msgstr "" + +#: libdm-common.c:252 +#, c-format +msgid "Unable to rename device node from '%s' to '%s'" +msgstr "" + +#: libdm-common.c:326 +msgid "Insufficient memory to stack mknod operation" +msgstr "" diff --git a/po/pogen.h b/po/pogen.h new file mode 100644 index 0000000..2a33819 --- /dev/null +++ b/po/pogen.h @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. + * Copyright (C) 2004 Red Hat, Inc. All rights reserved. + * + * This file is part of the device-mapper userspace tools. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU General Public License v.2. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * Macro to change log messages into a format that xgettext can handle. + * + * Note that different PRI* definitions lead to different strings for + * different architectures. + */ + +#define _log(level, file, line, format, args...) _log(format, args) + -- 2.43.5