refactor: Rename daemon sources to remove x52d_ prefix

pull/66/head
nirenjan 2026-04-03 23:36:34 -07:00
parent 583d4fd646
commit de465fbf6a
54 changed files with 763 additions and 759 deletions

2
.gitignore vendored
View File

@ -12,6 +12,8 @@ libx52/test_*
libx52test* libx52test*
libx52util/char_map.c libx52util/char_map.c
udev/*.rules udev/*.rules
# Built artifacts / local installs named x52d*; daemon sources use short names.
# Keep tracked daemon files that still use the x52d prefix (headers, configs).
x52d* x52d*
!daemon/x52d*.* !daemon/x52d*.*
!libx52/x52dcomm.h !libx52/x52dcomm.h

View File

@ -988,7 +988,7 @@ FILE_PATTERNS = libx52.h \
libx52util.h \ libx52util.h \
vkm.h \ vkm.h \
x52_cli.c \ x52_cli.c \
x52ctl.c \ daemon_control.c \
x52dcomm.h \ x52dcomm.h \
*.dox *.dox

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View File

@ -150,7 +150,7 @@ possibly through \b sudo(8)
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -12,8 +12,8 @@
#include <unistd.h> #include <unistd.h>
#include "pinelog.h" #include "pinelog.h"
#include "x52d_client.h" #include <daemon/client.h>
#include "x52dcomm-internal.h" #include <daemon/x52dcomm-internal.h>
void x52d_client_init(int client_fd[X52D_MAX_CLIENTS]) void x52d_client_init(int client_fd[X52D_MAX_CLIENTS])
{ {

View File

@ -12,7 +12,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <poll.h> #include <poll.h>
#include "x52d_const.h" #include <daemon/constants.h>
#define MAX_CONN (X52D_MAX_CLIENTS + 1) #define MAX_CONN (X52D_MAX_CLIENTS + 1)

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>
@ -15,10 +15,10 @@
#define PINELOG_MODULE X52D_MOD_CLOCK #define PINELOG_MODULE X52D_MOD_CLOCK
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_clock.h" #include <daemon/clock.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_device.h" #include <daemon/device.h>
static bool clock_enabled = false; static bool clock_enabled = false;
static int clock_primary_is_local = false; static int clock_primary_is_local = false;

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
@ -16,7 +16,7 @@
#include <unistd.h> #include <unistd.h>
#include <libx52/x52dcomm.h> #include <libx52/x52dcomm.h>
#include "x52dcomm-internal.h" #include <daemon/x52dcomm-internal.h>
static int _setup_socket(struct sockaddr_un *remote, int len) static int _setup_socket(struct sockaddr_un *remote, int len)
{ {

View File

@ -6,15 +6,15 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include "x52dcomm-internal.h" #include <daemon/x52dcomm-internal.h>
#include "x52d_const.h" #include <daemon/constants.h>
const char * x52d_command_sock_path(const char *sock_path) const char * x52d_command_sock_path(const char *sock_path)
{ {

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
@ -21,11 +21,11 @@
#define PINELOG_MODULE X52D_MOD_COMMAND #define PINELOG_MODULE X52D_MOD_COMMAND
#include "pinelog.h" #include "pinelog.h"
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_command.h" #include <daemon/command.h>
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_client.h" #include <daemon/client.h>
#include "x52dcomm-internal.h" #include <daemon/x52dcomm-internal.h>
static int client_fd[X52D_MAX_CLIENTS]; static int client_fd[X52D_MAX_CLIENTS];

View File

@ -6,13 +6,13 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <errno.h> #include <errno.h>
#define PINELOG_MODULE X52D_MOD_CONFIG #define PINELOG_MODULE X52D_MOD_CONFIG
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
static struct x52d_config x52d_config; static struct x52d_config x52d_config;
@ -97,7 +97,7 @@ void x52d_config_apply_immediate(const char *section, const char *key)
x52d_cfg_set_ ## c_sec ## _ ## c_key(x52d_config . name); \ x52d_cfg_set_ ## c_sec ## _ ## c_key(x52d_config . name); \
} else } else
#include "x52d_config.def" #include <daemon/config.def>
// Dummy to capture the trailing else // Dummy to capture the trailing else
// Wrap it in braces in case tracing has been disabled // Wrap it in braces in case tracing has been disabled
{ PINELOG_TRACE("Ignoring apply_immediate(%s.%s)", section, key); } { PINELOG_TRACE("Ignoring apply_immediate(%s.%s)", section, key); }
@ -108,5 +108,5 @@ void x52d_config_apply(void)
#define CFG(section, key, name, parser, def) \ #define CFG(section, key, name, parser, def) \
PINELOG_TRACE("Calling configuration callback for " #section "." #key); \ PINELOG_TRACE("Calling configuration callback for " #section "." #key); \
x52d_cfg_set_ ## section ## _ ## key(x52d_config . name); x52d_cfg_set_ ## section ## _ ## key(x52d_config . name);
#include "x52d_config.def" #include <daemon/config.def>
} }

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stddef.h> #include <stddef.h>
@ -17,8 +17,8 @@
#define PINELOG_MODULE X52D_MOD_CONFIG #define PINELOG_MODULE X52D_MOD_CONFIG
#include "pinelog.h" #include "pinelog.h"
#include <libx52/libx52.h> #include <libx52/libx52.h>
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
// Create a pointer "name" of type "type", which stores the value of the // Create a pointer "name" of type "type", which stores the value of the
// corresponding element within the config struct. // corresponding element within the config struct.
@ -130,7 +130,7 @@ int x52d_config_save_file(struct x52d_config *cfg, const char *cfg_file)
fprintf(cfg_fp, "%s = %s\n", #key, value); \ fprintf(cfg_fp, "%s = %s\n", #key, value); \
} \ } \
} while (0); } while (0);
#include "x52d_config.def" #include <daemon/config.def>
exit_dump: exit_dump:
free(current_section); free(current_section);
@ -145,7 +145,7 @@ const char *x52d_config_get_param(struct x52d_config *cfg, const char *section,
return type ## _dumper(section, key, cfg, offsetof(struct x52d_config, name)); \ return type ## _dumper(section, key, cfg, offsetof(struct x52d_config, name)); \
} \ } \
} while (0); } while (0);
#include "x52d_config.def" #include <daemon/config.def>
return NULL; return NULL;
} }

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stddef.h> #include <stddef.h>
@ -17,8 +17,8 @@
#define PINELOG_MODULE X52D_MOD_CONFIG #define PINELOG_MODULE X52D_MOD_CONFIG
#include "ini.h" #include "ini.h"
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
/* Parser function typedef */ /* Parser function typedef */
typedef int (*parser_fn)(struct x52d_config *, size_t, const char *); typedef int (*parser_fn)(struct x52d_config *, size_t, const char *);
@ -142,7 +142,7 @@ static const struct config_map {
parser_fn parser; parser_fn parser;
size_t offset; size_t offset;
} config_map[] = { } config_map[] = {
#include "x52d_config.def" #include <daemon/config.def>
// Terminating entry // Terminating entry
{NULL, NULL, NULL, 0} {NULL, NULL, NULL, 0}
@ -195,7 +195,7 @@ int x52d_config_set_defaults(struct x52d_config *cfg) {
if (rc != 0) { \ if (rc != 0) { \
return rc; \ return rc; \
} }
#include "x52d_config.def" #include <daemon/config.def>
return 0; return 0;
} }

View File

@ -40,7 +40,7 @@ string "quit", or terminates input by using Ctrl+D.
default socket. default socket.
*/ */
#include "config.h" #include "build-config.h"
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
@ -48,7 +48,7 @@ string "quit", or terminates input by using Ctrl+D.
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include <libx52/x52dcomm.h> #include <libx52/x52dcomm.h>
#define APP_NAME "x52ctl" #define APP_NAME "x52ctl"

View File

@ -6,16 +6,16 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>
#include <stdbool.h> #include <stdbool.h>
#define PINELOG_MODULE X52D_MOD_DEVICE #define PINELOG_MODULE X52D_MOD_DEVICE
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_device.h" #include <daemon/device.h>
#include "x52d_notify.h" #include <daemon/notify.h>
#include <libx52/libx52.h> #include <libx52/libx52.h>
#include "pinelog.h" #include "pinelog.h"

View File

