okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=d4a477db415dae8af55efef47628470aa2b04c59

commit d4a477db415dae8af55efef47628470aa2b04c59
Author: Stephen Houston <smhousto...@gmail.com>
Date:   Mon Aug 10 16:20:30 2015 -0500

    Ephoto: Use B instead of bytes and don't include a space between the number 
and acronym
---
 src/bin/ephoto_single_browser.c | 10 +++++-----
 src/bin/ephoto_thumb_browser.c  | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c
index fc6ebbd..42d8bf4 100644
--- a/src/bin/ephoto_single_browser.c
+++ b/src/bin/ephoto_single_browser.c
@@ -515,23 +515,23 @@ _ephoto_get_file_size(const char *path)
    size_t size = eina_file_size_get(f);
    eina_file_close(f);
    double dsize = (double)size;
-   if (dsize < 1024.0) snprintf(isize, sizeof(isize), "%'.0f %s", dsize, 
_("bytes"));
+   if (dsize < 1024.0) snprintf(isize, sizeof(isize), "%'.0f%s", dsize, 
_("B"));
    else
      {
         dsize /= 1024.0;
-        if (dsize < 1024) snprintf(isize, sizeof(isize), "%'.0f %s", dsize, 
_("KB"));
+        if (dsize < 1024) snprintf(isize, sizeof(isize), "%'.0f%s", dsize, 
_("KB"));
         else
           {
              dsize /= 1024.0;
-             if (dsize < 1024) snprintf(isize, sizeof(isize), "%'.1f %s", 
dsize, _("MB"));
+             if (dsize < 1024) snprintf(isize, sizeof(isize), "%'.1f%s", 
dsize, _("MB"));
              else
                {
                   dsize /= 1024.0;
-                  if (dsize < 1024) snprintf(isize, sizeof(isize), "%'.1f %s", 
dsize, _("GB"));
+                  if (dsize < 1024) snprintf(isize, sizeof(isize), "%'.1f%s", 
dsize, _("GB"));
                   else
                     {
                        dsize /= 1024.0;
-                       snprintf(isize, sizeof(isize), "%'.1f %s", dsize, 
_("TB"));
+                       snprintf(isize, sizeof(isize), "%'.1f%s", dsize, 
_("TB"));
                     }
                }
           }
diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c
index 74759c2..bebc00b 100644
--- a/src/bin/ephoto_thumb_browser.c
+++ b/src/bin/ephoto_thumb_browser.c
@@ -713,23 +713,23 @@ _ephoto_thumb_populate_end(void *data, int type 
EINA_UNUSED, void *event EINA_UN
         char isize[PATH_MAX];
         char image_info[PATH_MAX];
 
-        if (tb->totsize < 1024.0) snprintf(isize, sizeof(isize), "%'.0f %s", 
tb->totsize, _("bytes"));
+        if (tb->totsize < 1024.0) snprintf(isize, sizeof(isize), "%'.0f%s", 
tb->totsize, _("B"));
         else
           {
              tb->totsize /= 1024.0;
-             if (tb->totsize < 1024) snprintf(isize, sizeof(isize), "%'.0f 
%s", tb->totsize, _("KB"));
+             if (tb->totsize < 1024) snprintf(isize, sizeof(isize), "%'.0f%s", 
tb->totsize, _("KB"));
              else
                {
                   tb->totsize /= 1024.0;
-                  if (tb->totsize < 1024) snprintf(isize, sizeof(isize), 
"%'.1f %s", tb->totsize, _("MB"));
+                  if (tb->totsize < 1024) snprintf(isize, sizeof(isize), 
"%'.1f%s", tb->totsize, _("MB"));
                   else
                     {
                        tb->totsize /= 1024.0;
-                       if (tb->totsize < 1024) snprintf(isize, sizeof(isize), 
"%'.1f %s", tb->totsize, _("GB"));
+                       if (tb->totsize < 1024) snprintf(isize, sizeof(isize), 
"%'.1f%s", tb->totsize, _("GB"));
                        else
                          {
                             tb->totsize /= 1024.0;
-                            snprintf(isize, sizeof(isize), "%'.1f %s", 
tb->totsize, _("TB"));
+                            snprintf(isize, sizeof(isize), "%'.1f%s", 
tb->totsize, _("TB"));
                          }
                     }
                }

-- 


Reply via email to