After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665068 - Show more information in summary
Show more information in summary
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
3.3.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-11-28 17:42 UTC by Zeeshan Ali
Modified: 2016-03-31 14:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wizard: More details at summary page on VM creation (2.42 KB, patch)
2011-11-28 22:54 UTC, Zeeshan Ali
none Details | Review
wizard: More details at summary page on VM creation (2.98 KB, patch)
2011-11-29 02:10 UTC, Zeeshan Ali
reviewed Details | Review
wizard: More details at summary page on VM creation (3.12 KB, patch)
2011-11-29 13:58 UTC, Zeeshan Ali
none Details | Review
wizard: More details at summary page on VM creation (2.98 KB, patch)
2011-11-29 21:36 UTC, Zeeshan Ali
committed Details | Review
Make use of GLib.format_size_full() (3.47 KB, patch)
2011-11-29 23:41 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2011-11-28 17:42:03 UTC
When creating a new VM box, we only show name of OS. Thats just not enough information. We must provide at least the fields shown in the design mockup:

https://github.com/gnome-design-team/gnome-mockups/raw/master/boxes/boxes-install5.png
Comment 1 Marc-Andre Lureau 2011-11-28 18:39:07 UTC
where is the patch? :)
Comment 2 Zeeshan Ali 2011-11-28 22:54:19 UTC
Created attachment 202335 [details] [review]
wizard: More details at summary page on VM creation
Comment 3 Zeeshan Ali 2011-11-29 02:10:19 UTC
Created attachment 202342 [details] [review]
wizard: More details at summary page on VM creation
Comment 4 Zeeshan Ali 2011-11-29 13:58:52 UTC
Created attachment 202376 [details] [review]
wizard: More details at summary page on VM creation
Comment 5 Zeeshan Ali 2011-11-29 20:05:55 UTC
Comment on attachment 202376 [details] [review]
wizard: More details at summary page on VM creation

Obsoleting in favor of previous patch since after a chat with designers and more thinking, I'll be changing reverting some of the 'live media support' changes.
Comment 6 Marc-Andre Lureau 2011-11-29 21:22:30 UTC
Review of attachment 202342 [details] [review]:

just minor comment about usage of formatting strings for translations. Not even sure if it's really needed. But better safe than sorry

::: src/wizard.vala
@@ +124,3 @@
+            // Does anyone have < 1M memory?
+            // Translators: MB here means mega bytes. More information: http://en.wikipedia.org/wiki/Megabyte
+            return (memory / Osinfo.MEBIBYTES).to_string () + _(" MB");

you might want to use formatting _("%d MB) for languages where the notation is inverted (think of "MB %d")

@@ +294,3 @@
+
+                summary.add_property (_("Memory"), memory_to_string (resources.ram));
+                summary.add_property (_("Disk"), memory_to_string (resources.storage) + _(" maximum"));

same applies here, better use formatting to let translator choose in which order words come.
Comment 7 Zeeshan Ali 2011-11-29 21:36:02 UTC
Created attachment 202403 [details] [review]
wizard: More details at summary page on VM creation
Comment 8 Marc-Andre Lureau 2011-11-29 22:47:20 UTC
Review of attachment 202403 [details] [review]:

ack
Comment 9 Zeeshan Ali 2011-11-29 22:51:41 UTC
Attachment 202403 [details] pushed as ad6370d - wizard: More details at summary page on VM creation
Comment 10 Christophe Fergeau 2011-11-29 22:57:02 UTC
(In reply to comment #6)

> ::: src/wizard.vala
> @@ +124,3 @@
> +            // Does anyone have < 1M memory?
> +            // Translators: MB here means mega bytes. More information:
> http://en.wikipedia.org/wiki/Megabyte
> +            return (memory / Osinfo.MEBIBYTES).to_string () + _(" MB");
> 
> you might want to use formatting _("%d MB) for languages where the notation is
> inverted (think of "MB %d")


Isn't it a good usecase for g_format_size_for_display ?
Comment 11 Christophe Fergeau 2011-11-29 23:04:14 UTC
Make that g_format_size_full(G_FORMAT_SIZE_IEC_UNITS)
Comment 12 Zeeshan Ali 2011-11-29 23:15:39 UTC
(In reply to comment #11)
> Make that g_format_size_full(G_FORMAT_SIZE_IEC_UNITS)

Good point, I didn't know of g_format_size(). Patch coming..
Comment 13 Zeeshan Ali 2011-11-29 23:41:49 UTC
Created attachment 202411 [details] [review]
Make use of GLib.format_size_full()

Make use of glib API to format size string to display to user. One
advantage is to leave out localization to glib.
Comment 14 Marc-Andre Lureau 2011-11-29 23:51:54 UTC
Review of attachment 202411 [details] [review]:

ack