[Kimchi-devel] [PATCH 1/2] Add Power-Off warning for non-persistent guests

Christy Perez christy at linux.vnet.ibm.com
Tue Aug 19 18:32:56 UTC 2014


If a user is managing guests created outside kimchi, and tries
to Power Off a guest that is non-persistent, the guest will be deleted.
Kimchi calls destroy for Power Off, which is destructive for
non-persistent guests. This warning message makes users aware
of that.

Signed-off-by: Christy Perez <christy at linux.vnet.ibm.com>
---
 po/en_US.po             | 15 ++++++++++++---
 po/kimchi.pot           | 10 ++++++++--
 po/pt_BR.po             | 16 +++++++++++++---
 po/zh_CN.po             | 10 ++++++++--
 ui/pages/i18n.json.tmpl |  1 +
 5 files changed, 42 insertions(+), 10 deletions(-)

diff --git a/po/en_US.po b/po/en_US.po
index a34da3a..d51a638 100644
--- a/po/en_US.po
+++ b/po/en_US.po
@@ -6,7 +6,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: kimchi 0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-08-08 15:27-0300\n"
+"POT-Creation-Date: 2014-08-19 13:13-0500\n"
 "PO-Revision-Date: 2013-07-11 17:32-0400\n"
 "Last-Translator: Crístian Viana <vianac at linux.vnet.ibm.com>\n"
 "Language-Team: English\n"
@@ -1366,10 +1366,12 @@ msgstr "Power off Confirmation"
 
 msgid ""
 "This action may produce undesirable results, for example unflushed disk "
-"cache in the guest. Would you like to continue?"
+"cache in the guest. If your guest is non-persistent (e.g. created manually "
+"using virsh create), it will be destroyed. Would you like to continue?"
 msgstr ""
 "This action may produce undesirable results, for example unflushed disk "
-"cache in the guest. Would you like to continue?"
+"cache in the guest. If your guest is non-persistent (e.g. created manually "
+"using virsh create), it will be destroyed. Would you like to continue?"
 
 msgid "Reset Confirmation"
 msgstr "Reset Confirmation"
@@ -1412,6 +1414,13 @@ msgstr "Successfully replaced!"
 msgid "Successfully detached!"
 msgstr "Successfully detached!"
 
+msgid ""
+"This disk will be detached permanently and you can re-attach it. Continue to "
+"detach it?"
+msgstr ""
+"This CDROM will be detached permanently and you can re-attach it. Continue "
+"to detach it?"
+
 msgid "The VLAN id must be between 1 and 4094."
 msgstr "The VLAN id must be between 1 and 4094."
 
diff --git a/po/kimchi.pot b/po/kimchi.pot
index d8354fa..70ab26e 100755
--- a/po/kimchi.pot
+++ b/po/kimchi.pot
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-08-08 15:27-0300\n"
+"POT-Creation-Date: 2014-08-19 13:13-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -1294,7 +1294,8 @@ msgstr ""
 
 msgid ""
 "This action may produce undesirable results, for example unflushed disk "
-"cache in the guest. Would you like to continue?"
+"cache in the guest. If your guest is non-persistent (e.g. created manually "
+"using virsh create), it will be destroyed. Would you like to continue?"
 msgstr ""
 
 msgid "Reset Confirmation"
@@ -1334,6 +1335,11 @@ msgstr ""
 msgid "Successfully detached!"
 msgstr ""
 
+msgid ""
+"This disk will be detached permanently and you can re-attach it. Continue to "
+"detach it?"
+msgstr ""
+
 msgid "The VLAN id must be between 1 and 4094."
 msgstr ""
 
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 452e778..c6634bc 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: kimchi 1.0\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-08-08 15:27-0300\n"
+"POT-Creation-Date: 2014-08-19 13:13-0500\n"
 "PO-Revision-Date: 2013-06-27 10:48+0000\n"
 "Last-Translator: Crístian Viana <vianac at linux.vnet.ibm.com>\n"
 "Language-Team: Aline Manera <alinefm at br.ibm.com>\n"
@@ -1429,10 +1429,13 @@ msgstr "Confirmação de desligamento forçado"
 
 msgid ""
 "This action may produce undesirable results, for example unflushed disk "
-"cache in the guest. Would you like to continue?"
+"cache in the guest. If your guest is non-persistent (e.g. created manually "
+"using virsh create), it will be destroyed. Would you like to continue?"
 msgstr ""
 "Essa ação pode produzir resultados não desejáveis, como por exemplo cache de "
-"disco não atualizado no guest. Deseja continuar?"
+"disco não atualizado no guest. Se a máquina virtual não é persistente (ex: "
+"criada manualmente usando 'virsh create'), ela será destruída.Deseja "
+"continuar?"
 
 msgid "Reset Confirmation"
 msgstr "Confirmação de reinicialização"
@@ -1475,6 +1478,13 @@ msgstr "Substituido com sucesso!"
 msgid "Successfully detached!"
 msgstr "Removido com sucesso!"
 
+msgid ""
+"This disk will be detached permanently and you can re-attach it. Continue to "
+"detach it?"
+msgstr ""
+"Esse CDROM será desconectado permanentemente e você pode reconectá-lo. "
+"Deseja continuar a remoção? "
+
 msgid "The VLAN id must be between 1 and 4094."
 msgstr "VLAN id deve ser um número entre 1 e 4094."
 
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 83c7018..c5be012 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -20,7 +20,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: kimchi 0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-08-08 15:27-0300\n"
+"POT-Creation-Date: 2014-08-19 13:13-0500\n"
 "PO-Revision-Date: 2013-06-27 10:48+0000\n"
 "Last-Translator: ShaoHe Feng <shaohef at linux.vnet.ibm.com>\n"
 "Language-Team: ShaoHe Feng <shaohef at linux.vnet.ibm.com>\n"
@@ -1315,7 +1315,8 @@ msgstr "关闭电源确认"
 
 msgid ""
 "This action may produce undesirable results, for example unflushed disk "
-"cache in the guest. Would you like to continue?"
+"cache in the guest. If your guest is non-persistent (e.g. created manually "
+"using virsh create), it will be destroyed. Would you like to continue?"
 msgstr "这样做可能导致不良后果,比如客户机磁盘缓存未刷新,确认要继续吗?"
 
 msgid "Reset Confirmation"
@@ -1355,6 +1356,11 @@ msgstr "成功替换"
 msgid "Successfully detached!"
 msgstr "成功卸载"
 
+msgid ""
+"This disk will be detached permanently and you can re-attach it. Continue to "
+"detach it?"
+msgstr "CDROM将被永久卸载,你可以重新装载它。继续卸载?"
+
 msgid "The VLAN id must be between 1 and 4094."
 msgstr "VLAN 标识符必须在1至4094之间"
 
diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl
index ccfb081..754c6df 100644
--- a/ui/pages/i18n.json.tmpl
+++ b/ui/pages/i18n.json.tmpl
@@ -119,6 +119,7 @@
     "KCHVM6002M": "$_("Power off Confirmation")",
     "KCHVM6003M": "$_("This action may produce undesirable results, "
                       "for example unflushed disk cache in the guest. "
+                      "If your guest is non-persistent (e.g. created manually using virsh create), it will be destroyed. "
                       "Would you like to continue?")",
     "KCHVM6004M": "$_("Reset Confirmation")",
     "KCHVM6005M": "$_("There is a risk of data loss caused by reset without"
-- 
1.9.3




More information about the Kimchi-devel mailing list