[glib/wip/lantw/use-uname-as-a-fallback-to-get-os-info: 3/5] 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: 3/5] gutils: Do not translate OS names
- Date: Mon, 14 Oct 2019 12:36:28 +0000 (UTC)
commit 89ad9286d412a9ccfe865cbc6f42f3aec8c87f3c
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index 058127bc4..084a31563 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -1373,7 +1373,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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]