Code

Make the debconf templates translatable
authortolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Mon, 5 Mar 2012 13:57:14 +0000 (13:57 +0000)
committertolimar <tolimar@98d490a6-b407-0410-aaaa-fdee166ba3f5>
Mon, 5 Mar 2012 13:57:14 +0000 (13:57 +0000)
git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@2004 98d490a6-b407-0410-aaaa-fdee166ba3f5

debian/control
debian/nagvis.templates
debian/po/POTFILES.in [new file with mode: 0644]
debian/po/templates.pot [new file with mode: 0644]
debian/rules

index aeba191ca9a5d502ad09170189becbc32ec4e209..01d582ccdc256aa877d7c5c21df633dabe82b836 100644 (file)
@@ -3,7 +3,7 @@ Section: net
 Priority: extra
 Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
 Uploaders: Jan Wagner <waja@cyconet.org>, Alexander Wirt <formorer@debian.org>, Alexander Reichle-Schmehl <tolimar@debian.org>
 Priority: extra
 Maintainer: Debian Nagios Maintainer Group <pkg-nagios-devel@lists.alioth.debian.org>
 Uploaders: Jan Wagner <waja@cyconet.org>, Alexander Wirt <formorer@debian.org>, Alexander Reichle-Schmehl <tolimar@debian.org>
-Build-Depends: debhelper (>= 7.0.50~), quilt
+Build-Depends: debhelper (>= 7.0.50~), quilt, po-debconf
 Standards-Version: 3.9.2
 Homepage: http://www.nagvis.org
 Vcs-Svn: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk/
 Standards-Version: 3.9.2
 Homepage: http://www.nagvis.org
 Vcs-Svn: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk/
index 332f287b8ce4fd9bd39dbca59eff51252a0814de..799e1fd6384ab9b6ab1539d448652629dcab7420 100644 (file)
@@ -2,7 +2,7 @@ Template: nagvis/monitoring_system
 Type: select
 Default: icinga
 Choices: icinga, nagios, other
 Type: select
 Default: icinga
 Choices: icinga, nagios, other
-Description: For which monitoring suite should NagVis be configured?
+_Description: For which monitoring suite should NagVis be configured?
  This NagVis package supports the monitoring suites Icinga as well as
  well as Nagios using the check-mk-live broker backend.  please choose the,
  respective entry.  
  This NagVis package supports the monitoring suites Icinga as well as
  well as Nagios using the check-mk-live broker backend.  please choose the,
  respective entry.  
@@ -14,7 +14,7 @@ Description: For which monitoring suite should NagVis be configured?
 Template: nagvis/delete_on_purge
 Type: boolean
 Default: false
 Template: nagvis/delete_on_purge
 Type: boolean
 Default: false
-Description: Should the user created NagVis data be removed?
+_Description: Should the user created NagVis data be removed?
  During usage NagVis creates some file in /var/cache/nagvis and and
  /etc/nagvis (e.g. background images and map files), including a small
  database for authentification.  If you don't need any of these files,
  During usage NagVis creates some file in /var/cache/nagvis and and
  /etc/nagvis (e.g. background images and map files), including a small
  database for authentification.  If you don't need any of these files,
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644 (file)
index 0000000..3d21aab
--- /dev/null
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] nagvis.templates
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644 (file)
index 0000000..a9cb1ae
--- /dev/null
@@ -0,0 +1,58 @@
+# 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"
+"Report-Msgid-Bugs-To: nagvis@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-05 14:48+0100\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"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Description
+#: ../nagvis.templates:1001
+msgid "For which monitoring suite should NagVis be configured?"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../nagvis.templates:1001
+msgid ""
+"This NagVis package supports the monitoring suites Icinga as well as well as "
+"Nagios using the check-mk-live broker backend.  please choose the, "
+"respective entry."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../nagvis.templates:1001
+msgid ""
+"If you would like to use NagVis with a different backend or a different "
+"monitoring suite, please choose \"other\".  You'll have to configure it "
+"manually."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../nagvis.templates:2001
+msgid "Should the user created NagVis data be removed?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../nagvis.templates:2001
+msgid ""
+"During usage NagVis creates some file in /var/cache/nagvis and and /etc/"
+"nagvis (e.g. background images and map files), including a small database "
+"for authentification.  If you don't need any of these files, they can be "
+"removed now, or you may want to keep them and clean up by hand later."
+msgstr ""
index 4014b36ba90499469da1d5fb70bfb6552686e83c..27b1337b7c6ab93765049f8331ad1fc32ad6c6af 100755 (executable)
@@ -55,3 +55,8 @@ override_dh_install:
 
 override_dh_fixperms:
        dh_fixperms -X /var/cache/nagvis -X /etc/nagvis -X /var/lib/nagvis/userfiles/images
 
 override_dh_fixperms:
        dh_fixperms -X /var/cache/nagvis -X /etc/nagvis -X /var/lib/nagvis/userfiles/images
+
+
+override_dh_clean:
+       dh_clean
+       debconf-updatepo