[glib/wip/lantw/use-uname-as-a-fallback-to-get-os-info: 1/3] gutils: Do not translate OS names
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/lantw/use-uname-as-a-fallback-to-get-os-info: 1/3] gutils: Do not translate OS names
- Date: Sun, 13 Oct 2019 13:56:49 +0000 (UTC)
commit 46a2d3efd934fddd01caed7c43b142ab10dcc3f7
Author: Ting-Wei Lan <lantw src gnome org>
Date: Sun Oct 13 17:15:53 2019 +0800
gutils: Do not translate OS names
The code is intended to provide an interface similar to /etc/os-release,
but /etc/os-release isn't designed to be translated.
glib/gutils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 79ee24fff..4b3ec6b1f 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -1177,7 +1177,7 @@ g_get_os_info (const gchar *key_name)
{
#if defined (__APPLE__)
if (g_strcmp0 (key_name, G_OS_INFO_KEY_NAME) == 0)
- return g_strdup (_("macOS"));
+ return g_strdup ("macOS");
else
return NULL;
#elif defined (G_OS_UNIX)
@@ -1236,7 +1236,7 @@ g_get_os_info (const gchar *key_name)
return g_steal_pointer (&result);
#elif defined (G_OS_WIN32)
if (g_strcmp0 (key_name, G_OS_INFO_KEY_NAME) == 0)
- return g_strdup (_("Windows"));
+ return g_strdup ("Windows");
else
return NULL;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]