From e6038cf5642126cdfb63eb52568843775d2b0629 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 30 Apr 2007 14:36:10 +0200 Subject: [PATCH] Use po-debconf to make translations of debconf templates possible. --- debian/collectd.templates | 2 +- debian/control | 2 +- debian/po/POTFILES.in | 2 ++ debian/po/templates.pot | 47 +++++++++++++++++++++++++++++++++++++++ debian/rules | 1 + 5 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 debian/po/POTFILES.in create mode 100644 debian/po/templates.pot diff --git a/debian/collectd.templates b/debian/collectd.templates index 7a9a6ef..1b72b06 100644 --- a/debian/collectd.templates +++ b/debian/collectd.templates @@ -1,7 +1,7 @@ Template: collectd/auto-migrate-3-4 Type: boolean Default: false -Description: Automatically try to migrate your RRD files? +_Description: Automatically try to migrate your RRD files? The layout of the RRD files created by collectd has changed significantly since version 3.x. In order to keep your old data you have to migrate it. This can be done by using /usr/lib/collectd/utils/migrate-3-4.px. This step diff --git a/debian/control b/debian/control index 9602a6f..c90a346 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: collectd Section: utils Priority: optional Maintainer: Sebastian Harl -Build-Depends: debhelper (>= 5), dpatch, autotools-dev, libcurl3-gnutls-dev, libmysqlclient15-dev | libmysqlclient14-dev, librrd2-dev | librrd0-dev, libsensors-dev, liboping-dev (>= 0.3.3), libpcap-dev, iptables-dev [!amd64 !ia64 !ppc64], nut-dev [!amd64 !ia64 !ppc64], libperl-dev +Build-Depends: debhelper (>= 5), po-debconf, dpatch, autotools-dev, libcurl3-gnutls-dev, libmysqlclient15-dev | libmysqlclient14-dev, librrd2-dev | librrd0-dev, libsensors-dev, liboping-dev (>= 0.3.3), libpcap-dev, iptables-dev [!amd64 !ia64 !ppc64], nut-dev [!amd64 !ia64 !ppc64], libperl-dev Build-Conflicts: libpthread-dev Standards-Version: 3.7.2 diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..f201e9d --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] collectd.templates + diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..e454f25 --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,47 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: sh@tokkee.org\n" +"POT-Creation-Date: 2007-04-30 08:45+0200\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" + +#. Type: boolean +#. Description +#: ../collectd.templates:1001 +msgid "Automatically try to migrate your RRD files?" +msgstr "" + +#. Type: boolean +#. Description +#: ../collectd.templates:1001 +msgid "" +"The layout of the RRD files created by collectd has changed significantly " +"since version 3.x. In order to keep your old data you have to migrate it. " +"This can be done by using /usr/lib/collectd/utils/migrate-3-4.px. This step " +"can be done automatically. In this case a backup of /var/lib/collectd/ is " +"made in /var/backups/." +msgstr "" + +#. Type: boolean +#. Description +#: ../collectd.templates:1001 +msgid "See /usr/share/doc/collectd/NEWS.Debian for details." +msgstr "" + +#. Type: boolean +#. Description +#: ../collectd.templates:1001 +msgid "" +"This script is still experimental. Do not expect it to work in all cases." +msgstr "" diff --git a/debian/rules b/debian/rules index a83d0de..7c4fe95 100755 --- a/debian/rules +++ b/debian/rules @@ -55,6 +55,7 @@ clean: unpatch -$(MAKE) distclean dh_clean + debconf-updatepo install-indep: dh_testdir -- 2.30.2