[glib] Add a translator comment about 'KB'



commit 81b27ffc1cbba85e322fd731e30dfdaad86cbd5e
Author: Ryan Lortie <desrt desrt ca>
Date:   Mon Nov 5 08:24:30 2012 -0500

    Add a translator comment about 'KB'
    
    The GLib units policy used to be that 'KB' means 1024 bytes, 'MB' means
    1024 KB, 'GB' means 1024 MB, etc.
    
    Those days are over, but we have a deprecated function that still works
    that way.  It contains the string "KB", marked for translation, which
    has been a source of confusion for translators on multiple occasions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687516

 glib/gutils.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 747e5b2..9eb57c5 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -2321,6 +2321,11 @@ g_format_size_for_display (goffset size)
       if (size < (goffset) MEBIBYTE_FACTOR)
         {
           displayed_size = (gdouble) size / (gdouble) KIBIBYTE_FACTOR;
+          /* Translators: this is from the deprecated function g_format_size_for_display() which uses 'KB' to
+           * mean 1024 bytes.  I am aware that 'KB' is not correct, but it has been preserved for reasons of
+           * compatibility.  Users will not see this string unless a program is using this deprecated function.
+           * Please translate as literally as possible.
+           */
           return g_strdup_printf (_("%.1f KB"), displayed_size);
         }
       else if (size < (goffset) GIBIBYTE_FACTOR)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]