[gnome-boxes] main: make --checks looks a bit prettier
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] main: make --checks looks a bit prettier
- Date: Tue, 7 Aug 2012 17:19:59 +0000 (UTC)
commit abeb4a20fc9c80e946d379b2a700bde4f65ca798
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Fri Aug 3 15:02:26 2012 +0200
main: make --checks looks a bit prettier
- add leading â for each checks
- add report bug and home page links
https://bugzilla.gnome.org/show_bug.cgi?id=681132
src/config.vapi | 2 ++
src/main.vala | 9 ++++++---
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/config.vapi b/src/config.vapi
index a4f1dc4..1d94e77 100644
--- a/src/config.vapi
+++ b/src/config.vapi
@@ -7,4 +7,6 @@ namespace Config {
public const string GETTEXT_PACKAGE;
public const string GNOMELOCALEDIR;
public const string DATADIR;
+ public const string PACKAGE_BUGREPORT;
+ public const string PACKAGE_URL;
}
diff --git a/src/main.vala b/src/main.vala
index 910a59c..5a041ba 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -61,11 +61,14 @@ private async void run_checks () {
var selinux_context_default = yield Boxes.check_selinux_context_default (out selinux_context_diagnosis);
// FIXME: add proper UI & docs
- GLib.stdout.printf (N_("The CPU is capable of virtualization: %s\n").printf (Boxes.yes_no (cpu)));
- GLib.stdout.printf (N_("The KVM module is loaded: %s\n").printf (Boxes.yes_no (kvm)));
- GLib.stdout.printf (N_("The SELinux context is default: %s\n").printf (Boxes.yes_no (selinux_context_default)));
+ GLib.stdout.printf (N_("â The CPU is capable of virtualization: %s\n").printf (Boxes.yes_no (cpu)));
+ GLib.stdout.printf (N_("â The KVM module is loaded: %s\n").printf (Boxes.yes_no (kvm)));
+ GLib.stdout.printf (N_("â The SELinux context is default: %s\n").printf (Boxes.yes_no (selinux_context_default)));
if (selinux_context_diagnosis.length != 0)
GLib.stdout.printf (Boxes.indent (" ", selinux_context_diagnosis) + "\n");
+ GLib.stdout.printf ("\n");
+ GLib.stdout.printf (N_("Report bugs to <%s>.\n"), Config.PACKAGE_BUGREPORT);
+ GLib.stdout.printf (N_("%s home page: <%s>.\n"), Environment.get_application_name (), Config.PACKAGE_URL);
}
public int main (string[] args) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]