@ -6,15 +6,15 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdbool.h> #include <stdbool.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_io.h" #include <daemon/io.h>
#include "x52d_mouse.h" #include <daemon/mouse.h>
#include <libx52/libx52io.h> #include <libx52/libx52io.h>
#define PINELOG_MODULE X52D_MOD_IO #define PINELOG_MODULE X52D_MOD_IO

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>
@ -15,9 +15,9 @@
#define PINELOG_MODULE X52D_MOD_LED #define PINELOG_MODULE X52D_MOD_LED
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_device.h" #include <daemon/device.h>
#define SET_LED_STATE(led, state) \ #define SET_LED_STATE(led, state) \
PINELOG_TRACE("Setting LED %s state to %s (%d)", \ PINELOG_TRACE("Setting LED %s state to %s (%d)", \

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <string.h> #include <string.h>
@ -17,15 +17,15 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "x52d_clock.h" #include <daemon/clock.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_device.h" #include <daemon/device.h>
#include "x52d_io.h" #include <daemon/io.h>
#include "x52d_mouse.h" #include <daemon/mouse.h>
#include "x52d_command.h" #include <daemon/command.h>
#include "x52d_notify.h" #include <daemon/notify.h>
#include "x52dcomm-internal.h" #include <daemon/x52dcomm-internal.h>
#include <libx52/x52dcomm.h> #include <libx52/x52dcomm.h>
#include "pinelog.h" #include "pinelog.h"

View File

@ -1,15 +1,15 @@
# x52d # x52d (dep_config_h: Meson build-config.h; private API is daemon/config.h)
libx52dcomm_version = '1.0.0' libx52dcomm_version = '1.0.0'
libx52dcomm_sources = [ libx52dcomm_sources = [
'x52d_comm_client.c', 'comm_client.c',
'x52d_comm_internal.c' 'comm_internal.c'
] ]
install_headers('x52dcomm.h', subdir: meson.project_name()) install_headers('x52dcomm.h', subdir: meson.project_name())
lib_libx52dcomm = library('x52dcomm', libx52dcomm_sources, lib_libx52dcomm = library('x52dcomm', libx52dcomm_sources,
dependencies: [dep_intl], dependencies: [dep_intl, dep_config_h],
version: libx52dcomm_version, version: libx52dcomm_version,
c_args: sym_hidden_cargs, c_args: sym_hidden_cargs,
install: true, install: true,
@ -22,26 +22,26 @@ pkgconfig.generate(lib_libx52dcomm,
) )
x52d_sources = [ x52d_sources = [
'x52d_main.c', 'main.c',
'x52d_config_parser.c', 'config_parser.c',
'x52d_config_dump.c', 'config_dump.c',
'x52d_config.c', 'config.c',
'x52d_device.c', 'device.c',
'x52d_client.c', 'client.c',
'x52d_clock.c', 'clock.c',
'x52d_mouse.c', 'mouse.c',
'x52d_notify.c', 'notify.c',
'x52d_led.c', 'led.c',
'x52d_command.c', 'command.c',
'x52d_io.c', 'io.c',
'x52d_mouse_handler.c', 'mouse_handler.c',
] ]
dep_threads = dependency('threads') dep_threads = dependency('threads')
# Comm sources are compiled into x52d (same as Autotools); libx52dcomm is only for x52ctl. # Comm sources are compiled into x52d (same as Autotools); libx52dcomm is only for x52ctl.
x52d_linkwith = [lib_libx52, lib_vkm, lib_libx52io] x52d_linkwith = [lib_libx52, lib_vkm, lib_libx52io]
x52d_deps = [dep_pinelog, dep_inih, dep_threads, dep_math, dep_intl] x52d_deps = [dep_pinelog, dep_inih, dep_threads, dep_math, dep_intl, dep_config_h]
x52d_cflags = [] x52d_cflags = []
exe_x52d = executable('x52d', x52d_sources + libx52dcomm_sources, exe_x52d = executable('x52d', x52d_sources + libx52dcomm_sources,
@ -51,9 +51,9 @@ exe_x52d = executable('x52d', x52d_sources + libx52dcomm_sources,
dependencies: x52d_deps, dependencies: x52d_deps,
link_with: x52d_linkwith) link_with: x52d_linkwith)
exe_x52ctl = executable('x52ctl', 'x52ctl.c', exe_x52ctl = executable('x52ctl', 'daemon_control.c',
install: true, install: true,
dependencies: [dep_intl], dependencies: [dep_intl, dep_config_h],
include_directories: includes, include_directories: includes,
link_with: lib_libx52dcomm) link_with: lib_libx52dcomm)
@ -63,10 +63,10 @@ install_data('x52d.conf',
test('daemon-communication', files('test_daemon_comm.py')[0], test('daemon-communication', files('test_daemon_comm.py')[0],
depends: [exe_x52d, exe_x52ctl], protocol: 'tap') depends: [exe_x52d, exe_x52ctl], protocol: 'tap')
x52d_mouse_test_sources = ['x52d_mouse_test.c', 'x52d_mouse.c'] x52d_mouse_test_sources = ['mouse_test.c', 'mouse.c']
x52d_mouse_test = executable('x52d-mouse-test', x52d_mouse_test_sources, x52d_mouse_test = executable('x52d-mouse-test', x52d_mouse_test_sources,
include_directories: includes, include_directories: includes,
dependencies: [dep_pinelog, dep_cmocka, dep_intl, dep_math]) dependencies: [dep_pinelog, dep_cmocka, dep_intl, dep_math, dep_config_h])
test('x52d-mouse-test', x52d_mouse_test, protocol: 'tap') test('x52d-mouse-test', x52d_mouse_test, protocol: 'tap')

View File

@ -6,16 +6,16 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <math.h> #include <math.h>
#define PINELOG_MODULE X52D_MOD_MOUSE #define PINELOG_MODULE X52D_MOD_MOUSE
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_mouse.h" #include <daemon/mouse.h>
// Mouse speed is the delay in microseconds between subsequent mouse reports // Mouse speed is the delay in microseconds between subsequent mouse reports
#define DEFAULT_MOUSE_DELAY 70000 #define DEFAULT_MOUSE_DELAY 70000

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <pthread.h> #include <pthread.h>
@ -18,9 +18,9 @@
#define PINELOG_MODULE X52D_MOD_MOUSE #define PINELOG_MODULE X52D_MOD_MOUSE
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_mouse.h" #include <daemon/mouse.h>
static pthread_t mouse_thr; static pthread_t mouse_thr;
static bool mouse_thr_enabled = false; static bool mouse_thr_enabled = false;

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <stddef.h> #include <stddef.h>
@ -15,9 +15,9 @@
#define PINELOG_MODULE X52D_MOD_MOUSE #define PINELOG_MODULE X52D_MOD_MOUSE
#include "pinelog.h" #include "pinelog.h"
#include "x52d_config.h" #include <daemon/config.h>
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_mouse.h" #include <daemon/mouse.h>
/* Stub for handler */ /* Stub for handler */
void x52d_mouse_thread_control(bool enabled) void x52d_mouse_thread_control(bool enabled)
@ -44,7 +44,7 @@ static void test_mouse_thread_disabled(void **state)
x52d_cfg_set_Mouse_Enabled(false); x52d_cfg_set_Mouse_Enabled(false);
} }
/* The following tests are dependent on the values in x52d_mouse.c */ /* The following tests are dependent on the values in mouse.c */
static void test_mouse_speed_negative(void **state) static void test_mouse_speed_negative(void **state)
{ {
(void)state; (void)state;

View File

@ -13,11 +13,11 @@
#define PINELOG_MODULE X52D_MOD_NOTIFY #define PINELOG_MODULE X52D_MOD_NOTIFY
#include "pinelog.h" #include "pinelog.h"
#include "x52d_const.h" #include <daemon/constants.h>
#include "x52d_notify.h" #include <daemon/notify.h>
#include "x52d_client.h" #include <daemon/client.h>
#include <libx52/x52dcomm.h> #include <libx52/x52dcomm.h>
#include "x52dcomm-internal.h" #include <daemon/x52dcomm-internal.h>
static pthread_t notify_thr; static pthread_t notify_thr;
static pthread_t notify_listen; static pthread_t notify_listen;

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -7,7 +7,7 @@
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>

View File

@ -7,7 +7,7 @@
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -9,7 +9,7 @@
#ifndef X52_TEST_COMMON_H #ifndef X52_TEST_COMMON_H
#define X52_TEST_COMMON_H #define X52_TEST_COMMON_H
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <libx52/libx52.h> #include <libx52/libx52.h>

View File

@ -7,7 +7,7 @@
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -7,7 +7,7 @@
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View File

@ -7,7 +7,7 @@
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -7,7 +7,7 @@
*/ */
#define _GNU_SOURCE #define _GNU_SOURCE
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <libx52/libx52.h> #include <libx52/libx52.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <libx52/libx52.h> #include <libx52/libx52.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "common.h" #include "common.h"

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <wchar.h> #include <wchar.h>

View File

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <libx52/libx52io.h> #include <libx52/libx52io.h>

View File

@ -9,7 +9,7 @@
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>

View File

@ -36,7 +36,7 @@ pyversion = python.language_version().split('.')
assert(pyversion[1].to_int() >= 5, 'Require Python >= 3.5') assert(pyversion[1].to_int() >= 5, 'Require Python >= 3.5')
####################################################################### #######################################################################
# config.h # build-config.h (Meson configuration; template is config.h.meson)
####################################################################### #######################################################################
compiler = meson.get_compiler('c') compiler = meson.get_compiler('c')
sym_hidden_cargs = [] sym_hidden_cargs = []
@ -59,10 +59,12 @@ cdata.set10('HAVE_STRUCT_TM_TM_GMTOFF',
config_h = configure_file( config_h = configure_file(
input: 'config.h.meson', input: 'config.h.meson',
output: 'config.h', output: 'build-config.h',
configuration: cdata configuration: cdata
) )
dep_config_h = declare_dependency(sources: config_h)
####################################################################### #######################################################################
# Internationalization # Internationalization
####################################################################### #######################################################################

View File

@ -14,16 +14,16 @@ joytest/x52_test_common.h
joytest/x52_test_led.c joytest/x52_test_led.c
joytest/x52_test_mfd.c joytest/x52_test_mfd.c
daemon/x52d_main.c daemon/client.c
daemon/x52d_client.c daemon/clock.c
daemon/x52d_clock.c daemon/command.c
daemon/x52d_command.c daemon/config.c
daemon/x52d_config.c daemon/config_dump.c
daemon/x52d_config_dump.c daemon/config_parser.c
daemon/x52d_config_parser.c daemon/daemon_control.c
daemon/x52d_device.c daemon/device.c
daemon/x52d_io.c daemon/io.c
daemon/x52d_mouse.c daemon/main.c
daemon/x52d_mouse_handler.c daemon/mouse.c
daemon/x52d_notify.c daemon/mouse_handler.c
daemon/x52ctl.c daemon/notify.c

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libx52 0.3.3\n" "Project-Id-Version: libx52 0.3.3\n"
"Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n" "Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n"
"POT-Creation-Date: 2026-04-03 18:06-0700\n" "POT-Creation-Date: 2026-04-03 23:44-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -142,13 +142,13 @@ msgstr ""
msgid "Unknown LED state %d" msgid "Unknown LED state %d"
msgstr "" msgstr ""
#: libx52/stringify.c:47 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:55 #: libx52/stringify.c:47 daemon/clock.c:29 daemon/mouse.c:55 daemon/mouse.c:95
#: daemon/x52d_mouse.c:95 daemon/x52d_mouse.c:107 #: daemon/mouse.c:107
msgid "off" msgid "off"
msgstr "" msgstr ""
#: libx52/stringify.c:48 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:55 #: libx52/stringify.c:48 daemon/clock.c:29 daemon/mouse.c:55 daemon/mouse.c:95
#: daemon/x52d_mouse.c:95 daemon/x52d_mouse.c:107 #: daemon/mouse.c:107
msgid "on" msgid "on"
msgstr "" msgstr ""
@ -521,17 +521,270 @@ msgstr ""
msgid "OK" msgid "OK"
msgstr "" msgstr ""
#: daemon/x52d_main.c:67 #: daemon/client.c:37
#, c-format
msgid "Error accepting client connection on socket fd %d: %s"
msgstr ""
#: daemon/client.c:43
#, c-format
msgid "Error marking client fd %d as nonblocking: %s"
msgstr ""
#: daemon/client.c:97
#, c-format
msgid "Error when polling socket: FD %d, error %d, len %lu"
msgstr ""
#: daemon/client.c:127
#, c-format
msgid "Error %d when polling %d descriptors: %s"
msgstr ""
#: daemon/client.c:130
msgid "Timed out when polling"
msgstr ""
#: daemon/clock.c:28
#, c-format
msgid "Setting clock enable to %s"
msgstr ""
#: daemon/clock.c:35 daemon/clock.c:119
#, c-format
msgid "Setting %s clock timezone to %s"
msgstr ""
#: daemon/clock.c:37
msgid "local"
msgstr ""
#: daemon/clock.c:37
msgid "UTC"
msgstr ""
#: daemon/clock.c:55
msgid "Unable to allocate memory for timezone. Falling back to UTC"
msgstr ""
#: daemon/clock.c:65
msgid "Unable to backup timezone environment. Falling back to UTC"
msgstr ""
#: daemon/clock.c:138
#, c-format
msgid "Setting %s clock format to %s"
msgstr ""
#: daemon/clock.c:162
#, c-format
msgid "Setting date format to %s"
msgstr ""
#: daemon/clock.c:174
msgid "Starting X52 clock manager thread"
msgstr ""
#: daemon/clock.c:185
#, c-format
msgid "Error %d retrieving current time: %s"
msgstr ""
#: daemon/clock.c:206
#, c-format
msgid "Error %d initializing clock thread: %s"
msgstr ""
#: daemon/clock.c:213
msgid "Shutting down X52 clock manager thread"
msgstr ""
#: daemon/command.c:379
#, c-format
msgid "Error reading from client %d: %s"
msgstr ""
#: daemon/command.c:390
#, c-format
msgid "Short write to client %d; expected %d bytes, wrote %d bytes"
msgstr ""
#: daemon/command.c:415
#, c-format
msgid "Error %d during command loop: %s"
msgstr ""
#: daemon/command.c:442
#, c-format
msgid "Error creating command socket: %s"
msgstr ""
#: daemon/command.c:450
#, c-format
msgid "Error marking command socket as nonblocking: %s"
msgstr ""
#: daemon/command.c:456
#, c-format
msgid "Error listening on command socket: %s"
msgstr ""
#: daemon/command.c:460
msgid "Starting command processing thread"
msgstr ""
#: daemon/command.c:478
msgid "Shutting down command processing thread"
msgstr ""
#: daemon/config.c:29
#, c-format
msgid "Error %d setting configuration defaults: %s"
msgstr ""
#: daemon/config.c:56
#, c-format
msgid "Error %d saving configuration file: %s"
msgstr ""
#: daemon/config_dump.c:108
#, c-format
msgid "Unable to save config file %s - code %d: %s"
msgstr ""
#: daemon/config_dump.c:126
#, c-format
msgid "Failed to dump %s.%s to config file %s"
msgstr ""
#: daemon/config_parser.c:172
#, c-format
msgid "Ignoring unknown key '%s.%s'"
msgstr ""
#: daemon/config_parser.c:213
#, c-format
msgid "Failed processing configuration file %s - code %d"
msgstr ""
#: daemon/config_parser.c:243
msgid "Failed to allocate memory for override structure"
msgstr ""
#: daemon/config_parser.c:252
msgid "Failed to allocate memory for override string"
msgstr ""
#: daemon/config_parser.c:263
#, c-format
msgid "No section found in override string '%s'"
msgstr ""
#: daemon/config_parser.c:277
#, c-format
msgid "No key found in override string '%s'"
msgstr ""
#: daemon/config_parser.c:288
#, c-format
msgid "No value found in override string '%s'"
msgstr ""
#: daemon/config_parser.c:339
#, c-format
msgid "Error processing override '%s.%s=%s'"
msgstr ""
#: daemon/daemon_control.c:60
#, c-format
msgid "Usage: %s [-i] [-s socket-path] [command]\n"
msgstr ""
#: daemon/daemon_control.c:73
#, c-format
msgid "Argument length too long\n"
msgstr ""
#: daemon/daemon_control.c:180
#, c-format
msgid "Running in interactive mode, ignoring extra arguments\n"
msgstr ""
#: daemon/device.c:37
msgid "Starting X52 device manager thread"
msgstr ""
#: daemon/device.c:44
#, c-format
msgid "Error %d connecting to device: %s"
msgstr ""
#: daemon/device.c:53
msgid "Device connected, writing configuration"
msgstr ""
#: daemon/device.c:76
msgid "Initializing libx52"
msgstr ""
#: daemon/device.c:80
#, c-format
msgid "Failure %d initializing libx52: %s"
msgstr ""
#: daemon/device.c:91
msgid "Shutting down X52 device manager thread"
msgstr ""
#: daemon/device.c:104
#, c-format
msgid "Error %d when updating X52 parameter: %s"
msgstr ""
#: daemon/device.c:180
#, c-format
msgid "Error %d when updating X52 device: %s"
msgstr ""
#: daemon/io.c:43
msgid "Starting X52 I/O thread"
msgstr ""
#: daemon/io.c:65
#, c-format
msgid "Error %d opening X52 I/O device: %s"
msgstr ""
#: daemon/io.c:76
#, c-format
msgid "Error %d reading from X52 I/O device: %s"
msgstr ""
#: daemon/io.c:103
#, c-format
msgid "Error %d initializing X52 I/O library: %s"
msgstr ""
#: daemon/io.c:109
#, c-format
msgid "Error %d initializing I/O driver thread: %s"
msgstr ""
#: daemon/io.c:116
msgid "Shutting down X52 I/O driver thread"
msgstr ""
#: daemon/main.c:67
#, c-format #, c-format
msgid "Error %d setting log file: %s\n" msgid "Error %d setting log file: %s\n"
msgstr "" msgstr ""
#: daemon/x52d_main.c:83 #: daemon/main.c:83
#, c-format #, c-format
msgid "Error %d installing handler for signal %d: %s" msgid "Error %d installing handler for signal %d: %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:94 #: daemon/main.c:94
#, c-format #, c-format
msgid "" msgid ""
"Usage: %s [-f] [-v] [-q]\n" "Usage: %s [-f] [-v] [-q]\n"
@ -541,487 +794,234 @@ msgid ""
"\t[-b notify-socket-path]\n" "\t[-b notify-socket-path]\n"
msgstr "" msgstr ""
#: daemon/x52d_main.c:129 #: daemon/main.c:129
#, c-format #, c-format
msgid "Daemon is already running as PID %u" msgid "Daemon is already running as PID %u"
msgstr "" msgstr ""
#: daemon/x52d_main.c:271 #: daemon/main.c:271
#, c-format #, c-format
msgid "Unable to parse configuration override '%s'\n" msgid "Unable to parse configuration override '%s'\n"
msgstr "" msgstr ""
#: daemon/x52d_main.c:303 #: daemon/main.c:303
#, c-format #, c-format
msgid "Foreground = %s" msgid "Foreground = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:303 daemon/x52d_main.c:304 #: daemon/main.c:303 daemon/main.c:304
msgid "true" msgid "true"
msgstr "" msgstr ""
#: daemon/x52d_main.c:303 daemon/x52d_main.c:304 #: daemon/main.c:303 daemon/main.c:304
msgid "false" msgid "false"
msgstr "" msgstr ""
#: daemon/x52d_main.c:304 #: daemon/main.c:304
#, c-format #, c-format
msgid "Quiet = %s" msgid "Quiet = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:305 #: daemon/main.c:305
#, c-format #, c-format
msgid "Verbosity = %d" msgid "Verbosity = %d"
msgstr "" msgstr ""
#: daemon/x52d_main.c:306 #: daemon/main.c:306
#, c-format #, c-format
msgid "Log file = %s" msgid "Log file = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:307 #: daemon/main.c:307
#, c-format #, c-format
msgid "Config file = %s" msgid "Config file = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:308 #: daemon/main.c:308
#, c-format #, c-format
msgid "PID file = %s" msgid "PID file = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:309 #: daemon/main.c:309
#, c-format #, c-format
msgid "Command socket = %s" msgid "Command socket = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:310 #: daemon/main.c:310
#, c-format #, c-format
msgid "Notify socket = %s" msgid "Notify socket = %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:321 #: daemon/main.c:321
#, c-format #, c-format
msgid "Error %d blocking signals on child threads: %s" msgid "Error %d blocking signals on child threads: %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:338 #: daemon/main.c:338
#, c-format #, c-format
msgid "Error %d unblocking signals on child threads: %s" msgid "Error %d unblocking signals on child threads: %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:351 #: daemon/main.c:351
msgid "Reloading X52 configuration" msgid "Reloading X52 configuration"
msgstr "" msgstr ""
#: daemon/x52d_main.c:358 #: daemon/main.c:358
msgid "Saving X52 configuration to disk" msgid "Saving X52 configuration to disk"
msgstr "" msgstr ""
#: daemon/x52d_main.c:364 #: daemon/main.c:364
#, c-format #, c-format
msgid "Received termination signal %s" msgid "Received termination signal %s"
msgstr "" msgstr ""
#: daemon/x52d_main.c:379 #: daemon/main.c:379
msgid "Shutting down X52 daemon" msgid "Shutting down X52 daemon"
msgstr "" msgstr ""
#: daemon/x52d_client.c:37 #: daemon/mouse.c:38 daemon/mouse.c:44
#, c-format
msgid "Error accepting client connection on socket fd %d: %s"
msgstr ""
#: daemon/x52d_client.c:43
#, c-format
msgid "Error marking client fd %d as nonblocking: %s"
msgstr ""
#: daemon/x52d_client.c:97
#, c-format
msgid "Error when polling socket: FD %d, error %d, len %lu"
msgstr ""
#: daemon/x52d_client.c:127
#, c-format
msgid "Error %d when polling %d descriptors: %s"
msgstr ""
#: daemon/x52d_client.c:130
msgid "Timed out when polling"
msgstr ""
#: daemon/x52d_clock.c:28
#, c-format
msgid "Setting clock enable to %s"
msgstr ""
#: daemon/x52d_clock.c:35 daemon/x52d_clock.c:119
#, c-format
msgid "Setting %s clock timezone to %s"
msgstr ""
#: daemon/x52d_clock.c:37
msgid "local"
msgstr ""
#: daemon/x52d_clock.c:37
msgid "UTC"
msgstr ""
#: daemon/x52d_clock.c:55
msgid "Unable to allocate memory for timezone. Falling back to UTC"
msgstr ""
#: daemon/x52d_clock.c:65
msgid "Unable to backup timezone environment. Falling back to UTC"
msgstr ""
#: daemon/x52d_clock.c:138
#, c-format
msgid "Setting %s clock format to %s"
msgstr ""
#: daemon/x52d_clock.c:162
#, c-format
msgid "Setting date format to %s"
msgstr ""
#: daemon/x52d_clock.c:174
msgid "Starting X52 clock manager thread"
msgstr ""
#: daemon/x52d_clock.c:185
#, c-format
msgid "Error %d retrieving current time: %s"
msgstr ""
#: daemon/x52d_clock.c:206
#, c-format
msgid "Error %d initializing clock thread: %s"
msgstr ""
#: daemon/x52d_clock.c:213
msgid "Shutting down X52 clock manager thread"
msgstr ""
#: daemon/x52d_command.c:379
#, c-format
msgid "Error reading from client %d: %s"
msgstr ""
#: daemon/x52d_command.c:390
#, c-format
msgid "Short write to client %d; expected %d bytes, wrote %d bytes"
msgstr ""
#: daemon/x52d_command.c:415
#, c-format
msgid "Error %d during command loop: %s"
msgstr ""
#: daemon/x52d_command.c:442
#, c-format
msgid "Error creating command socket: %s"
msgstr ""
#: daemon/x52d_command.c:450
#, c-format
msgid "Error marking command socket as nonblocking: %s"
msgstr ""
#: daemon/x52d_command.c:456
#, c-format
msgid "Error listening on command socket: %s"
msgstr ""
#: daemon/x52d_command.c:460
msgid "Starting command processing thread"
msgstr ""
#: daemon/x52d_command.c:478
msgid "Shutting down command processing thread"
msgstr ""
#: daemon/x52d_config.c:29
#, c-format
msgid "Error %d setting configuration defaults: %s"
msgstr ""
#: daemon/x52d_config.c:56
#, c-format
msgid "Error %d saving configuration file: %s"
msgstr ""
#: daemon/x52d_config_dump.c:108
#, c-format
msgid "Unable to save config file %s - code %d: %s"
msgstr ""
#: daemon/x52d_config_dump.c:126
#, c-format
msgid "Failed to dump %s.%s to config file %s"
msgstr ""
#: daemon/x52d_config_parser.c:172
#, c-format
msgid "Ignoring unknown key '%s.%s'"
msgstr ""
#: daemon/x52d_config_parser.c:213
#, c-format
msgid "Failed processing configuration file %s - code %d"
msgstr ""
#: daemon/x52d_config_parser.c:243
msgid "Failed to allocate memory for override structure"
msgstr ""
#: daemon/x52d_config_parser.c:252
msgid "Failed to allocate memory for override string"
msgstr ""
#: daemon/x52d_config_parser.c:263
#, c-format
msgid "No section found in override string '%s'"
msgstr ""
#: daemon/x52d_config_parser.c:277
#, c-format
msgid "No key found in override string '%s'"
msgstr ""
#: daemon/x52d_config_parser.c:288
#, c-format
msgid "No value found in override string '%s'"
msgstr ""
#: daemon/x52d_config_parser.c:339
#, c-format
msgid "Error processing override '%s.%s=%s'"
msgstr ""
#: daemon/x52d_device.c:37
msgid "Starting X52 device manager thread"
msgstr ""
#: daemon/x52d_device.c:44
#, c-format
msgid "Error %d connecting to device: %s"
msgstr ""
#: daemon/x52d_device.c:53
msgid "Device connected, writing configuration"
msgstr ""
#: daemon/x52d_device.c:76
msgid "Initializing libx52"
msgstr ""
#: daemon/x52d_device.c:80
#, c-format
msgid "Failure %d initializing libx52: %s"
msgstr ""
#: daemon/x52d_device.c:91
msgid "Shutting down X52 device manager thread"
msgstr ""
#: daemon/x52d_device.c:104
#, c-format
msgid "Error %d when updating X52 parameter: %s"
msgstr ""
#: daemon/x52d_device.c:180
#, c-format
msgid "Error %d when updating X52 device: %s"
msgstr ""
#: daemon/x52d_io.c:43
msgid "Starting X52 I/O thread"
msgstr ""
#: daemon/x52d_io.c:65
#, c-format
msgid "Error %d opening X52 I/O device: %s"
msgstr ""
#: daemon/x52d_io.c:76
#, c-format
msgid "Error %d reading from X52 I/O device: %s"
msgstr ""
#: daemon/x52d_io.c:103
#, c-format
msgid "Error %d initializing X52 I/O library: %s"
msgstr ""
#: daemon/x52d_io.c:109
#, c-format
msgid "Error %d initializing I/O driver thread: %s"
msgstr ""
#: daemon/x52d_io.c:116
msgid "Shutting down X52 I/O driver thread"
msgstr ""
#: daemon/x52d_mouse.c:38 daemon/x52d_mouse.c:44
#, c-format #, c-format
msgid "Clamping %s value %d to range [%d..%d]" msgid "Clamping %s value %d to range [%d..%d]"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:54 #: daemon/mouse.c:54
#, c-format #, c-format
msgid "Setting mouse enable to %s" msgid "Setting mouse enable to %s"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:71 #: daemon/mouse.c:71
msgid "" msgid ""
"Config option 'mouse.speed' is DEPRECATED. Please use 'mouse.sensitivity' " "Config option 'mouse.speed' is DEPRECATED. Please use 'mouse.sensitivity' "
"instead" "instead"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:86 #: daemon/mouse.c:86
#, c-format #, c-format
msgid "Migrating legacy mouse speed '%d' to sensitivity '%d' (percentage)" msgid "Migrating legacy mouse speed '%d' to sensitivity '%d' (percentage)"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:88 #: daemon/mouse.c:88
msgid "speed -> sensitivity" msgid "speed -> sensitivity"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:94 #: daemon/mouse.c:94
#, c-format #, c-format
msgid "Setting mouse reverse scroll to %s" msgid "Setting mouse reverse scroll to %s"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:106 #: daemon/mouse.c:106
#, c-format #, c-format
msgid "Setting mouse isometric mode to %s" msgid "Setting mouse isometric mode to %s"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:113 #: daemon/mouse.c:113
msgid "sensitivity" msgid "sensitivity"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:116 #: daemon/mouse.c:116
#, c-format #, c-format
msgid "Setting mouse sensitivity to %d%%" msgid "Setting mouse sensitivity to %d%%"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:123 #: daemon/mouse.c:123
msgid "curve factor" msgid "curve factor"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:124 #: daemon/mouse.c:124
#, c-format #, c-format
msgid "Setting mouse curve factor to %d" msgid "Setting mouse curve factor to %d"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:130 #: daemon/mouse.c:130
msgid "deadzone factor" msgid "deadzone factor"
msgstr "" msgstr ""
#: daemon/x52d_mouse.c:131 #: daemon/mouse.c:131
#, c-format #, c-format
msgid "Setting mouse deadzone to %d" msgid "Setting mouse deadzone to %d"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:44 #: daemon/mouse_handler.c:44
#, c-format #, c-format
msgid "Error %d writing mouse button event (button %d, state %d)" msgid "Error %d writing mouse button event (button %d, state %d)"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:82 #: daemon/mouse_handler.c:82
#, c-format #, c-format
msgid "Error writing mouse wheel event %d" msgid "Error writing mouse wheel event %d"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:185 #: daemon/mouse_handler.c:185
#, c-format #, c-format
msgid "Error %d writing mouse axis event (dx %d, dy %d)" msgid "Error %d writing mouse axis event (dx %d, dy %d)"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:197 #: daemon/mouse_handler.c:197
msgid "Error writing mouse sync event" msgid "Error writing mouse sync event"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:216 #: daemon/mouse_handler.c:216
msgid "Starting X52 virtual mouse driver thread" msgid "Starting X52 virtual mouse driver thread"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:235 #: daemon/mouse_handler.c:235
#, c-format #, c-format
msgid "Error %d initializing mouse thread: %s" msgid "Error %d initializing mouse thread: %s"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:242 #: daemon/mouse_handler.c:242
msgid "Shutting down X52 virtual mouse driver thread" msgid "Shutting down X52 virtual mouse driver thread"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:249 #: daemon/mouse_handler.c:249
msgid "Virtual mouse not created. Ignoring thread state change" msgid "Virtual mouse not created. Ignoring thread state change"
msgstr "" msgstr ""
#: daemon/x52d_mouse_handler.c:301 daemon/x52d_mouse_handler.c:309 #: daemon/mouse_handler.c:301 daemon/mouse_handler.c:309
#, c-format #, c-format
msgid "Error %d creating X52 virtual mouse" msgid "Error %d creating X52 virtual mouse"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:46 #: daemon/notify.c:46
#, c-format #, c-format
msgid "Error creating notification socket: %s" msgid "Error creating notification socket: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:51 #: daemon/notify.c:51
#, c-format #, c-format
msgid "Error marking notification socket as nonblocking: %s" msgid "Error marking notification socket as nonblocking: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:56 #: daemon/notify.c:56
#, c-format #, c-format
msgid "Error listening on notification socket: %s" msgid "Error listening on notification socket: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:65 #: daemon/notify.c:65
msgid "Error setting up notification socket" msgid "Error setting up notification socket"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:81 daemon/x52d_notify.c:91 #: daemon/notify.c:81 daemon/notify.c:91
#, c-format #, c-format
msgid "Error %d reading from pipe: %s" msgid "Error %d reading from pipe: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:128 #: daemon/notify.c:128
#, c-format #, c-format
msgid "Error %d writing notification pipe: %s" msgid "Error %d writing notification pipe: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:174 #: daemon/notify.c:174
#, c-format #, c-format
msgid "Error %d creating notification pipe: %s" msgid "Error %d creating notification pipe: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:183 #: daemon/notify.c:183
#, c-format #, c-format
msgid "Error %d initializing notify thread: %s" msgid "Error %d initializing notify thread: %s"
msgstr "" msgstr ""
#: daemon/x52d_notify.c:189 #: daemon/notify.c:189
#, c-format #, c-format
msgid "Error %d initializing notify listener: %s" msgid "Error %d initializing notify listener: %s"
msgstr "" msgstr ""
#: daemon/x52ctl.c:60
#, c-format
msgid "Usage: %s [-i] [-s socket-path] [command]\n"
msgstr ""
#: daemon/x52ctl.c:73
#, c-format
msgid "Argument length too long\n"
msgstr ""
#: daemon/x52ctl.c:180
#, c-format
msgid "Running in interactive mode, ignoring extra arguments\n"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: libx52 0.2.3\n" "Project-Id-Version: libx52 0.2.3\n"
"Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n" "Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n"
"POT-Creation-Date: 2026-04-03 18:06-0700\n" "POT-Creation-Date: 2026-04-03 23:44-0700\n"
"PO-Revision-Date: 2026-04-01 20:50-0700\n" "PO-Revision-Date: 2026-04-01 20:50-0700\n"
"Last-Translator: Nirenjan Krishnan <nirenjan@gmail.com>\n" "Last-Translator: Nirenjan Krishnan <nirenjan@gmail.com>\n"
"Language-Team: Dummy Language for testing i18n\n" "Language-Team: Dummy Language for testing i18n\n"
@ -142,13 +142,13 @@ msgstr "YYay-MMay-DDay"
msgid "Unknown LED state %d" msgid "Unknown LED state %d"
msgstr "Unknownay EDLay atestay %d" msgstr "Unknownay EDLay atestay %d"
#: libx52/stringify.c:47 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:55 #: libx52/stringify.c:47 daemon/clock.c:29 daemon/mouse.c:55 daemon/mouse.c:95
#: daemon/x52d_mouse.c:95 daemon/x52d_mouse.c:107 #: daemon/mouse.c:107
msgid "off" msgid "off"
msgstr "offay" msgstr "offay"
#: libx52/stringify.c:48 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:55 #: libx52/stringify.c:48 daemon/clock.c:29 daemon/mouse.c:55 daemon/mouse.c:95
#: daemon/x52d_mouse.c:95 daemon/x52d_mouse.c:107 #: daemon/mouse.c:107
msgid "on" msgid "on"
msgstr "onay" msgstr "onay"
@ -564,17 +564,274 @@ msgstr "Estingtay aracterchay 0x%02x..."
msgid "OK" msgid "OK"
msgstr "OKay" msgstr "OKay"
#: daemon/x52d_main.c:67 #: daemon/client.c:37
#, c-format
msgid "Error accepting client connection on socket fd %d: %s"
msgstr "Erroray acceptingay ientclay onnectioncay onay ocketsay fday %d: %s"
#: daemon/client.c:43
#, c-format
msgid "Error marking client fd %d as nonblocking: %s"
msgstr "Erroray arkingmay ientclay fday %d asay onblockingnay: %s"
#: daemon/client.c:97
#, c-format
msgid "Error when polling socket: FD %d, error %d, len %lu"
msgstr "Erroray enwhay ollingpay ocketsay: FDay %d, erroray %d, enlay %lu"
#: daemon/client.c:127
#, c-format
msgid "Error %d when polling %d descriptors: %s"
msgstr "Erroray %d enwhay ollingpay %d escriptorsday: %s"
#: daemon/client.c:130
msgid "Timed out when polling"
msgstr "Imedtay outay enwhay ollingpay"
#: daemon/clock.c:28
#, c-format
msgid "Setting clock enable to %s"
msgstr "Ettingsay ockclay enableay otay %s"
#: daemon/clock.c:35 daemon/clock.c:119
#, c-format
msgid "Setting %s clock timezone to %s"
msgstr "Ettingsay %s ockclay imezonetay otay %s"
#: daemon/clock.c:37
msgid "local"
msgstr "ocallay"
#: daemon/clock.c:37
msgid "UTC"
msgstr "UTCay"
#: daemon/clock.c:55
msgid "Unable to allocate memory for timezone. Falling back to UTC"
msgstr ""
"Unableay otay allocateay emorymay orfay imezonetay. Allingfay ackbay otay "
"UTCay"
#: daemon/clock.c:65
msgid "Unable to backup timezone environment. Falling back to UTC"
msgstr ""
"Unableay otay ackupbay imezonetay environmentay. Allingfay ackbay otay UTCay"
#: daemon/clock.c:138
#, c-format
msgid "Setting %s clock format to %s"
msgstr "Ettingsay %s ockclay ormatfay otay %s"
#: daemon/clock.c:162
#, c-format
msgid "Setting date format to %s"
msgstr "Ettingsay ateday ormatfay otay %s"
#: daemon/clock.c:174
msgid "Starting X52 clock manager thread"
msgstr "Artingstay X52 ockclay anagermay eadthray"
#: daemon/clock.c:185
#, c-format
msgid "Error %d retrieving current time: %s"
msgstr "Erroray %d etrievingray urrentcay imetay: %s"
#: daemon/clock.c:206
#, c-format
msgid "Error %d initializing clock thread: %s"
msgstr "Erroray %d initializingay ockclay eadthray: %s"
#: daemon/clock.c:213
msgid "Shutting down X52 clock manager thread"
msgstr "Uttingshay ownday X52 ockclay anagermay eadthray"
#: daemon/command.c:379
#, c-format
msgid "Error reading from client %d: %s"
msgstr "Erroray eadingray omfray ientclay %d: %s"
#: daemon/command.c:390
#, c-format
msgid "Short write to client %d; expected %d bytes, wrote %d bytes"
msgstr ""
"Ortshay itewray otay ientclay %d; expecteday %d ytesbay, otewray %d ytesbay"
#: daemon/command.c:415
#, c-format
msgid "Error %d during command loop: %s"
msgstr "Erroray %d uringday ommandcay ooplay: %s"
#: daemon/command.c:442
#, c-format
msgid "Error creating command socket: %s"
msgstr "Erroray eatingcray ommandcay ocketsay: %s"
#: daemon/command.c:450
#, c-format
msgid "Error marking command socket as nonblocking: %s"
msgstr "Erroray arkingmay ommandcay ocketsay asay onblockingnay: %s"
#: daemon/command.c:456
#, c-format
msgid "Error listening on command socket: %s"
msgstr "Erroray isteninglay onay ommandcay ocketsay: %s"
#: daemon/command.c:460
msgid "Starting command processing thread"
msgstr "Artingstay ommandcay ocessingpray eadthray"
#: daemon/command.c:478
msgid "Shutting down command processing thread"
msgstr "Uttingshay ownday ommandcay ocessingpray eadthray"
#: daemon/config.c:29
#, c-format
msgid "Error %d setting configuration defaults: %s"
msgstr "Erroray %d ettingsay onfigurationcay efaultsday: %s"
#: daemon/config.c:56
#, c-format
msgid "Error %d saving configuration file: %s"
msgstr "Erroray %d avingsay onfigurationcay ilefay: %s"
#: daemon/config_dump.c:108
#, c-format
msgid "Unable to save config file %s - code %d: %s"
msgstr "Unableay otay avesay onfigcay ilefay %s - odecay %d: %s"
#: daemon/config_dump.c:126
#, c-format
msgid "Failed to dump %s.%s to config file %s"
msgstr "Ailedfay otay umpday %s.%s otay onfigcay ilefay %s"
#: daemon/config_parser.c:172
#, c-format
msgid "Ignoring unknown key '%s.%s'"
msgstr "Ignoringay unknownay eykay '%s.%s'"
#: daemon/config_parser.c:213
#, c-format
msgid "Failed processing configuration file %s - code %d"
msgstr "Ailedfay ocessingpray onfigurationcay ilefay %s - odecay %d"
#: daemon/config_parser.c:243
msgid "Failed to allocate memory for override structure"
msgstr "Ailedfay otay allocateay emorymay orfay overrideay ucturestray"
#: daemon/config_parser.c:252
msgid "Failed to allocate memory for override string"
msgstr "Ailedfay otay allocateay emorymay orfay overrideay ingstray"
#: daemon/config_parser.c:263
#, c-format
msgid "No section found in override string '%s'"
msgstr "Onay ectionsay oundfay inay overrideay ingstray '%s'"
#: daemon/config_parser.c:277
#, c-format
msgid "No key found in override string '%s'"
msgstr "Onay eykay oundfay inay overrideay ingstray '%s'"
#: daemon/config_parser.c:288
#, c-format
msgid "No value found in override string '%s'"
msgstr "Onay aluevay oundfay inay overrideay ingstray '%s'"
#: daemon/config_parser.c:339
#, c-format
msgid "Error processing override '%s.%s=%s'"
msgstr "Erroray ocessingpray overriday '%s.%s=%s'"
#: daemon/daemon_control.c:60
#, c-format
msgid "Usage: %s [-i] [-s socket-path] [command]\n"
msgstr "Usageay: %s [-i] [-s ocketsay-athpay] [ommandcay]\n"
#: daemon/daemon_control.c:73
#, c-format
msgid "Argument length too long\n"
msgstr "Argumentay engthlay ootay onglay\n"
#: daemon/daemon_control.c:180
#, c-format
msgid "Running in interactive mode, ignoring extra arguments\n"
msgstr "Unningray inay interactiveay odemay, ignoringay extraay argumentsay\n"
#: daemon/device.c:37
msgid "Starting X52 device manager thread"
msgstr "Artingstay X52 eviceday anagermay eadthray"
#: daemon/device.c:44
#, c-format
msgid "Error %d connecting to device: %s"
msgstr "Erroray %d onnectingcay otay eviceday: %s"
#: daemon/device.c:53
msgid "Device connected, writing configuration"
msgstr "Eviceday onnectedcay, itingwray onfigurationcay"
#: daemon/device.c:76
msgid "Initializing libx52"
msgstr "Initializingay libx52"
#: daemon/device.c:80
#, c-format
msgid "Failure %d initializing libx52: %s"
msgstr "Ailurefay %d initializeay libx52: %s"
#: daemon/device.c:91
msgid "Shutting down X52 device manager thread"
msgstr "Uttingshay ownday X52 eviceday anagermay eadthray"
#: daemon/device.c:104
#, c-format
msgid "Error %d when updating X52 parameter: %s"
msgstr "Erroray %d enwhay updatingay X52 arameterpay: %s"
#: daemon/device.c:180
#, c-format
msgid "Error %d when updating X52 device: %s"
msgstr "Erroray %d enwhay updatingay X52 eviceday: %s"
#: daemon/io.c:43
msgid "Starting X52 I/O thread"
msgstr "Artingstay X52 I/O eadthray"
#: daemon/io.c:65
#, c-format
msgid "Error %d opening X52 I/O device: %s"
msgstr "Erroray %d openingay X52 I/O eviceday: %s"
#: daemon/io.c:76
#, c-format
msgid "Error %d reading from X52 I/O device: %s"
msgstr "Erroray %d eadingray omfray X52 I/O eviceday: %s"
#: daemon/io.c:103
#, c-format
msgid "Error %d initializing X52 I/O library: %s"
msgstr "Erroray %d initializingay X52 ibrarylay: %s"
#: daemon/io.c:109
#, c-format
msgid "Error %d initializing I/O driver thread: %s"
msgstr "Erroray %d initializingay I/O iverdray eadthray: %s"
#: daemon/io.c:116
msgid "Shutting down X52 I/O driver thread"
msgstr "Uttingshay ownday X52 I/O iverdray eadthray"
#: daemon/main.c:67
#, c-format #, c-format
msgid "Error %d setting log file: %s\n" msgid "Error %d setting log file: %s\n"
msgstr "Erroray %d ettingsay oglay ilefay: %s\n" msgstr "Erroray %d ettingsay oglay ilefay: %s\n"
#: daemon/x52d_main.c:83 #: daemon/main.c:83
#, c-format #, c-format
msgid "Error %d installing handler for signal %d: %s" msgid "Error %d installing handler for signal %d: %s"
msgstr "Erroray %d installingay andlerhay orfay ignalsay %d: %s" msgstr "Erroray %d installingay andlerhay orfay ignalsay %d: %s"
#: daemon/x52d_main.c:94 #: daemon/main.c:94
#, c-format #, c-format
msgid "" msgid ""
"Usage: %s [-f] [-v] [-q]\n" "Usage: %s [-f] [-v] [-q]\n"
@ -590,344 +847,102 @@ msgstr ""
"\t[-b otifynay-ocketsay-athpay]\n" "\t[-b otifynay-ocketsay-athpay]\n"
"\n" "\n"
#: daemon/x52d_main.c:129 #: daemon/main.c:129
#, c-format #, c-format
msgid "Daemon is already running as PID %u" msgid "Daemon is already running as PID %u"
msgstr "Aemonday isay alreadyay unningray asay IDPay %u" msgstr "Aemonday isay alreadyay unningray asay IDPay %u"
#: daemon/x52d_main.c:271 #: daemon/main.c:271
#, c-format #, c-format
msgid "Unable to parse configuration override '%s'\n" msgid "Unable to parse configuration override '%s'\n"
msgstr "Unableay otay arsepay onfigurationcay overrideay '%s'\n" msgstr "Unableay otay arsepay onfigurationcay overrideay '%s'\n"
#: daemon/x52d_main.c:303 #: daemon/main.c:303
#, c-format #, c-format
msgid "Foreground = %s" msgid "Foreground = %s"
msgstr "Oregroundfay = %s" msgstr "Oregroundfay = %s"
#: daemon/x52d_main.c:303 daemon/x52d_main.c:304 #: daemon/main.c:303 daemon/main.c:304
msgid "true" msgid "true"
msgstr "uetray" msgstr "uetray"
#: daemon/x52d_main.c:303 daemon/x52d_main.c:304 #: daemon/main.c:303 daemon/main.c:304
msgid "false" msgid "false"
msgstr "alsefay" msgstr "alsefay"
#: daemon/x52d_main.c:304 #: daemon/main.c:304
#, c-format #, c-format
msgid "Quiet = %s" msgid "Quiet = %s"
msgstr "Uietqay = %s" msgstr "Uietqay = %s"
#: daemon/x52d_main.c:305 #: daemon/main.c:305
#, c-format #, c-format
msgid "Verbosity = %d" msgid "Verbosity = %d"
msgstr "Erbosityvay = %d" msgstr "Erbosityvay = %d"
#: daemon/x52d_main.c:306 #: daemon/main.c:306
#, c-format #, c-format
msgid "Log file = %s" msgid "Log file = %s"
msgstr "Oglay ilefay = %s" msgstr "Oglay ilefay = %s"
#: daemon/x52d_main.c:307 #: daemon/main.c:307
#, c-format #, c-format
msgid "Config file = %s" msgid "Config file = %s"
msgstr "Onfigcay ilefay = %s" msgstr "Onfigcay ilefay = %s"
#: daemon/x52d_main.c:308 #: daemon/main.c:308
#, c-format #, c-format
msgid "PID file = %s" msgid "PID file = %s"
msgstr "IDPay ilefay = %s" msgstr "IDPay ilefay = %s"
#: daemon/x52d_main.c:309 #: daemon/main.c:309
#, c-format #, c-format
msgid "Command socket = %s" msgid "Command socket = %s"
msgstr "Ommandcay ocketsay = %s" msgstr "Ommandcay ocketsay = %s"
#: daemon/x52d_main.c:310 #: daemon/main.c:310
#, c-format #, c-format
msgid "Notify socket = %s" msgid "Notify socket = %s"
msgstr "Otifynay ocketsay = %s" msgstr "Otifynay ocketsay = %s"
#: daemon/x52d_main.c:321 #: daemon/main.c:321
#, c-format #, c-format
msgid "Error %d blocking signals on child threads: %s" msgid "Error %d blocking signals on child threads: %s"
msgstr "Erroray %d ockingblay ignalssay onay ildchay eadsthray: %s" msgstr "Erroray %d ockingblay ignalssay onay ildchay eadsthray: %s"
#: daemon/x52d_main.c:338 #: daemon/main.c:338
#, c-format #, c-format
msgid "Error %d unblocking signals on child threads: %s" msgid "Error %d unblocking signals on child threads: %s"
msgstr "Erroray %d unblockingay ignalssay onay ildchay eadsthray: %s" msgstr "Erroray %d unblockingay ignalssay onay ildchay eadsthray: %s"
#: daemon/x52d_main.c:351 #: daemon/main.c:351
msgid "Reloading X52 configuration" msgid "Reloading X52 configuration"
msgstr "Eloadingray X52 onfigurationcay" msgstr "Eloadingray X52 onfigurationcay"
#: daemon/x52d_main.c:358 #: daemon/main.c:358
msgid "Saving X52 configuration to disk" msgid "Saving X52 configuration to disk"
msgstr "Avingsay X52 onfigurationcay otay iskday" msgstr "Avingsay X52 onfigurationcay otay iskday"
#: daemon/x52d_main.c:364 #: daemon/main.c:364
#, c-format #, c-format
msgid "Received termination signal %s" msgid "Received termination signal %s"
msgstr "Eceivedray erminationtay ignalsay %s" msgstr "Eceivedray erminationtay ignalsay %s"
#: daemon/x52d_main.c:379 #: daemon/main.c:379
msgid "Shutting down X52 daemon" msgid "Shutting down X52 daemon"
msgstr "Uttingshay ownday X52 aemonday" msgstr "Uttingshay ownday X52 aemonday"
#: daemon/x52d_client.c:37 #: daemon/mouse.c:38 daemon/mouse.c:44
#, c-format
msgid "Error accepting client connection on socket fd %d: %s"
msgstr "Erroray acceptingay ientclay onnectioncay onay ocketsay fday %d: %s"
#: daemon/x52d_client.c:43
#, c-format
msgid "Error marking client fd %d as nonblocking: %s"
msgstr "Erroray arkingmay ientclay fday %d asay onblockingnay: %s"
#: daemon/x52d_client.c:97
#, c-format
msgid "Error when polling socket: FD %d, error %d, len %lu"
msgstr "Erroray enwhay ollingpay ocketsay: FDay %d, erroray %d, enlay %lu"
#: daemon/x52d_client.c:127
#, c-format
msgid "Error %d when polling %d descriptors: %s"
msgstr "Erroray %d enwhay ollingpay %d escriptorsday: %s"
#: daemon/x52d_client.c:130
msgid "Timed out when polling"
msgstr "Imedtay outay enwhay ollingpay"
#: daemon/x52d_clock.c:28
#, c-format
msgid "Setting clock enable to %s"
msgstr "Ettingsay ockclay enableay otay %s"
#: daemon/x52d_clock.c:35 daemon/x52d_clock.c:119
#, c-format
msgid "Setting %s clock timezone to %s"
msgstr "Ettingsay %s ockclay imezonetay otay %s"
#: daemon/x52d_clock.c:37
msgid "local"
msgstr "ocallay"
#: daemon/x52d_clock.c:37
msgid "UTC"
msgstr "UTCay"
#: daemon/x52d_clock.c:55
msgid "Unable to allocate memory for timezone. Falling back to UTC"
msgstr ""
"Unableay otay allocateay emorymay orfay imezonetay. Allingfay ackbay otay "
"UTCay"
#: daemon/x52d_clock.c:65
msgid "Unable to backup timezone environment. Falling back to UTC"
msgstr ""
"Unableay otay ackupbay imezonetay environmentay. Allingfay ackbay otay UTCay"
#: daemon/x52d_clock.c:138
#, c-format
msgid "Setting %s clock format to %s"
msgstr "Ettingsay %s ockclay ormatfay otay %s"
#: daemon/x52d_clock.c:162
#, c-format
msgid "Setting date format to %s"
msgstr "Ettingsay ateday ormatfay otay %s"
#: daemon/x52d_clock.c:174
msgid "Starting X52 clock manager thread"
msgstr "Artingstay X52 ockclay anagermay eadthray"
#: daemon/x52d_clock.c:185
#, c-format
msgid "Error %d retrieving current time: %s"
msgstr "Erroray %d etrievingray urrentcay imetay: %s"
#: daemon/x52d_clock.c:206
#, c-format
msgid "Error %d initializing clock thread: %s"
msgstr "Erroray %d initializingay ockclay eadthray: %s"
#: daemon/x52d_clock.c:213
msgid "Shutting down X52 clock manager thread"
msgstr "Uttingshay ownday X52 ockclay anagermay eadthray"
#: daemon/x52d_command.c:379
#, c-format
msgid "Error reading from client %d: %s"
msgstr "Erroray eadingray omfray ientclay %d: %s"
#: daemon/x52d_command.c:390
#, c-format
msgid "Short write to client %d; expected %d bytes, wrote %d bytes"
msgstr ""
"Ortshay itewray otay ientclay %d; expecteday %d ytesbay, otewray %d ytesbay"
#: daemon/x52d_command.c:415
#, c-format
msgid "Error %d during command loop: %s"
msgstr "Erroray %d uringday ommandcay ooplay: %s"
#: daemon/x52d_command.c:442
#, c-format
msgid "Error creating command socket: %s"
msgstr "Erroray eatingcray ommandcay ocketsay: %s"
#: daemon/x52d_command.c:450
#, c-format
msgid "Error marking command socket as nonblocking: %s"
msgstr "Erroray arkingmay ommandcay ocketsay asay onblockingnay: %s"
#: daemon/x52d_command.c:456
#, c-format
msgid "Error listening on command socket: %s"
msgstr "Erroray isteninglay onay ommandcay ocketsay: %s"
#: daemon/x52d_command.c:460
msgid "Starting command processing thread"
msgstr "Artingstay ommandcay ocessingpray eadthray"
#: daemon/x52d_command.c:478
msgid "Shutting down command processing thread"
msgstr "Uttingshay ownday ommandcay ocessingpray eadthray"
#: daemon/x52d_config.c:29
#, c-format
msgid "Error %d setting configuration defaults: %s"
msgstr "Erroray %d ettingsay onfigurationcay efaultsday: %s"
#: daemon/x52d_config.c:56
#, c-format
msgid "Error %d saving configuration file: %s"
msgstr "Erroray %d avingsay onfigurationcay ilefay: %s"
#: daemon/x52d_config_dump.c:108
#, c-format
msgid "Unable to save config file %s - code %d: %s"
msgstr "Unableay otay avesay onfigcay ilefay %s - odecay %d: %s"
#: daemon/x52d_config_dump.c:126
#, c-format
msgid "Failed to dump %s.%s to config file %s"
msgstr "Ailedfay otay umpday %s.%s otay onfigcay ilefay %s"
#: daemon/x52d_config_parser.c:172
#, c-format
msgid "Ignoring unknown key '%s.%s'"
msgstr "Ignoringay unknownay eykay '%s.%s'"
#: daemon/x52d_config_parser.c:213
#, c-format
msgid "Failed processing configuration file %s - code %d"
msgstr "Ailedfay ocessingpray onfigurationcay ilefay %s - odecay %d"
#: daemon/x52d_config_parser.c:243
msgid "Failed to allocate memory for override structure"
msgstr "Ailedfay otay allocateay emorymay orfay overrideay ucturestray"
#: daemon/x52d_config_parser.c:252
msgid "Failed to allocate memory for override string"
msgstr "Ailedfay otay allocateay emorymay orfay overrideay ingstray"
#: daemon/x52d_config_parser.c:263
#, c-format
msgid "No section found in override string '%s'"
msgstr "Onay ectionsay oundfay inay overrideay ingstray '%s'"
#: daemon/x52d_config_parser.c:277
#, c-format
msgid "No key found in override string '%s'"
msgstr "Onay eykay oundfay inay overrideay ingstray '%s'"
#: daemon/x52d_config_parser.c:288
#, c-format
msgid "No value found in override string '%s'"
msgstr "Onay aluevay oundfay inay overrideay ingstray '%s'"
#: daemon/x52d_config_parser.c:339
#, c-format
msgid "Error processing override '%s.%s=%s'"
msgstr "Erroray ocessingpray overriday '%s.%s=%s'"
#: daemon/x52d_device.c:37
msgid "Starting X52 device manager thread"
msgstr "Artingstay X52 eviceday anagermay eadthray"
#: daemon/x52d_device.c:44
#, c-format
msgid "Error %d connecting to device: %s"
msgstr "Erroray %d onnectingcay otay eviceday: %s"
#: daemon/x52d_device.c:53
msgid "Device connected, writing configuration"
msgstr "Eviceday onnectedcay, itingwray onfigurationcay"
#: daemon/x52d_device.c:76
msgid "Initializing libx52"
msgstr "Initializingay libx52"
#: daemon/x52d_device.c:80
#, c-format
msgid "Failure %d initializing libx52: %s"
msgstr "Ailurefay %d initializeay libx52: %s"
#: daemon/x52d_device.c:91
msgid "Shutting down X52 device manager thread"
msgstr "Uttingshay ownday X52 eviceday anagermay eadthray"
#: daemon/x52d_device.c:104
#, c-format
msgid "Error %d when updating X52 parameter: %s"
msgstr "Erroray %d enwhay updatingay X52 arameterpay: %s"
#: daemon/x52d_device.c:180
#, c-format
msgid "Error %d when updating X52 device: %s"
msgstr "Erroray %d enwhay updatingay X52 eviceday: %s"
#: daemon/x52d_io.c:43
msgid "Starting X52 I/O thread"
msgstr "Artingstay X52 I/O eadthray"
#: daemon/x52d_io.c:65
#, c-format
msgid "Error %d opening X52 I/O device: %s"
msgstr "Erroray %d openingay X52 I/O eviceday: %s"
#: daemon/x52d_io.c:76
#, c-format
msgid "Error %d reading from X52 I/O device: %s"
msgstr "Erroray %d eadingray omfray X52 I/O eviceday: %s"
#: daemon/x52d_io.c:103
#, c-format
msgid "Error %d initializing X52 I/O library: %s"
msgstr "Erroray %d initializingay X52 ibrarylay: %s"
#: daemon/x52d_io.c:109
#, c-format
msgid "Error %d initializing I/O driver thread: %s"
msgstr "Erroray %d initializingay I/O iverdray eadthray: %s"
#: daemon/x52d_io.c:116
msgid "Shutting down X52 I/O driver thread"
msgstr "Uttingshay ownday X52 I/O iverdray eadthray"
#: daemon/x52d_mouse.c:38 daemon/x52d_mouse.c:44
#, c-format #, c-format
msgid "Clamping %s value %d to range [%d..%d]" msgid "Clamping %s value %d to range [%d..%d]"
msgstr "Ampingclay %s aluevay %d otay angeray [%d..%d]" msgstr "Ampingclay %s aluevay %d otay angeray [%d..%d]"
#: daemon/x52d_mouse.c:54 #: daemon/mouse.c:54
#, c-format #, c-format
msgid "Setting mouse enable to %s" msgid "Setting mouse enable to %s"
msgstr "Ettingsay ousemay enableay otay %s" msgstr "Ettingsay ousemay enableay otay %s"
#: daemon/x52d_mouse.c:71 #: daemon/mouse.c:71
msgid "" msgid ""
"Config option 'mouse.speed' is DEPRECATED. Please use 'mouse.sensitivity' " "Config option 'mouse.speed' is DEPRECATED. Please use 'mouse.sensitivity' "
"instead" "instead"
@ -935,155 +950,140 @@ msgstr ""
"Onfigcay optionay 'mouse.speed' isay EPRECATEDDAY. Easeplay useay 'mouse." "Onfigcay optionay 'mouse.speed' isay EPRECATEDDAY. Easeplay useay 'mouse."
"sensitivity' insteaday" "sensitivity' insteaday"
#: daemon/x52d_mouse.c:86 #: daemon/mouse.c:86
#, c-format #, c-format
msgid "Migrating legacy mouse speed '%d' to sensitivity '%d' (percentage)" msgid "Migrating legacy mouse speed '%d' to sensitivity '%d' (percentage)"
msgstr "" msgstr ""
"Igratingmay egacylay ousemay eedspay '%d' otay ensitivitysay " "Igratingmay egacylay ousemay eedspay '%d' otay ensitivitysay "
"'%d' (ercentagepay)" "'%d' (ercentagepay)"
#: daemon/x52d_mouse.c:88 #: daemon/mouse.c:88
msgid "speed -> sensitivity" msgid "speed -> sensitivity"
msgstr "eedspay -> ensitivitysay" msgstr "eedspay -> ensitivitysay"
#: daemon/x52d_mouse.c:94 #: daemon/mouse.c:94
#, c-format #, c-format
msgid "Setting mouse reverse scroll to %s" msgid "Setting mouse reverse scroll to %s"
msgstr "Ettingsay ousemay everseray ollscray otay %s" msgstr "Ettingsay ousemay everseray ollscray otay %s"
#: daemon/x52d_mouse.c:106 #: daemon/mouse.c:106
#, c-format #, c-format
msgid "Setting mouse isometric mode to %s" msgid "Setting mouse isometric mode to %s"
msgstr "Ettingsay ousemay isometricay odemay otay %s" msgstr "Ettingsay ousemay isometricay odemay otay %s"
#: daemon/x52d_mouse.c:113 #: daemon/mouse.c:113
msgid "sensitivity" msgid "sensitivity"
msgstr "ensitivitysay" msgstr "ensitivitysay"
#: daemon/x52d_mouse.c:116 #: daemon/mouse.c:116
#, c-format #, c-format
msgid "Setting mouse sensitivity to %d%%" msgid "Setting mouse sensitivity to %d%%"
msgstr "Ettingsay ousemay ensitivitysay otay %d" msgstr "Ettingsay ousemay ensitivitysay otay %d"
#: daemon/x52d_mouse.c:123 #: daemon/mouse.c:123
msgid "curve factor" msgid "curve factor"
msgstr "urvecay actorfay" msgstr "urvecay actorfay"
#: daemon/x52d_mouse.c:124 #: daemon/mouse.c:124
#, c-format #, c-format
msgid "Setting mouse curve factor to %d" msgid "Setting mouse curve factor to %d"
msgstr "Ettingsay ousemay urvecay actorfay otay %d" msgstr "Ettingsay ousemay urvecay actorfay otay %d"
#: daemon/x52d_mouse.c:130 #: daemon/mouse.c:130
msgid "deadzone factor" msgid "deadzone factor"
msgstr "eadzoneday actorfay" msgstr "eadzoneday actorfay"
#: daemon/x52d_mouse.c:131 #: daemon/mouse.c:131
#, c-format #, c-format
msgid "Setting mouse deadzone to %d" msgid "Setting mouse deadzone to %d"
msgstr "Ettingsay ousemay eadzoneday otay %d" msgstr "Ettingsay ousemay eadzoneday otay %d"
#: daemon/x52d_mouse_handler.c:44 #: daemon/mouse_handler.c:44
#, c-format #, c-format
msgid "Error %d writing mouse button event (button %d, state %d)" msgid "Error %d writing mouse button event (button %d, state %d)"
msgstr "" msgstr ""
"Erroray %d itingwray ousemay uttonbay eventay (uttonbay %d, atestay %d)" "Erroray %d itingwray ousemay uttonbay eventay (uttonbay %d, atestay %d)"
#: daemon/x52d_mouse_handler.c:82 #: daemon/mouse_handler.c:82
#, c-format #, c-format
msgid "Error writing mouse wheel event %d" msgid "Error writing mouse wheel event %d"
msgstr "Erroray itingwray ousemay eelwhay eventay %d" msgstr "Erroray itingwray ousemay eelwhay eventay %d"
#: daemon/x52d_mouse_handler.c:185 #: daemon/mouse_handler.c:185
#, c-format #, c-format
msgid "Error %d writing mouse axis event (dx %d, dy %d)" msgid "Error %d writing mouse axis event (dx %d, dy %d)"
msgstr "Erroray %d itingwray ousemay axisay eventay (xday %d, yday %d)" msgstr "Erroray %d itingwray ousemay axisay eventay (xday %d, yday %d)"
#: daemon/x52d_mouse_handler.c:197 #: daemon/mouse_handler.c:197
msgid "Error writing mouse sync event" msgid "Error writing mouse sync event"
msgstr "Erroray itingwray ousemay yncsay eventay" msgstr "Erroray itingwray ousemay yncsay eventay"
#: daemon/x52d_mouse_handler.c:216 #: daemon/mouse_handler.c:216
msgid "Starting X52 virtual mouse driver thread" msgid "Starting X52 virtual mouse driver thread"
msgstr "Artingstay X52 irtualvay ousemay iverdray eadthray" msgstr "Artingstay X52 irtualvay ousemay iverdray eadthray"
#: daemon/x52d_mouse_handler.c:235 #: daemon/mouse_handler.c:235
#, c-format #, c-format
msgid "Error %d initializing mouse thread: %s" msgid "Error %d initializing mouse thread: %s"
msgstr "Erroray %d initializingay ousemay eadthray: %s" msgstr "Erroray %d initializingay ousemay eadthray: %s"
#: daemon/x52d_mouse_handler.c:242 #: daemon/mouse_handler.c:242
msgid "Shutting down X52 virtual mouse driver thread" msgid "Shutting down X52 virtual mouse driver thread"
msgstr "Uttingshay ownday X52 irtualvay ousemay iverdray eadthray" msgstr "Uttingshay ownday X52 irtualvay ousemay iverdray eadthray"
#: daemon/x52d_mouse_handler.c:249 #: daemon/mouse_handler.c:249
msgid "Virtual mouse not created. Ignoring thread state change" msgid "Virtual mouse not created. Ignoring thread state change"
msgstr "Irtualvay ousemay otnay eatedcray. Ignoringa eadthray atestay angechay" msgstr "Irtualvay ousemay otnay eatedcray. Ignoringa eadthray atestay angechay"
#: daemon/x52d_mouse_handler.c:301 daemon/x52d_mouse_handler.c:309 #: daemon/mouse_handler.c:301 daemon/mouse_handler.c:309
#, c-format #, c-format
msgid "Error %d creating X52 virtual mouse" msgid "Error %d creating X52 virtual mouse"
msgstr "Erroray %d eatingcray X52 irtualvay ousemay" msgstr "Erroray %d eatingcray X52 irtualvay ousemay"
#: daemon/x52d_notify.c:46 #: daemon/notify.c:46
#, c-format #, c-format
msgid "Error creating notification socket: %s" msgid "Error creating notification socket: %s"
msgstr "Erroray eatingcray otificationnay ocketsay: %s" msgstr "Erroray eatingcray otificationnay ocketsay: %s"
#: daemon/x52d_notify.c:51 #: daemon/notify.c:51
#, c-format #, c-format
msgid "Error marking notification socket as nonblocking: %s" msgid "Error marking notification socket as nonblocking: %s"
msgstr "Erroray arkingmay otificationnay ocketsay asay onblockingnay: %s" msgstr "Erroray arkingmay otificationnay ocketsay asay onblockingnay: %s"
#: daemon/x52d_notify.c:56 #: daemon/notify.c:56
#, c-format #, c-format
msgid "Error listening on notification socket: %s" msgid "Error listening on notification socket: %s"
msgstr "Erroray isteninglay onay otificationnay ocketsay: %s" msgstr "Erroray isteninglay onay otificationnay ocketsay: %s"
#: daemon/x52d_notify.c:65 #: daemon/notify.c:65
msgid "Error setting up notification socket" msgid "Error setting up notification socket"
msgstr "Erroray ettingsay upay otificationnay ocketsay: %s" msgstr "Erroray ettingsay upay otificationnay ocketsay: %s"
#: daemon/x52d_notify.c:81 daemon/x52d_notify.c:91 #: daemon/notify.c:81 daemon/notify.c:91
#, c-format #, c-format
msgid "Error %d reading from pipe: %s" msgid "Error %d reading from pipe: %s"
msgstr "Erroray eadingray omfray ipepay %d: %s" msgstr "Erroray eadingray omfray ipepay %d: %s"
#: daemon/x52d_notify.c:128 #: daemon/notify.c:128
#, c-format #, c-format
msgid "Error %d writing notification pipe: %s" msgid "Error %d writing notification pipe: %s"
msgstr "Erroray %d itingwray otificationnay ipepay: %s" msgstr "Erroray %d itingwray otificationnay ipepay: %s"
#: daemon/x52d_notify.c:174 #: daemon/notify.c:174
#, c-format #, c-format
msgid "Error %d creating notification pipe: %s" msgid "Error %d creating notification pipe: %s"
msgstr "Erroray %d eatingcray otificationnay ipepay: %s" msgstr "Erroray %d eatingcray otificationnay ipepay: %s"
#: daemon/x52d_notify.c:183 #: daemon/notify.c:183
#, c-format #, c-format
msgid "Error %d initializing notify thread: %s" msgid "Error %d initializing notify thread: %s"
msgstr "Erroray %d initializingay otifynay eadthray: %s" msgstr "Erroray %d initializingay otifynay eadthray: %s"
#: daemon/x52d_notify.c:189 #: daemon/notify.c:189
#, c-format #, c-format
msgid "Error %d initializing notify listener: %s" msgid "Error %d initializing notify listener: %s"
msgstr "Erroray %d initializingay otifynay istenerlay: %s" msgstr "Erroray %d initializingay otifynay istenerlay: %s"
#: daemon/x52ctl.c:60
#, c-format
msgid "Usage: %s [-i] [-s socket-path] [command]\n"
msgstr "Usageay: %s [-i] [-s ocketsay-athpay] [ommandcay]\n"
#: daemon/x52ctl.c:73
#, c-format
msgid "Argument length too long\n"
msgstr "Argumentay engthlay ootay onglay\n"
#: daemon/x52ctl.c:180
#, c-format
msgid "Running in interactive mode, ignoring extra arguments\n"
msgstr "Unningray inay interactiveay odemay, ignoringay extraay argumentsay\n"
#, c-format #, c-format
#~ msgid "Ignoring mouse speed %d outside supported range (0-%d)" #~ msgid "Ignoring mouse speed %d outside supported range (0-%d)"
#~ msgstr "Ignoringay ousemay eedspay %d outsideay upportedsay angeray (0-%d)" #~ msgstr "Ignoringay ousemay eedspay %d outsideay upportedsay angeray (0-%d)"

View File

@ -6,7 +6,7 @@
* SPDX-LicenseIdentifier: GPL-2.0-only WITH Classpath-exception-2.0 * SPDX-LicenseIdentifier: GPL-2.0-only WITH Classpath-exception-2.0
*/ */
#include "config.h" #include "build-config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>