[gnome-control-center] info: Improve translation of OS type
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: Improve translation of OS type
- Date: Mon, 1 May 2017 15:44:03 +0000 (UTC)
commit 5a01034dbd0a2f40b3e7425173c17288a35492d5
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Apr 28 22:15:20 2017 -0300
info: Improve translation of OS type
Instead of having a single translation using a
printf-formatted string, hardcode the 32- and
64-bit variants of the OS type to avoid any
translation problems.
https://bugzilla.gnome.org/show_bug.cgi?id=770593
panels/info/cc-info-overview-panel.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/panels/info/cc-info-overview-panel.c b/panels/info/cc-info-overview-panel.c
index 9daf37f..89c1ecd 100644
--- a/panels/info/cc-info-overview-panel.c
+++ b/panels/info/cc-info-overview-panel.c
@@ -488,15 +488,12 @@ get_os_name (void)
static char *
get_os_type (void)
{
- int bits;
-
if (GLIB_SIZEOF_VOID_P == 8)
- bits = 64;
+ /* translators: This is the type of architecture for the OS */
+ return g_strdup_printf (_("64-bit"));
else
- bits = 32;
-
- /* translators: This is the type of architecture for the OS */
- return g_strdup_printf (_("%d-bit"), bits);
+ /* translators: This is the type of architecture for the OS */
+ return g_strdup_printf (_("32-bit"));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]