[Pkg-ganeti-devel] [ganeti] 20/29: Make debconf templates translatable
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Fri Mar 7 10:15:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ganeti.
commit d5f3a029cb14b381704db80187344344e1cf6203
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date: Thu Mar 6 16:16:50 2014 +0200
Make debconf templates translatable
---
debian/ganeti-VER.prerm | 2 ++
debian/ganeti-VER.templates | 12 ++++++------
debian/ganeti-haskell-VER.prerm | 2 ++
debian/ganeti-haskell-VER.templates | 12 ++++++------
debian/ganeti-htools-VER.prerm | 2 ++
debian/ganeti-htools-VER.templates | 12 ++++++------
6 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/debian/ganeti-VER.prerm b/debian/ganeti-VER.prerm
index 78bec7c..560cdbf 100644
--- a/debian/ganeti-VER.prerm
+++ b/debian/ganeti-VER.prerm
@@ -12,6 +12,8 @@ target=$(readlink /etc/ganeti/lib || true)
if [ "$target" = "/usr/lib/ganeti/VER" ]; then
db_version 2.0
db_fset ganeti-VER/abort-removal seen false
+ db_subst ganeti-VER/abort-removal version VER
+ db_subst ganeti-VER/abort-removal package ganeti-VER
db_input critical ganeti-VER/abort-removal
db_go
db_get ganeti-VER/abort-removal
diff --git a/debian/ganeti-VER.templates b/debian/ganeti-VER.templates
index 99a2955..837a15e 100644
--- a/debian/ganeti-VER.templates
+++ b/debian/ganeti-VER.templates
@@ -1,13 +1,13 @@
Template: ganeti-VER/abort-removal
Type: boolean
Default: true
-Description: Abort ganeti-VER removal?
- You are attempting to remove ganeti-VER, but it seems that the running
- Ganeti version is still VER.
+_Description: Abort ${package} removal?
+ You are attempting to remove ${package}, but it seems that the running Ganeti
+ version is still ${version}.
.
- This can happen if you upgrade the Ganeti package to a new minor version, but
- have not run `gnt-cluster upgrade' yet. Removing the package will cause Ganeti to
+ This can happen if you upgrade the ganeti package to a new minor version, but
+ have not run `gnt-cluster upgrade' yet. Removing ${package} will cause Ganeti to
stop functioning correctly.
.
It is highly recommended to abort removal now and upgrade your cluster before
- removing ganeti-VER.
+ removing ${package}.
diff --git a/debian/ganeti-haskell-VER.prerm b/debian/ganeti-haskell-VER.prerm
index 54d59c5..2e94f18 100644
--- a/debian/ganeti-haskell-VER.prerm
+++ b/debian/ganeti-haskell-VER.prerm
@@ -12,6 +12,8 @@ target=$(readlink /etc/ganeti/lib || true)
if [ "$target" = "/usr/lib/ganeti/VER" ]; then
db_version 2.0
db_fset ganeti-haskell-VER/abort-removal seen false
+ db_subst ganeti-haskell-VER/abort-removal version VER
+ db_subst ganeti-haskell-VER/abort-removal package ganeti-haskell-VER
db_input critical ganeti-haskell-VER/abort-removal
db_go
db_get ganeti-haskell-VER/abort-removal
diff --git a/debian/ganeti-haskell-VER.templates b/debian/ganeti-haskell-VER.templates
index 3863768..dbe9416 100644
--- a/debian/ganeti-haskell-VER.templates
+++ b/debian/ganeti-haskell-VER.templates
@@ -1,13 +1,13 @@
Template: ganeti-haskell-VER/abort-removal
Type: boolean
Default: true
-Description: Abort ganeti-haskell-VER removal?
- You are attempting to remove ganeti-haskell-VER, but it seems that the running
- Ganeti version is still VER.
+_Description: Abort ${package} removal?
+ You are attempting to remove ${package}, but it seems that the running Ganeti
+ version is still ${version}.
.
- This can happen if you upgrade the Ganeti package to a new minor version, but
- have not run `gnt-cluster upgrade' yet. Removing the package will cause Ganeti to
+ This can happen if you upgrade the ganeti package to a new minor version, but
+ have not run `gnt-cluster upgrade' yet. Removing ${package} will cause Ganeti to
stop functioning correctly.
.
It is highly recommended to abort removal now and upgrade your cluster before
- removing ganeti-haskell-VER.
+ removing ${package}.
diff --git a/debian/ganeti-htools-VER.prerm b/debian/ganeti-htools-VER.prerm
index 3271404..80e876e 100644
--- a/debian/ganeti-htools-VER.prerm
+++ b/debian/ganeti-htools-VER.prerm
@@ -12,6 +12,8 @@ target=$(readlink /etc/ganeti/lib || true)
if [ "$target" = "/usr/lib/ganeti/VER" ]; then
db_version 2.0
db_fset ganeti-htools-VER/abort-removal seen false
+ db_subst ganeti-htools-VER/abort-removal version VER
+ db_subst ganeti-htools-VER/abort-removal package ganeti-htools-VER
db_input critical ganeti-htools-VER/abort-removal
db_go
db_get ganeti-htools-VER/abort-removal
diff --git a/debian/ganeti-htools-VER.templates b/debian/ganeti-htools-VER.templates
index 2825adb..f6a2794 100644
--- a/debian/ganeti-htools-VER.templates
+++ b/debian/ganeti-htools-VER.templates
@@ -1,13 +1,13 @@
Template: ganeti-htools-VER/abort-removal
Type: boolean
Default: true
-Description: Abort ganeti-htools-VER removal?
- You are attempting to remove ganeti-htools-VER, but it seems that the running
- Ganeti version is still VER.
+_Description: Abort ${package} removal?
+ You are attempting to remove ${package}, but it seems that the running Ganeti
+ version is still ${version}.
.
- This can happen if you upgrade the Ganeti package to a new minor version, but
- have not run `gnt-cluster upgrade' yet. Removing the package will cause Ganeti to
+ This can happen if you upgrade the ganeti package to a new minor version, but
+ have not run `gnt-cluster upgrade' yet. Removing ${package} will cause Ganeti to
stop functioning correctly.
.
It is highly recommended to abort removal now and upgrade your cluster before
- removing ganeti-htools-VER.
+ removing ${package}.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git
More information about the Pkg-ganeti-devel
mailing list