This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository evisum.

View the commit online.

commit abaf0262edb9709bad43450db91140c8c6d1b55a
Author: Alastair Poole <[email protected]>
AuthorDate: Mon Mar 30 10:01:13 2026 +0100

    gettext: for translation.
---
 po/meson.build                      |  2 +-
 src/bin/ui/evisum_ui.h              |  3 +++
 src/bin/ui/evisum_ui_process_list.c | 38 ++++++++++++++++++-------------------
 3 files changed, 23 insertions(+), 20 deletions(-)

diff --git a/po/meson.build b/po/meson.build
index 6938396..2e1d057 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -1,5 +1,5 @@
 i18n = import('i18n')
-i18n.gettext('evisum')
+i18n.gettext('evisum', args: ['--keyword=N_'])
 
 cfg.set('ENABLE_NLS', 1)                             
 cfg.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
diff --git a/src/bin/ui/evisum_ui.h b/src/bin/ui/evisum_ui.h
index b357fc7..a9ddd56 100644
--- a/src/bin/ui/evisum_ui.h
+++ b/src/bin/ui/evisum_ui.h
@@ -12,6 +12,9 @@
 #include "ui/evisum_ui_cache.h"
 
 #define _(STR) gettext(STR)
+#ifndef N_
+#define N_(STR) gettext_noop(STR)
+#endif
 
 #define EVISUM_WIN_WIDTH             540
 #define EVISUM_WIN_HEIGHT            360
diff --git a/src/bin/ui/evisum_ui_process_list.c b/src/bin/ui/evisum_ui_process_list.c
index 6448800..97232bc 100644
--- a/src/bin/ui/evisum_ui_process_list.c
+++ b/src/bin/ui/evisum_ui_process_list.c
@@ -98,25 +98,25 @@ typedef struct {
 } Proc_Field_Info;
 
 static const Proc_Field_Info _proc_field_info[PROC_FIELD_MAX] = {
-    [PROC_FIELD_CMD]        = { "COMMAND", "Command",         PROC_SORT_BY_CMD        },
-    [PROC_FIELD_UID]        = { "USER",    "User",            PROC_SORT_BY_UID        },
-    [PROC_FIELD_PID]        = { "PID",     "Process ID",      PROC_SORT_BY_PID        },
-    [PROC_FIELD_THREADS]    = { "THR",     "Threads",         PROC_SORT_BY_THREADS    },
-    [PROC_FIELD_CPU]        = { "CPU",     "CPU #",           PROC_SORT_BY_CPU        },
-    [PROC_FIELD_PRI]        = { "PRI",     "Priority",        PROC_SORT_BY_PRI        },
-    [PROC_FIELD_NICE]       = { "NI",      "Nice",            PROC_SORT_BY_NICE       },
-    [PROC_FIELD_FILES]      = { "FD",      "Open Files",      PROC_SORT_BY_FILES      },
-    [PROC_FIELD_SIZE]       = { "SIZE",    "Memory Size",     PROC_SORT_BY_SIZE       },
-    [PROC_FIELD_VIRT]       = { "VIRT",    "Memory Virtual",  PROC_SORT_BY_VIRT       },
-    [PROC_FIELD_RSS]        = { "RES",     "Memory Reserved", PROC_SORT_BY_RSS        },
-    [PROC_FIELD_SHARED]     = { "SHR",     "Memory Shared",   PROC_SORT_BY_SHARED     },
-    [PROC_FIELD_STATE]      = { "S",       "State",           PROC_SORT_BY_STATE      },
-    [PROC_FIELD_TIME]       = { "TIME+",   "Time",            PROC_SORT_BY_TIME       },
-    [PROC_FIELD_CPU_USAGE]  = { "CPU%",    "CPU Usage",       PROC_SORT_BY_CPU_USAGE  },
-    [PROC_FIELD_NET_IN]     = { "RX/s",    "Network In",      PROC_SORT_BY_NET_IN     },
-    [PROC_FIELD_NET_OUT]    = { "TX/s",    "Network Out",     PROC_SORT_BY_NET_OUT    },
-    [PROC_FIELD_DISK_READ]  = { "R/s",     "Disk Read",       PROC_SORT_BY_DISK_READ  },
-    [PROC_FIELD_DISK_WRITE] = { "W/s",     "Disk Write",      PROC_SORT_BY_DISK_WRITE },
+    [PROC_FIELD_CMD]        = { N_("COMMAND"), N_("Command"),         PROC_SORT_BY_CMD        },
+    [PROC_FIELD_UID]        = { N_("USER"),    N_("User"),            PROC_SORT_BY_UID        },
+    [PROC_FIELD_PID]        = { N_("PID"),     N_("Process ID"),      PROC_SORT_BY_PID        },
+    [PROC_FIELD_THREADS]    = { N_("THR"),     N_("Threads"),         PROC_SORT_BY_THREADS    },
+    [PROC_FIELD_CPU]        = { N_("CPU"),     N_("CPU #"),           PROC_SORT_BY_CPU        },
+    [PROC_FIELD_PRI]        = { N_("PRI"),     N_("Priority"),        PROC_SORT_BY_PRI        },
+    [PROC_FIELD_NICE]       = { N_("NI"),      N_("Nice"),            PROC_SORT_BY_NICE       },
+    [PROC_FIELD_FILES]      = { N_("FD"),      N_("Open Files"),      PROC_SORT_BY_FILES      },
+    [PROC_FIELD_SIZE]       = { N_("SIZE"),    N_("Memory Size"),     PROC_SORT_BY_SIZE       },
+    [PROC_FIELD_VIRT]       = { N_("VIRT"),    N_("Memory Virtual"),  PROC_SORT_BY_VIRT       },
+    [PROC_FIELD_RSS]        = { N_("RES"),     N_("Memory Reserved"), PROC_SORT_BY_RSS        },
+    [PROC_FIELD_SHARED]     = { N_("SHR"),     N_("Memory Shared"),   PROC_SORT_BY_SHARED     },
+    [PROC_FIELD_STATE]      = { N_("S"),       N_("State"),           PROC_SORT_BY_STATE      },
+    [PROC_FIELD_TIME]       = { N_("TIME+"),   N_("Time"),            PROC_SORT_BY_TIME       },
+    [PROC_FIELD_CPU_USAGE]  = { N_("CPU%"),    N_("CPU Usage"),       PROC_SORT_BY_CPU_USAGE  },
+    [PROC_FIELD_NET_IN]     = { N_("RX/s"),    N_("Network In"),      PROC_SORT_BY_NET_IN     },
+    [PROC_FIELD_NET_OUT]    = { N_("TX/s"),    N_("Network Out"),     PROC_SORT_BY_NET_OUT    },
+    [PROC_FIELD_DISK_READ]  = { N_("R/s"),     N_("Disk Read"),       PROC_SORT_BY_DISK_READ  },
+    [PROC_FIELD_DISK_WRITE] = { N_("W/s"),     N_("Disk Write"),      PROC_SORT_BY_DISK_WRITE },
 };
 
 static const Proc_Field_Info *

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to