[RFC] Add an sos plugin for the kimchi platform
by Christy Perez
This plugin gathers kimchi logs as well as information
about libvirt storage pools defined on the system.
Kimchi is an HTML5-based virtualization-management platform
For more information, please visit:
https://github.com/kimchi-project/kimchi/wiki
Signed-off-by: Christy Perez <christy(a)linux.vnet.ibm.com>
---
sos/plugins/kimchi.py | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 sos/plugins/kimchi.py
diff --git a/sos/plugins/kimchi.py b/sos/plugins/kimchi.py
new file mode 100644
index 0000000..69f138e
--- /dev/null
+++ b/sos/plugins/kimchi.py
@@ -0,0 +1,39 @@
+### This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+from sos.plugins import Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin
+
+class Kimchi(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
+ """kimchi-related information
+ """
+
+ plugin_name = 'kimchi'
+ packages = ('kimchi',)
+
+ def setup(self):
+ self.add_copy_spec([
+ "/etc/kimchi/",
+ "/var/log/kimchi*"
+ ])
+
+ file_name = self.get_cmd_output_now("virsh -r pool-list --details")
+ if file_name is not None:
+ with open(file_name, 'r') as pools:
+ for pool in list(pools)[2:]:
+ try:
+ pool_name = pool.lstrip().split()[0]
+ self.get_cmd_output_now("virsh -r vol-list --pool \
+ %s --details" % pool_name)
+ except:
+ pass
--
1.9.3
10 years
[PATCH V2] issue #498: Fix typos on Kimchi messages
by Aline Manera
Also update the po files to reflect those changes.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
po/de_DE.po | 18 ++++++++++++------
po/en_US.po | 18 ++++++++++++------
po/es_ES.po | 18 ++++++++++++------
po/fr_FR.po | 20 +++++++++++++-------
po/it_IT.po | 18 ++++++++++++------
po/ja_JP.po | 18 ++++++++++++------
po/kimchi.pot | 18 ++++++++++++------
po/ko_KR.po | 18 ++++++++++++------
po/pt_BR.po | 20 +++++++++++++-------
po/ru_RU.po | 18 ++++++++++++------
po/zh_CN.po | 20 +++++++++++++-------
po/zh_TW.po | 18 ++++++++++++------
src/kimchi/i18n.py | 6 +++---
ui/pages/i18n.json.tmpl | 2 +-
ui/pages/storagepool-add-volume.html.tmpl | 4 ++--
15 files changed, 153 insertions(+), 81 deletions(-)
diff --git a/po/de_DE.po b/po/de_DE.po
index 52831eb..a66a052 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1129,7 +1129,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1160,7 +1160,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1170,6 +1170,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1407,7 +1413,7 @@ msgstr "Gäste"
msgid "Templates"
msgstr "Vorlagen"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "Ungültiger URL. Rückleitung zur Homepage."
msgid "Failed to get application configuration"
@@ -2000,10 +2006,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/en_US.po b/po/en_US.po
index 37efd19..bad843c 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1007,7 +1007,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1038,7 +1038,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1048,6 +1048,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1281,7 +1287,7 @@ msgstr ""
msgid "Templates"
msgstr ""
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr ""
msgid "Failed to get application configuration"
@@ -1833,10 +1839,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/es_ES.po b/po/es_ES.po
index 1999dd2..e4051ec 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1147,7 +1147,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1178,7 +1178,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1188,6 +1188,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1425,7 +1431,7 @@ msgstr "Invitados"
msgid "Templates"
msgstr "Plantillas"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL no válido. Redirigido a la página inicial."
msgid "Failed to get application configuration"
@@ -2017,10 +2023,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 3e19c91..1042d55 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2014-08-27 21:30+0000\n"
"Last-Translator: BobSynfig\n"
"Language-Team: French (http://www.transifex.com/projects/p/kimchi/language/"
@@ -1162,7 +1162,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1193,7 +1193,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1203,6 +1203,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1441,7 +1447,7 @@ msgstr "Invités"
msgid "Templates"
msgstr "Modèles"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL invalide. Redirigé vers la page d'accueil."
msgid "Failed to get application configuration"
@@ -2044,11 +2050,11 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr "Saisir une URL distante ici"
-msgid "Upload an file"
+msgid "Upload a file"
msgstr "Charger un fichier"
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
-msgstr "Sélectionner le fichier ISO (avec suffixe .iso) à charger"
+msgid "Choose the file you want to upload."
+msgstr ""
msgid "Add Template"
msgstr "Ajouter un Modèle"
diff --git a/po/it_IT.po b/po/it_IT.po
index 2b7d69b..a31414b 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1116,7 +1116,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1147,7 +1147,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1157,6 +1157,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1394,7 +1400,7 @@ msgstr "Guest"
msgid "Templates"
msgstr "Modelli"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL non valido. Reindirizzato alla home page."
msgid "Failed to get application configuration"
@@ -1987,10 +1993,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/ja_JP.po b/po/ja_JP.po
index 782992b..3188aa3 100644
--- a/po/ja_JP.po
+++ b/po/ja_JP.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1128,7 +1128,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1159,7 +1159,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1169,6 +1169,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1404,7 +1410,7 @@ msgstr "ゲスト"
msgid "Templates"
msgstr "テンプレート"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL が無効です。ホーム・ページにリダイレクトします。"
msgid "Failed to get application configuration"
@@ -1986,10 +1992,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/kimchi.pot b/po/kimchi.pot
index 08fb697..932afb1 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
@@ -1007,7 +1007,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1038,7 +1038,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1048,6 +1048,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1281,7 +1287,7 @@ msgstr ""
msgid "Templates"
msgstr ""
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr ""
msgid "Failed to get application configuration"
@@ -1833,10 +1839,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/ko_KR.po b/po/ko_KR.po
index f2e0ad1..f61445b 100644
--- a/po/ko_KR.po
+++ b/po/ko_KR.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1059,7 +1059,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1090,7 +1090,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1100,6 +1100,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1336,7 +1342,7 @@ msgstr "게스트"
msgid "Templates"
msgstr "템플리트"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "올바르지 않은 URL입니다. 홈 페이지로 경로 지정됩니다."
msgid "Failed to get application configuration"
@@ -1909,10 +1915,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 8c6f821..dc1649d 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2014-09-16 18:45+0000\n"
"Last-Translator: Crístian Deives dos Santos Viana <cristiandeives@gmail."
"com>\n"
@@ -1138,7 +1138,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1169,7 +1169,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1179,6 +1179,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1416,7 +1422,7 @@ msgstr "Guests"
msgid "Templates"
msgstr "Modelos"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL inválida. Redirecionado para a Página Inicial."
msgid "Failed to get application configuration"
@@ -2012,11 +2018,11 @@ msgstr "Fazer download de uma URL remota"
msgid "Enter the remote URL here."
msgstr "Digite a URL remota aqui."
-msgid "Upload an file"
+msgid "Upload a file"
msgstr "Fazer upload de um arquivo"
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
-msgstr "Escolha o arquivo ISO (com extensão .iso) que você quer fazer upload."
+msgid "Choose the file you want to upload."
+msgstr ""
msgid "Add Template"
msgstr "Adicionar Modelo"
diff --git a/po/ru_RU.po b/po/ru_RU.po
index acf326d..d8f8af0 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2014-08-28 17:32+0000\n"
"Last-Translator: Aline Manera <aline.manera(a)gmail.com>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/kimchi/language/"
@@ -1061,7 +1061,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1092,7 +1092,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1102,6 +1102,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1337,7 +1343,7 @@ msgstr "Гостевые системы"
msgid "Templates"
msgstr "Шаблоны"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "Недопустимый URL. Перенаправление на домашнюю страницу."
msgid "Failed to get application configuration"
@@ -1913,10 +1919,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 9ad4e8d..0eeb631 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-06-27 10:48+0000\n"
"Last-Translator: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>\n"
"Language-Team: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>\n"
@@ -1030,7 +1030,7 @@ msgstr "软件仓库不支持配置类型: %(items)s"
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1061,7 +1061,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1071,6 +1071,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1304,7 +1310,7 @@ msgstr "客户机"
msgid "Templates"
msgstr "模板"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "无效的URL,已重定向到首页"
msgid "Failed to get application configuration"
@@ -1861,11 +1867,11 @@ msgstr "从远程URL获取"
msgid "Enter the remote URL here."
msgstr "在这里输入远程URL。"
-msgid "Upload an file"
+msgid "Upload a file"
msgstr "上传一个文件"
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
-msgstr "选择您需要上传的ISO文件(以.iso为后缀名)。"
+msgid "Choose the file you want to upload."
+msgstr ""
msgid "Add Template"
msgstr "创建模板"
diff --git a/po/zh_TW.po b/po/zh_TW.po
index 6709233..cd389d7 100644
--- a/po/zh_TW.po
+++ b/po/zh_TW.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:40-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1010,7 +1010,7 @@ msgstr ""
#, python-format
msgid ""
-"Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."
+"Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."
msgstr ""
#, python-format
@@ -1041,7 +1041,7 @@ msgstr ""
#, python-format
msgid ""
-"Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: "
+"Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: "
"%(err)s"
msgstr ""
@@ -1051,6 +1051,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot of virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1284,7 +1290,7 @@ msgstr "客體"
msgid "Templates"
msgstr "範本"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL 無效。已重新導向至首頁。"
msgid "Failed to get application configuration"
@@ -1847,10 +1853,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/src/kimchi/i18n.py b/src/kimchi/i18n.py
index e43fe9c..45aa15e 100644
--- a/src/kimchi/i18n.py
+++ b/src/kimchi/i18n.py
@@ -311,15 +311,15 @@ messages = {
"KCHREPOS0027E": _("Unable to remove repository. Details: '%(err)s'"),
"KCHREPOS0028E": _("Configuration items: '%(items)s' are not supported by repository manager"),
- "KCHSNAP0001E": _("Virtual machine '%(vm)s' must be stopped before creating a snapshot on it."),
+ "KCHSNAP0001E": _("Virtual machine '%(vm)s' must be stopped before creating a snapshot of it."),
"KCHSNAP0002E": _("Unable to create snapshot '%(name)s' on virtual machine '%(vm)s'. Details: %(err)s"),
"KCHSNAP0003E": _("Snapshot '%(name)s' does not exist on virtual machine '%(vm)s'."),
"KCHSNAP0004E": _("Unable to retrieve snapshot '%(name)s' on virtual machine '%(vm)s'. Details: %(err)s"),
"KCHSNAP0005E": _("Unable to list snapshots on virtual machine '%(vm)s'. Details: %(err)s"),
"KCHSNAP0006E": _("Unable to delete snapshot '%(name)s' on virtual machine '%(vm)s'. Details: %(err)s"),
- "KCHSNAP0008E": _("Unable to retrieve current snapshot on virtual machine '%(vm)s'. Details: %(err)s"),
+ "KCHSNAP0008E": _("Unable to retrieve current snapshot of virtual machine '%(vm)s'. Details: %(err)s"),
"KCHSNAP0009E": _("Unable to revert virtual machine '%(vm)s' to snapshot '%(name)s'. Details: %(err)s"),
- "KCHSNAP0010E": _("Unable to create snapshot on virtual machine '%(vm)s' because it contains a disk with format '%(format)s'; only 'qcow2' is supported."),
+ "KCHSNAP0010E": _("Unable to create snapshot of virtual machine '%(vm)s' because it contains a disk with format '%(format)s'; only 'qcow2' is supported."),
"KCHCPUINF0001E": _("The number of vCPUs is too large for this system."),
"KCHCPUINF0002E": _("Invalid vCPU/topology combination."),
diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl
index 1edbc19..10fa4f9 100644
--- a/ui/pages/i18n.json.tmpl
+++ b/ui/pages/i18n.json.tmpl
@@ -34,7 +34,7 @@
"Storage": "$_("Storage")",
"Network": "$_("Network")",
- "KCHAPI6001E": "$_("Invalid URL. Redireced to home page.")",
+ "KCHAPI6001E": "$_("Invalid URL. Redirected to home page.")",
"KCHAPI6002E": "$_("Failed to get application configuration")",
"KCHAPI6003E": "$_("This is not a valid Linux path")",
"KCHAPI6004E": "$_("This is not a valid URL.")",
diff --git a/ui/pages/storagepool-add-volume.html.tmpl b/ui/pages/storagepool-add-volume.html.tmpl
index c0d68f6..b5f365f 100644
--- a/ui/pages/storagepool-add-volume.html.tmpl
+++ b/ui/pages/storagepool-add-volume.html.tmpl
@@ -49,12 +49,12 @@
<h2>
<input type="radio" id="volume-type-upload" class="volume-type" name="volumeType" value="upload" disabled/>
<label for="volume-type-upload">
- $_("Upload an file")
+ $_("Upload a file")
</label>
</h2>
<div class="field">
<p class="text-help">
- $_("Choose the ISO file (with .iso suffix) you want to upload.")
+ $_("Choose the file you want to upload.")
</p>
<div class="textbox-wrapper">
<input type="file" class="volume-input upload" id="volume-input-file" name="volumeLocalFile" disabled="disabled" />
--
1.9.3
10 years
[PATCH] issue #498: Fix typos on Kimchi messages
by Aline Manera
Also update the po files to reflect those changes.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
po/de_DE.po | 14 ++++++++++----
po/en_US.po | 14 ++++++++++----
po/es_ES.po | 14 ++++++++++----
po/fr_FR.po | 16 +++++++++++-----
po/it_IT.po | 14 ++++++++++----
po/ja_JP.po | 14 ++++++++++----
po/kimchi.pot | 14 ++++++++++----
po/ko_KR.po | 14 ++++++++++----
po/pt_BR.po | 16 +++++++++++-----
po/ru_RU.po | 14 ++++++++++----
po/zh_CN.po | 16 +++++++++++-----
po/zh_TW.po | 14 ++++++++++----
ui/pages/i18n.json.tmpl | 2 +-
ui/pages/storagepool-add-volume.html.tmpl | 4 ++--
14 files changed, 126 insertions(+), 54 deletions(-)
diff --git a/po/de_DE.po b/po/de_DE.po
index 52831eb..8fdc2cd 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1170,6 +1170,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1407,7 +1413,7 @@ msgstr "Gäste"
msgid "Templates"
msgstr "Vorlagen"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "Ungültiger URL. Rückleitung zur Homepage."
msgid "Failed to get application configuration"
@@ -2000,10 +2006,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/en_US.po b/po/en_US.po
index 37efd19..9c1f99b 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1048,6 +1048,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1281,7 +1287,7 @@ msgstr ""
msgid "Templates"
msgstr ""
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr ""
msgid "Failed to get application configuration"
@@ -1833,10 +1839,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/es_ES.po b/po/es_ES.po
index 1999dd2..59130cc 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1188,6 +1188,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1425,7 +1431,7 @@ msgstr "Invitados"
msgid "Templates"
msgstr "Plantillas"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL no válido. Redirigido a la página inicial."
msgid "Failed to get application configuration"
@@ -2017,10 +2023,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 3e19c91..f9465d6 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2014-08-27 21:30+0000\n"
"Last-Translator: BobSynfig\n"
"Language-Team: French (http://www.transifex.com/projects/p/kimchi/language/"
@@ -1203,6 +1203,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1441,7 +1447,7 @@ msgstr "Invités"
msgid "Templates"
msgstr "Modèles"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL invalide. Redirigé vers la page d'accueil."
msgid "Failed to get application configuration"
@@ -2044,11 +2050,11 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr "Saisir une URL distante ici"
-msgid "Upload an file"
+msgid "Upload a file"
msgstr "Charger un fichier"
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
-msgstr "Sélectionner le fichier ISO (avec suffixe .iso) à charger"
+msgid "Choose the file you want to upload."
+msgstr ""
msgid "Add Template"
msgstr "Ajouter un Modèle"
diff --git a/po/it_IT.po b/po/it_IT.po
index 2b7d69b..2cc5fef 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1157,6 +1157,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1394,7 +1400,7 @@ msgstr "Guest"
msgid "Templates"
msgstr "Modelli"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL non valido. Reindirizzato alla home page."
msgid "Failed to get application configuration"
@@ -1987,10 +1993,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/ja_JP.po b/po/ja_JP.po
index 782992b..62d5ef7 100644
--- a/po/ja_JP.po
+++ b/po/ja_JP.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1169,6 +1169,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1404,7 +1410,7 @@ msgstr "ゲスト"
msgid "Templates"
msgstr "テンプレート"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL が無効です。ホーム・ページにリダイレクトします。"
msgid "Failed to get application configuration"
@@ -1986,10 +1992,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/kimchi.pot b/po/kimchi.pot
index 08fb697..420f097 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL(a)li.org>\n"
@@ -1048,6 +1048,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1281,7 +1287,7 @@ msgstr ""
msgid "Templates"
msgstr ""
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr ""
msgid "Failed to get application configuration"
@@ -1833,10 +1839,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/ko_KR.po b/po/ko_KR.po
index f2e0ad1..dc4ae3a 100644
--- a/po/ko_KR.po
+++ b/po/ko_KR.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1100,6 +1100,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1336,7 +1342,7 @@ msgstr "게스트"
msgid "Templates"
msgstr "템플리트"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "올바르지 않은 URL입니다. 홈 페이지로 경로 지정됩니다."
msgid "Failed to get application configuration"
@@ -1909,10 +1915,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 8c6f821..fd815a3 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2014-09-16 18:45+0000\n"
"Last-Translator: Crístian Deives dos Santos Viana <cristiandeives@gmail."
"com>\n"
@@ -1179,6 +1179,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1416,7 +1422,7 @@ msgstr "Guests"
msgid "Templates"
msgstr "Modelos"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL inválida. Redirecionado para a Página Inicial."
msgid "Failed to get application configuration"
@@ -2012,11 +2018,11 @@ msgstr "Fazer download de uma URL remota"
msgid "Enter the remote URL here."
msgstr "Digite a URL remota aqui."
-msgid "Upload an file"
+msgid "Upload a file"
msgstr "Fazer upload de um arquivo"
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
-msgstr "Escolha o arquivo ISO (com extensão .iso) que você quer fazer upload."
+msgid "Choose the file you want to upload."
+msgstr ""
msgid "Add Template"
msgstr "Adicionar Modelo"
diff --git a/po/ru_RU.po b/po/ru_RU.po
index acf326d..ebd32e2 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2014-08-28 17:32+0000\n"
"Last-Translator: Aline Manera <aline.manera(a)gmail.com>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/kimchi/language/"
@@ -1102,6 +1102,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1337,7 +1343,7 @@ msgstr "Гостевые системы"
msgid "Templates"
msgstr "Шаблоны"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "Недопустимый URL. Перенаправление на домашнюю страницу."
msgid "Failed to get application configuration"
@@ -1913,10 +1919,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 9ad4e8d..b6ca095 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-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-06-27 10:48+0000\n"
"Last-Translator: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>\n"
"Language-Team: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>\n"
@@ -1071,6 +1071,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1304,7 +1310,7 @@ msgstr "客户机"
msgid "Templates"
msgstr "模板"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "无效的URL,已重定向到首页"
msgid "Failed to get application configuration"
@@ -1861,11 +1867,11 @@ msgstr "从远程URL获取"
msgid "Enter the remote URL here."
msgstr "在这里输入远程URL。"
-msgid "Upload an file"
+msgid "Upload a file"
msgstr "上传一个文件"
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
-msgstr "选择您需要上传的ISO文件(以.iso为后缀名)。"
+msgid "Choose the file you want to upload."
+msgstr ""
msgid "Add Template"
msgstr "创建模板"
diff --git a/po/zh_TW.po b/po/zh_TW.po
index 6709233..da3aa16 100644
--- a/po/zh_TW.po
+++ b/po/zh_TW.po
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: kimchi 0.1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-12-01 12:26-0200\n"
+"POT-Creation-Date: 2014-12-05 13:06-0200\n"
"PO-Revision-Date: 2013-07-11 17:32-0400\n"
"Last-Translator: Crístian Viana <vianac(a)linux.vnet.ibm.com>\n"
"Language-Team: English\n"
@@ -1051,6 +1051,12 @@ msgid ""
"%(err)s"
msgstr ""
+#, python-format
+msgid ""
+"Unable to create snapshot on virtual machine '%(vm)s' because it contains a "
+"disk with format '%(format)s'; only 'qcow2' is supported."
+msgstr ""
+
msgid "The number of vCPUs is too large for this system."
msgstr ""
@@ -1284,7 +1290,7 @@ msgstr "客體"
msgid "Templates"
msgstr "範本"
-msgid "Invalid URL. Redireced to home page."
+msgid "Invalid URL. Redirected to home page."
msgstr "URL 無效。已重新導向至首頁。"
msgid "Failed to get application configuration"
@@ -1847,10 +1853,10 @@ msgstr ""
msgid "Enter the remote URL here."
msgstr ""
-msgid "Upload an file"
+msgid "Upload a file"
msgstr ""
-msgid "Choose the ISO file (with .iso suffix) you want to upload."
+msgid "Choose the file you want to upload."
msgstr ""
msgid "Add Template"
diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl
index 1edbc19..10fa4f9 100644
--- a/ui/pages/i18n.json.tmpl
+++ b/ui/pages/i18n.json.tmpl
@@ -34,7 +34,7 @@
"Storage": "$_("Storage")",
"Network": "$_("Network")",
- "KCHAPI6001E": "$_("Invalid URL. Redireced to home page.")",
+ "KCHAPI6001E": "$_("Invalid URL. Redirected to home page.")",
"KCHAPI6002E": "$_("Failed to get application configuration")",
"KCHAPI6003E": "$_("This is not a valid Linux path")",
"KCHAPI6004E": "$_("This is not a valid URL.")",
diff --git a/ui/pages/storagepool-add-volume.html.tmpl b/ui/pages/storagepool-add-volume.html.tmpl
index c0d68f6..b5f365f 100644
--- a/ui/pages/storagepool-add-volume.html.tmpl
+++ b/ui/pages/storagepool-add-volume.html.tmpl
@@ -49,12 +49,12 @@
<h2>
<input type="radio" id="volume-type-upload" class="volume-type" name="volumeType" value="upload" disabled/>
<label for="volume-type-upload">
- $_("Upload an file")
+ $_("Upload a file")
</label>
</h2>
<div class="field">
<p class="text-help">
- $_("Choose the ISO file (with .iso suffix) you want to upload.")
+ $_("Choose the file you want to upload.")
</p>
<div class="textbox-wrapper">
<input type="file" class="volume-input upload" id="volume-input-file" name="volumeLocalFile" disabled="disabled" />
--
1.9.3
10 years
[PATCH] issue #515: Add check_i18n.py to EXTRA_DIST
by lvroyce@linux.vnet.ibm.com
From: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
make check-local errors for tarball because of
lacking "check_i18n.py", adding it to EXTRA_DIST so that
make check-local can work right.
Signed-off-by: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
---
contrib/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index e36d4cd..393306f 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -17,6 +17,7 @@
SUBDIRS = DEBIAN
EXTRA_DIST = \
+ check_i18n.py \
kimchid.sysvinit \
kimchid.service.fedora \
kimchi.spec.fedora.in \
--
1.8.3.2
10 years
[PATCH] issue#532: Fix ldap admin filtering
by lvroyce@linux.vnet.ibm.com
From: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
LDAP admin ID is filtered because leading/trailing spaces.
Fix this by truncating spaces.
Signed-off-by: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
---
src/kimchi/auth.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/kimchi/auth.py b/src/kimchi/auth.py
index 330d98c..22c5c81 100644
--- a/src/kimchi/auth.py
+++ b/src/kimchi/auth.py
@@ -222,9 +222,11 @@ class LDAPUser(User):
return self.user[USER_GROUPS]
def get_roles(self):
- admin_id = config.get("authentication", "ldap_admin_id").strip('"')
- if self.user[USER_NAME] in admin_id.split(','):
- self.user[USER_ROLES] = dict.fromkeys(tabs, 'admin')
+ admin_ids = config.get(
+ "authentication", "ldap_admin_id").strip('"').split(',')
+ for admin_id in admin_ids:
+ if self.user[USER_NAME] == admin_id.strip():
+ self.user[USER_ROLES] = dict.fromkeys(tabs, 'admin')
return self.user[USER_ROLES]
def get_user(self):
--
1.8.3.2
10 years
[PATCH] issue #475: Properly set cert and key variables when starting nginx proxy
by Aline Manera
When specifying a custom SSL certificate and key, Kimchi did not start
up due the error:
Traceback (most recent call last):
File "/usr/bin/kimchid", line 95, in sys.exit(main(sys.argv[1:]))
File "/usr/bin/kimchid", line 92, in main kimchi.server.main(options)
File "/usr/lib/python2.6/site-packages/kimchi/server.py", line 183, in main
srv = Server(options)
File "/usr/lib/python2.6/site-packages/kimchi/server.py", line 62, in init
start_proxy(options)
File "/usr/lib/python2.6/site-packages/kimchi/proxy.py", line 89, in start_proxy
_create_proxy_config(options)
File "/usr/lib/python2.6/site-packages/kimchi/proxy.py", line 78, in _create_proxy_config
cert_pem=cert, cert_key=key,
UnboundLocalError: local variable 'cert' referenced before assignment
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/kimchi/proxy.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/kimchi/proxy.py b/src/kimchi/proxy.py
index 9238147..fafa5bc 100644
--- a/src/kimchi/proxy.py
+++ b/src/kimchi/proxy.py
@@ -43,7 +43,6 @@ def _create_proxy_config(options):
Arguments:
options - OptionParser object with Kimchi config options
"""
-
# User that will run the worker process of the proxy. Fedora,
# RHEL and Suse creates an user called 'nginx' when installing
# the proxy. Ubuntu creates an user 'www-data' for it.
@@ -54,8 +53,11 @@ def _create_proxy_config(options):
user_proxy = 'www-data'
config_dir = paths.conf_dir
+ cert = options.ssl_cert
+ key = options.ssl_key
+
# No certificates specified by the user
- if not options.ssl_cert or not options.ssl_key:
+ if not cert or not key:
cert = '%s/kimchi-cert.pem' % config_dir
key = '%s/kimchi-key.pem' % config_dir
# create cert files if they don't exist
--
1.9.3
10 years
[PATCH] UI: Use capabilities cached values on 'Host PCI Device' tab
by Aline Manera
Kimchi capabilities are cached on UI to avoid multiples request to it as
those values does not change with high frequency.
So use the cached values to check host has kernel_vfio capability.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_edit_main.js | 132 ++++++++++++++++++------------------
1 file changed, 65 insertions(+), 67 deletions(-)
diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index 9d87a73..359add8 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -360,77 +360,75 @@ kimchi.guest_edit_main = function() {
var setupPCIDevice = function(){
kimchi.getHostPCIDevices(function(hostPCIs){
kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs){
- kimchi.getCapabilities(function(result) {
- var pciEnabled = result.kernel_vfio;
- for(var i=0; i<hostPCIs.length; i++){
- var itemNode = $.parseHTML(kimchi.substitute($('#pci-tmpl').html(),{
- name: hostPCIs[i].name,
- product: hostPCIs[i].product.description,
- vendor: hostPCIs[i].vendor.description
- }));
- $(".body", "#form-guest-edit-pci").append(itemNode);
- var iconClass = "ui-icon-plus";
- for(var j=0; j<vmPCIs.length; j++){
- if(hostPCIs[i].name==vmPCIs[j].name){
- iconClass = "ui-icon-minus";
- break;
- }
+ var pciEnabled = kimchi.capabilities.kernel_vfio;
+ for(var i=0; i<hostPCIs.length; i++){
+ var itemNode = $.parseHTML(kimchi.substitute($('#pci-tmpl').html(),{
+ name: hostPCIs[i].name,
+ product: hostPCIs[i].product.description,
+ vendor: hostPCIs[i].vendor.description
+ }));
+ $(".body", "#form-guest-edit-pci").append(itemNode);
+ var iconClass = "ui-icon-plus";
+ for(var j=0; j<vmPCIs.length; j++){
+ if(hostPCIs[i].name==vmPCIs[j].name){
+ iconClass = "ui-icon-minus";
+ break;
}
- pciEnabled || $("button", itemNode).remove();
- $("button", itemNode).button({
- icons: { primary: iconClass },
- text: false
- }).click(function(){
- var obj = $(this);
- if(obj.button("option", "icons").primary == "ui-icon-minus"){
- kimchi.removeVMPCIDevice(kimchi.selectedGuest, obj.parent().prop("id"), function(){
- kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs1){
- for(var k=0; k<hostPCIs.length; k++) {
- $("button", "#" + hostPCIs[k].name).button("option", "icons", {primary: "ui-icon-plus"});
- }
- for(var k=0; k<vmPCIs1.length; k++) {
- $("button", "#" + vmPCIs1[k].name).button("option", "icons", {primary: "ui-icon-minus"});
- }
- });
- filterNodes($("select", "#form-guest-edit-pci").val(), $("input", "#form-guest-edit-pci").val());
+ }
+ pciEnabled || $("button", itemNode).remove();
+ $("button", itemNode).button({
+ icons: { primary: iconClass },
+ text: false
+ }).click(function(){
+ var obj = $(this);
+ if(obj.button("option", "icons").primary == "ui-icon-minus"){
+ kimchi.removeVMPCIDevice(kimchi.selectedGuest, obj.parent().prop("id"), function(){
+ kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs1){
+ for(var k=0; k<hostPCIs.length; k++) {
+ $("button", "#" + hostPCIs[k].name).button("option", "icons", {primary: "ui-icon-plus"});
+ }
+ for(var k=0; k<vmPCIs1.length; k++) {
+ $("button", "#" + vmPCIs1[k].name).button("option", "icons", {primary: "ui-icon-minus"});
+ }
});
- }else{
- kimchi.addVMPCIDevice(kimchi.selectedGuest, { name: obj.parent().prop("id") }, function(){
- kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs1){
- for(var k=0; k<vmPCIs1.length; k++) {
- $("button", "#" + vmPCIs1[k].name).button("option", "icons", {primary: "ui-icon-minus"});
- }
- });
- filterNodes($("select", "#form-guest-edit-pci").val(), $("input", "#form-guest-edit-pci").val());
+ filterNodes($("select", "#form-guest-edit-pci").val(), $("input", "#form-guest-edit-pci").val());
+ });
+ } else {
+ kimchi.addVMPCIDevice(kimchi.selectedGuest, { name: obj.parent().prop("id") }, function(){
+ kimchi.getVMPCIDevices(kimchi.selectedGuest, function(vmPCIs1){
+ for(var k=0; k<vmPCIs1.length; k++) {
+ $("button", "#" + vmPCIs1[k].name).button("option", "icons", {primary: "ui-icon-minus"});
+ }
});
+ filterNodes($("select", "#form-guest-edit-pci").val(), $("input", "#form-guest-edit-pci").val());
+ });
+ }
+ });
+ kimchi.getPCIDeviceCompanions(hostPCIs[i].name, function(infoData) {
+ var pciTitle = i18n["KCHVMED6007M"] + "\n";
+ var haveCompanions = false;
+ for(var p=0; p<infoData.length; p++) {
+ if(infoData[p].device_type === "net") {
+ haveCompanions = true;
+ pciTitle += " " + infoData[p].name + "\n";
+ pciTitle += " " + i18n["KCHVMED6001M"] + " " + infoData[p].interface;
+ pciTitle += ", " + i18n["KCHVMED6002M"] + " " + infoData[p].address;
+ pciTitle += ", " + i18n["KCHVMED6003M"] + " " + infoData[p].link_type + "\n";
+ } else if(infoData[p].device_type === "storage") {
+ haveCompanions = true;
+ pciTitle += " " + infoData[p].name + "\n";
+ pciTitle += " " + i18n["KCHVMED6004M"] + " " + infoData[p].block;
+ pciTitle += ", " + i18n["KCHVMED6005M"] + " " + infoData[p].drive_type;
+ pciTitle += ", " + i18n["KCHVMED6006M"] + " " + infoData[p].model + "\n";
}
- });
- kimchi.getPCIDeviceCompanions(hostPCIs[i].name, function(infoData) {
- var pciTitle = i18n["KCHVMED6007M"] + "\n";
- var haveCompanions = false;
- for(var p=0; p<infoData.length; p++) {
- if(infoData[p].device_type === "net") {
- haveCompanions = true;
- pciTitle += " " + infoData[p].name + "\n";
- pciTitle += " " + i18n["KCHVMED6001M"] + " " + infoData[p].interface;
- pciTitle += ", " + i18n["KCHVMED6002M"] + " " + infoData[p].address;
- pciTitle += ", " + i18n["KCHVMED6003M"] + " " + infoData[p].link_type + "\n";
- } else if(infoData[p].device_type === "storage") {
- haveCompanions = true;
- pciTitle += " " + infoData[p].name + "\n";
- pciTitle += " " + i18n["KCHVMED6004M"] + " " + infoData[p].block;
- pciTitle += ", " + i18n["KCHVMED6005M"] + " " + infoData[p].drive_type;
- pciTitle += ", " + i18n["KCHVMED6006M"] + " " + infoData[p].model + "\n";
- }
- }
- for(var q=0; q<infoData.length; q++) {
- haveCompanions && $(".name", "#" + infoData[q].parent).attr("title", pciTitle);
- haveCompanions && $(".product", "#" + infoData[q].parent).attr("title", pciTitle);
- haveCompanions && $(".vendor", "#" + infoData[q].parent).attr("title", pciTitle);
- }
- });
- }
- });
+ }
+ for(var q=0; q<infoData.length; q++) {
+ haveCompanions && $(".name", "#" + infoData[q].parent).attr("title", pciTitle);
+ haveCompanions && $(".product", "#" + infoData[q].parent).attr("title", pciTitle);
+ haveCompanions && $(".vendor", "#" + infoData[q].parent).attr("title", pciTitle);
+ }
+ });
+ }
});
});
var filterNodes = function(group, text){
--
1.9.3
10 years
[PATCH] issue #491: Check model parameter exists when generating the interface XML
by Aline Manera
When interface model is not explicitly set on interface XML, libvirt
automaticaly sets the default value.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/kimchi/xmlutils/interface.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/kimchi/xmlutils/interface.py b/src/kimchi/xmlutils/interface.py
index c76131a..7b79584 100644
--- a/src/kimchi/xmlutils/interface.py
+++ b/src/kimchi/xmlutils/interface.py
@@ -32,7 +32,9 @@ def get_iface_xml(params, arch=None, os_distro=None, os_version=None):
"""
interface = E.interface(type=params['type'])
interface.append(E.source(network=params['network']))
- interface.append(E.model(type=params['model']))
+
+ if 'model' in params.keys():
+ interface.append(E.model(type=params['model']))
mac = params.get('mac', None)
if mac is not None:
--
1.9.3
10 years
[PATCH] List as many pools' info as possible
by Christy Perez
If a pool happens to be busy at the time the pool.refresh() is
called, then libvirt will throw an error: "internal error:
pool 'default' has asynchronous jobs running." Currently, kimchi
rasise an exception and no pools' storage volumes are listed.
This patch returns a 0 for that particular pool, and allows
the user to continue to request information for other pools.
Without this patch, nothing is shown at all on the Storage tab
if one pool is busy.
In the future, we can check for VIR_ERR_RESOURCE_BUSY and
come up with a plan that works with the UI to display "Busy"
for a pool. But for now, this works around the issue.
Signed-off-by: Christy Perez <christy(a)linux.vnet.ibm.com>
---
src/kimchi/model/storagepools.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/kimchi/model/storagepools.py b/src/kimchi/model/storagepools.py
index 20c9e5a..ba2cf3e 100644
--- a/src/kimchi/model/storagepools.py
+++ b/src/kimchi/model/storagepools.py
@@ -202,6 +202,11 @@ def _get_storagepool_vols_num(self, pool):
else:
return 0
except libvirt.libvirtError as e:
+ # If something (say a busy pool) prevents the refresh,
+ # throwing an Exception here would prevent all pools from
+ # displaying information -- so return None for busy
+ return 0
+ except Exception as e:
raise OperationFailed("KCHPOOL0008E",
{'name': pool.name(),
'err': e.get_error_message()})
--
1.9.3
10 years