From 2119e006476f687e8dd9f9311706a78fd80d4c16 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 10 Nov 2021 09:29:27 -0800 Subject: [PATCH] Integrate pinelog module logging functionality --- daemon/x52d_clock.c | 1 + daemon/x52d_command.c | 1 + daemon/x52d_config.c | 1 + daemon/x52d_config_dump.c | 1 + daemon/x52d_config_parser.c | 1 + daemon/x52d_const.h | 12 ++++ daemon/x52d_device.c | 1 + daemon/x52d_io.c | 2 + daemon/x52d_led.c | 1 + daemon/x52d_main.c | 1 + daemon/x52d_mouse.c | 1 + po/libx52.pot | 134 ++++++++++++++++++------------------ po/xx_PL.po | 128 +++++++++++++++++----------------- 13 files changed, 154 insertions(+), 131 deletions(-) diff --git a/daemon/x52d_clock.c b/daemon/x52d_clock.c index 55f8935..2516137 100644 --- a/daemon/x52d_clock.c +++ b/daemon/x52d_clock.c @@ -13,6 +13,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_CLOCK #include "pinelog.h" #include "x52d_config.h" #include "x52d_clock.h" diff --git a/daemon/x52d_command.c b/daemon/x52d_command.c index 61e0488..b79820a 100644 --- a/daemon/x52d_command.c +++ b/daemon/x52d_command.c @@ -17,6 +17,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_COMMAND #include "pinelog.h" #include "x52d_const.h" #include "x52d_command.h" diff --git a/daemon/x52d_config.c b/daemon/x52d_config.c index 175b7d4..e3ec487 100644 --- a/daemon/x52d_config.c +++ b/daemon/x52d_config.c @@ -9,6 +9,7 @@ #include "config.h" #include +#define PINELOG_MODULE X52D_MOD_CONFIG #include "pinelog.h" #include "x52d_config.h" #include "x52d_const.h" diff --git a/daemon/x52d_config_dump.c b/daemon/x52d_config_dump.c index 53e76ce..7b2aa3f 100644 --- a/daemon/x52d_config_dump.c +++ b/daemon/x52d_config_dump.c @@ -14,6 +14,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_CONFIG #include "pinelog.h" #include "libx52.h" #include "x52d_config.h" diff --git a/daemon/x52d_config_parser.c b/daemon/x52d_config_parser.c index 15ebdf8..bb85bdb 100644 --- a/daemon/x52d_config_parser.c +++ b/daemon/x52d_config_parser.c @@ -14,6 +14,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_CONFIG #include "ini.h" #include "pinelog.h" #include "x52d_config.h" diff --git a/daemon/x52d_const.h b/daemon/x52d_const.h index 80c2891..12e3a28 100644 --- a/daemon/x52d_const.h +++ b/daemon/x52d_const.h @@ -25,4 +25,16 @@ #define X52D_MAX_CLIENTS 63 +enum { + X52D_MOD_CONFIG, + X52D_MOD_CLOCK, + X52D_MOD_DEVICE, + X52D_MOD_IO, + X52D_MOD_LED, + X52D_MOD_MOUSE, + X52D_MOD_COMMAND, + + X52D_MOD_MAX +}; + #endif // !defined X52D_CONST_H diff --git a/daemon/x52d_device.c b/daemon/x52d_device.c index b84239a..db3100f 100644 --- a/daemon/x52d_device.c +++ b/daemon/x52d_device.c @@ -11,6 +11,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_DEVICE #include "x52d_const.h" #include "x52d_config.h" #include "x52d_device.h" diff --git a/daemon/x52d_io.c b/daemon/x52d_io.c index 0563a5e..1cc30f1 100644 --- a/daemon/x52d_io.c +++ b/daemon/x52d_io.c @@ -16,6 +16,8 @@ #include "x52d_io.h" #include "x52d_mouse.h" #include "libx52io.h" + +#define PINELOG_MODULE X52D_MOD_IO #include "pinelog.h" static libx52io_context *io_ctx; diff --git a/daemon/x52d_led.c b/daemon/x52d_led.c index 663529a..4e1c848 100644 --- a/daemon/x52d_led.c +++ b/daemon/x52d_led.c @@ -13,6 +13,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_LED #include "pinelog.h" #include "x52d_config.h" #include "x52d_const.h" diff --git a/daemon/x52d_main.c b/daemon/x52d_main.c index fff3c51..4d4cdb7 100644 --- a/daemon/x52d_main.c +++ b/daemon/x52d_main.c @@ -272,6 +272,7 @@ int main(int argc, char **argv) #endif /* Set system defaults */ + pinelog_init(X52D_MOD_MAX); pinelog_set_level(PINELOG_LVL_WARNING); /* diff --git a/daemon/x52d_mouse.c b/daemon/x52d_mouse.c index 0329f5b..7010ef4 100644 --- a/daemon/x52d_mouse.c +++ b/daemon/x52d_mouse.c @@ -10,6 +10,7 @@ #include #include +#define PINELOG_MODULE X52D_MOD_MOUSE #include "pinelog.h" #include "x52d_config.h" #include "x52d_const.h" diff --git a/po/libx52.pot b/po/libx52.pot index cbb796a..8b3db1a 100644 --- a/po/libx52.pot +++ b/po/libx52.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: libx52 0.2.3\n" "Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n" -"POT-Creation-Date: 2021-11-07 16:07-0800\n" +"POT-Creation-Date: 2021-11-10 09:29-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -142,11 +142,11 @@ msgstr "" msgid "Unknown LED state %d" msgstr "" -#: libx52/x52_stringify.c:47 daemon/x52d_clock.c:28 daemon/x52d_mouse.c:31 +#: libx52/x52_stringify.c:47 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:32 msgid "off" msgstr "" -#: libx52/x52_stringify.c:48 daemon/x52d_clock.c:28 daemon/x52d_mouse.c:31 +#: libx52/x52_stringify.c:48 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:32 msgid "on" msgstr "" @@ -540,287 +540,287 @@ msgstr "" msgid "Error listening on command socket: %s" msgstr "" -#: daemon/x52d_main.c:316 +#: daemon/x52d_main.c:317 #, c-format msgid "Unable to parse configuration override '%s'\n" msgstr "" -#: daemon/x52d_main.c:344 +#: daemon/x52d_main.c:345 #, c-format msgid "Foreground = %s" msgstr "" -#: daemon/x52d_main.c:344 daemon/x52d_main.c:345 +#: daemon/x52d_main.c:345 daemon/x52d_main.c:346 msgid "true" msgstr "" -#: daemon/x52d_main.c:344 daemon/x52d_main.c:345 +#: daemon/x52d_main.c:345 daemon/x52d_main.c:346 msgid "false" msgstr "" -#: daemon/x52d_main.c:345 -#, c-format -msgid "Quiet = %s" -msgstr "" - #: daemon/x52d_main.c:346 #, c-format -msgid "Verbosity = %d" +msgid "Quiet = %s" msgstr "" #: daemon/x52d_main.c:347 #, c-format -msgid "Log file = %s" +msgid "Verbosity = %d" msgstr "" #: daemon/x52d_main.c:348 #, c-format -msgid "Config file = %s" +msgid "Log file = %s" msgstr "" #: daemon/x52d_main.c:349 #, c-format -msgid "PID file = %s" +msgid "Config file = %s" msgstr "" #: daemon/x52d_main.c:350 #, c-format +msgid "PID file = %s" +msgstr "" + +#: daemon/x52d_main.c:351 +#, c-format msgid "Command socket = %s" msgstr "" -#: daemon/x52d_main.c:380 +#: daemon/x52d_main.c:381 msgid "Reloading X52 configuration" msgstr "" -#: daemon/x52d_main.c:387 +#: daemon/x52d_main.c:388 msgid "Saving X52 configuration to disk" msgstr "" -#: daemon/x52d_main.c:393 +#: daemon/x52d_main.c:394 #, c-format msgid "Received termination signal %s" msgstr "" -#: daemon/x52d_main.c:416 +#: daemon/x52d_main.c:417 msgid "Shutting down X52 daemon" msgstr "" -#: daemon/x52d_clock.c:27 +#: daemon/x52d_clock.c:28 #, c-format msgid "Setting clock enable to %s" msgstr "" -#: daemon/x52d_clock.c:34 daemon/x52d_clock.c:115 +#: daemon/x52d_clock.c:35 daemon/x52d_clock.c:116 #, c-format msgid "Setting %s clock timezone to %s" msgstr "" -#: daemon/x52d_clock.c:36 +#: daemon/x52d_clock.c:37 msgid "local" msgstr "" -#: daemon/x52d_clock.c:36 +#: daemon/x52d_clock.c:37 msgid "UTC" msgstr "" -#: daemon/x52d_clock.c:54 +#: daemon/x52d_clock.c:55 msgid "Unable to allocate memory for timezone. Falling back to UTC" msgstr "" -#: daemon/x52d_clock.c:64 +#: daemon/x52d_clock.c:65 msgid "Unable to backup timezone environment. Falling back to UTC" msgstr "" -#: daemon/x52d_clock.c:134 +#: daemon/x52d_clock.c:135 #, c-format msgid "Setting %s clock format to %s" msgstr "" -#: daemon/x52d_clock.c:158 +#: daemon/x52d_clock.c:159 #, c-format msgid "Setting date format to %s" msgstr "" -#: daemon/x52d_clock.c:169 +#: daemon/x52d_clock.c:170 msgid "Starting X52 clock manager thread" msgstr "" -#: daemon/x52d_clock.c:180 +#: daemon/x52d_clock.c:181 #, c-format msgid "Error %d retrieving current time: %s" msgstr "" -#: daemon/x52d_clock.c:201 +#: daemon/x52d_clock.c:202 #, c-format msgid "Error %d initializing clock thread: %s" msgstr "" -#: daemon/x52d_clock.c:208 +#: daemon/x52d_clock.c:209 msgid "Shutting down X52 clock manager thread" msgstr "" -#: daemon/x52d_command.c:52 +#: daemon/x52d_command.c:53 #, c-format msgid "Error accepting client connection on command socket: %s" msgstr "" -#: daemon/x52d_command.c:89 +#: daemon/x52d_command.c:90 #, c-format msgid "Error when polling command socket: FD %d, error %d, len %lu" msgstr "" -#: daemon/x52d_command.c:116 +#: daemon/x52d_command.c:117 #, c-format msgid "Error when polling for command: %s" msgstr "" -#: daemon/x52d_command.c:120 +#: daemon/x52d_command.c:121 msgid "Timed out when polling for command" msgstr "" -#: daemon/x52d_command.c:364 +#: daemon/x52d_command.c:365 #, c-format msgid "Error reading from client %d: %s" msgstr "" -#: daemon/x52d_command.c:375 +#: daemon/x52d_command.c:376 #, c-format msgid "Short write to client %d; expected %d bytes, wrote %d bytes" msgstr "" -#: daemon/x52d_config.c:28 +#: daemon/x52d_config.c:29 #, c-format msgid "Error %d setting configuration defaults: %s" msgstr "" -#: daemon/x52d_config.c:55 +#: daemon/x52d_config.c:56 #, c-format msgid "Error %d saving configuration file: %s" msgstr "" -#: daemon/x52d_config_dump.c:112 +#: daemon/x52d_config_dump.c:113 #, c-format msgid "Unable to save config file %s - code %d: %s" msgstr "" -#: daemon/x52d_config_dump.c:130 +#: daemon/x52d_config_dump.c:131 #, c-format msgid "Failed to dump %s.%s to config file %s" msgstr "" -#: daemon/x52d_config_parser.c:167 +#: daemon/x52d_config_parser.c:168 #, c-format msgid "Ignoring unknown key '%s.%s'" msgstr "" -#: daemon/x52d_config_parser.c:208 +#: daemon/x52d_config_parser.c:209 #, c-format msgid "Failed processing configuration file %s - code %d" msgstr "" -#: daemon/x52d_config_parser.c:238 +#: daemon/x52d_config_parser.c:239 msgid "Failed to allocate memory for override structure" msgstr "" -#: daemon/x52d_config_parser.c:247 +#: daemon/x52d_config_parser.c:248 msgid "Failed to allocate memory for override string" msgstr "" -#: daemon/x52d_config_parser.c:258 +#: daemon/x52d_config_parser.c:259 #, c-format msgid "No section found in override string '%s'" msgstr "" -#: daemon/x52d_config_parser.c:272 +#: daemon/x52d_config_parser.c:273 #, c-format msgid "No key found in override string '%s'" msgstr "" -#: daemon/x52d_config_parser.c:283 +#: daemon/x52d_config_parser.c:284 #, c-format msgid "No value found in override string '%s'" msgstr "" -#: daemon/x52d_config_parser.c:334 +#: daemon/x52d_config_parser.c:335 #, c-format msgid "Error processing override '%s.%s=%s'" msgstr "" -#: daemon/x52d_device.c:34 +#: daemon/x52d_device.c:35 msgid "Starting X52 device manager thread" msgstr "" -#: daemon/x52d_device.c:41 +#: daemon/x52d_device.c:42 #, c-format msgid "Error %d connecting to device: %s" msgstr "" -#: daemon/x52d_device.c:50 +#: daemon/x52d_device.c:51 msgid "Device connected, writing configuration" msgstr "" -#: daemon/x52d_device.c:72 +#: daemon/x52d_device.c:73 msgid "Initializing libx52" msgstr "" -#: daemon/x52d_device.c:76 +#: daemon/x52d_device.c:77 #, c-format msgid "Failure %d initializing libx52: %s" msgstr "" -#: daemon/x52d_device.c:87 +#: daemon/x52d_device.c:88 msgid "Shutting down X52 device manager thread" msgstr "" -#: daemon/x52d_device.c:100 +#: daemon/x52d_device.c:101 #, c-format msgid "Error %d when updating X52 parameter: %s" msgstr "" -#: daemon/x52d_device.c:175 +#: daemon/x52d_device.c:176 #, c-format msgid "Error %d when updating X52 device: %s" msgstr "" -#: daemon/x52d_io.c:40 +#: daemon/x52d_io.c:42 msgid "Starting X52 I/O thread" msgstr "" -#: daemon/x52d_io.c:62 +#: daemon/x52d_io.c:64 #, c-format msgid "Error %d opening X52 I/O device: %s" msgstr "" -#: daemon/x52d_io.c:73 +#: daemon/x52d_io.c:75 #, c-format msgid "Error %d reading from X52 I/O device: %s" msgstr "" -#: daemon/x52d_io.c:100 +#: daemon/x52d_io.c:102 #, c-format msgid "Error %d initializing X52 I/O library: %s" msgstr "" -#: daemon/x52d_io.c:106 +#: daemon/x52d_io.c:108 #, c-format msgid "Error %d initializing I/O driver thread: %s" msgstr "" -#: daemon/x52d_io.c:113 +#: daemon/x52d_io.c:115 msgid "Shutting down X52 I/O driver thread" msgstr "" -#: daemon/x52d_mouse.c:30 +#: daemon/x52d_mouse.c:31 #, c-format msgid "Setting mouse enable to %s" msgstr "" -#: daemon/x52d_mouse.c:46 +#: daemon/x52d_mouse.c:47 #, c-format msgid "Ignoring mouse speed %d outside supported range (0-%d)" msgstr "" -#: daemon/x52d_mouse.c:58 +#: daemon/x52d_mouse.c:59 #, c-format msgid "Setting mouse speed to %d (delay %d ms, multiplier %f)" msgstr "" diff --git a/po/xx_PL.po b/po/xx_PL.po index 3a9c416..a61c360 100644 --- a/po/xx_PL.po +++ b/po/xx_PL.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: libx52 0.2.3\n" "Report-Msgid-Bugs-To: https://github.com/nirenjan/libx52/issues\n" -"POT-Creation-Date: 2021-11-07 16:07-0800\n" +"POT-Creation-Date: 2021-11-10 09:29-0800\n" "PO-Revision-Date: 2021-11-04 15:35-0700\n" "Last-Translator: Nirenjan Krishnan \n" "Language-Team: Dummy Language for testing i18n\n" @@ -142,11 +142,11 @@ msgstr "YYay-MMay-DDay" msgid "Unknown LED state %d" msgstr "Unknownay EDLay atestay %d" -#: libx52/x52_stringify.c:47 daemon/x52d_clock.c:28 daemon/x52d_mouse.c:31 +#: libx52/x52_stringify.c:47 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:32 msgid "off" msgstr "offay" -#: libx52/x52_stringify.c:48 daemon/x52d_clock.c:28 daemon/x52d_mouse.c:31 +#: libx52/x52_stringify.c:48 daemon/x52d_clock.c:29 daemon/x52d_mouse.c:32 msgid "on" msgstr "onay" @@ -587,292 +587,292 @@ msgstr "Erroray indingbay otay ommandcay ocketsay: %s" msgid "Error listening on command socket: %s" msgstr "Erroray isteninglay onay ommandcay ocketsay: %s" -#: daemon/x52d_main.c:316 +#: daemon/x52d_main.c:317 #, c-format msgid "Unable to parse configuration override '%s'\n" msgstr "Unableay otay arsepay onfigurationcay overrideay '%s'\n" -#: daemon/x52d_main.c:344 +#: daemon/x52d_main.c:345 #, c-format msgid "Foreground = %s" msgstr "Oregroundfay = %s" -#: daemon/x52d_main.c:344 daemon/x52d_main.c:345 +#: daemon/x52d_main.c:345 daemon/x52d_main.c:346 msgid "true" msgstr "uetray" -#: daemon/x52d_main.c:344 daemon/x52d_main.c:345 +#: daemon/x52d_main.c:345 daemon/x52d_main.c:346 msgid "false" msgstr "alsefay" -#: daemon/x52d_main.c:345 +#: daemon/x52d_main.c:346 #, c-format msgid "Quiet = %s" msgstr "Uietqay = %s" -#: daemon/x52d_main.c:346 +#: daemon/x52d_main.c:347 #, c-format msgid "Verbosity = %d" msgstr "Erbosityvay = %d" -#: daemon/x52d_main.c:347 +#: daemon/x52d_main.c:348 #, c-format msgid "Log file = %s" msgstr "Oglay ilefay = %s" -#: daemon/x52d_main.c:348 +#: daemon/x52d_main.c:349 #, c-format msgid "Config file = %s" msgstr "Onfigcay ilefay = %s" -#: daemon/x52d_main.c:349 +#: daemon/x52d_main.c:350 #, c-format msgid "PID file = %s" msgstr "IDPay ilefay = %s" -#: daemon/x52d_main.c:350 +#: daemon/x52d_main.c:351 #, c-format msgid "Command socket = %s" msgstr "Ommandcay ocketsay = %s" -#: daemon/x52d_main.c:380 +#: daemon/x52d_main.c:381 msgid "Reloading X52 configuration" msgstr "Eloadingray X52 onfigurationcay" -#: daemon/x52d_main.c:387 +#: daemon/x52d_main.c:388 msgid "Saving X52 configuration to disk" msgstr "Avingsay X52 onfigurationcay otay iskday" -#: daemon/x52d_main.c:393 +#: daemon/x52d_main.c:394 #, c-format msgid "Received termination signal %s" msgstr "Eceivedray erminationtay ignalsay %s" -#: daemon/x52d_main.c:416 +#: daemon/x52d_main.c:417 msgid "Shutting down X52 daemon" msgstr "Uttingshay ownday X52 aemonday" -#: daemon/x52d_clock.c:27 +#: daemon/x52d_clock.c:28 #, c-format msgid "Setting clock enable to %s" msgstr "Ettingsay ockclay enableay otay %s" -#: daemon/x52d_clock.c:34 daemon/x52d_clock.c:115 +#: daemon/x52d_clock.c:35 daemon/x52d_clock.c:116 #, c-format msgid "Setting %s clock timezone to %s" msgstr "Ettingsay %s ockclay imezonetay otay %s" -#: daemon/x52d_clock.c:36 +#: daemon/x52d_clock.c:37 msgid "local" msgstr "ocallay" -#: daemon/x52d_clock.c:36 +#: daemon/x52d_clock.c:37 msgid "UTC" msgstr "UTCay" -#: daemon/x52d_clock.c:54 +#: 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:64 +#: 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:134 +#: daemon/x52d_clock.c:135 #, c-format msgid "Setting %s clock format to %s" msgstr "Ettingsay %s ockclay ormatfay otay %s" -#: daemon/x52d_clock.c:158 +#: daemon/x52d_clock.c:159 #, c-format msgid "Setting date format to %s" msgstr "Ettingsay ateday ormatfay otay %s" -#: daemon/x52d_clock.c:169 +#: daemon/x52d_clock.c:170 msgid "Starting X52 clock manager thread" msgstr "Artingstay X52 ockclay anagermay eadthray" -#: daemon/x52d_clock.c:180 +#: daemon/x52d_clock.c:181 #, c-format msgid "Error %d retrieving current time: %s" msgstr "Erroray %d etrievingray urrentcay imetay: %s" -#: daemon/x52d_clock.c:201 +#: daemon/x52d_clock.c:202 #, c-format msgid "Error %d initializing clock thread: %s" msgstr "Erroray %d initializingay ockclay eadthray: %s" -#: daemon/x52d_clock.c:208 +#: daemon/x52d_clock.c:209 msgid "Shutting down X52 clock manager thread" msgstr "Uttingshay ownday X52 ockclay anagermay eadthray" -#: daemon/x52d_command.c:52 +#: daemon/x52d_command.c:53 #, c-format msgid "Error accepting client connection on command socket: %s" msgstr "Erroray acceptingay ientclay onnectioncay onay ommandcay ocketsay: %s" -#: daemon/x52d_command.c:89 +#: daemon/x52d_command.c:90 #, c-format msgid "Error when polling command socket: FD %d, error %d, len %lu" msgstr "" "Erroray enwhay ollingpay ommandcay ocketsay: FDay %d, erroray %d, enlay %lu" -#: daemon/x52d_command.c:116 +#: daemon/x52d_command.c:117 #, c-format msgid "Error when polling for command: %s" msgstr "Erroray enwhay ollingpay orfay ommandcay: %s" -#: daemon/x52d_command.c:120 +#: daemon/x52d_command.c:121 msgid "Timed out when polling for command" msgstr "Imedtay outay enwhay ollingpay orfay ommandcay" -#: daemon/x52d_command.c:364 +#: daemon/x52d_command.c:365 #, c-format msgid "Error reading from client %d: %s" msgstr "Erroray eadingray omfray ientclay %d: %s" -#: daemon/x52d_command.c:375 +#: daemon/x52d_command.c:376 #, 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_config.c:28 +#: 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:55 +#: 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:112 +#: daemon/x52d_config_dump.c:113 #, 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:130 +#: daemon/x52d_config_dump.c:131 #, 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:167 +#: daemon/x52d_config_parser.c:168 #, c-format msgid "Ignoring unknown key '%s.%s'" msgstr "Ignoringay unknownay eykay '%s.%s'" -#: daemon/x52d_config_parser.c:208 +#: daemon/x52d_config_parser.c:209 #, c-format msgid "Failed processing configuration file %s - code %d" msgstr "Ailedfay ocessingpray onfigurationcay ilefay %s - odecay %d" -#: daemon/x52d_config_parser.c:238 +#: daemon/x52d_config_parser.c:239 msgid "Failed to allocate memory for override structure" msgstr "Ailedfay otay allocateay emorymay orfay overrideay ucturestray" -#: daemon/x52d_config_parser.c:247 +#: daemon/x52d_config_parser.c:248 msgid "Failed to allocate memory for override string" msgstr "Ailedfay otay allocateay emorymay orfay overrideay ingstray" -#: daemon/x52d_config_parser.c:258 +#: daemon/x52d_config_parser.c:259 #, c-format msgid "No section found in override string '%s'" msgstr "Onay ectionsay oundfay inay overrideay ingstray '%s'" -#: daemon/x52d_config_parser.c:272 +#: daemon/x52d_config_parser.c:273 #, c-format msgid "No key found in override string '%s'" msgstr "Onay eykay oundfay inay overrideay ingstray '%s'" -#: daemon/x52d_config_parser.c:283 +#: daemon/x52d_config_parser.c:284 #, c-format msgid "No value found in override string '%s'" msgstr "Onay aluevay oundfay inay overrideay ingstray '%s'" -#: daemon/x52d_config_parser.c:334 +#: daemon/x52d_config_parser.c:335 #, c-format msgid "Error processing override '%s.%s=%s'" msgstr "Erroray ocessingpray overriday '%s.%s=%s'" -#: daemon/x52d_device.c:34 +#: daemon/x52d_device.c:35 msgid "Starting X52 device manager thread" msgstr "Artingstay X52 eviceday anagermay eadthray" -#: daemon/x52d_device.c:41 +#: daemon/x52d_device.c:42 #, c-format msgid "Error %d connecting to device: %s" msgstr "Erroray %d onnectingcay otay eviceday: %s" -#: daemon/x52d_device.c:50 +#: daemon/x52d_device.c:51 msgid "Device connected, writing configuration" msgstr "Eviceday onnectedcay, itingwray onfigurationcay" -#: daemon/x52d_device.c:72 +#: daemon/x52d_device.c:73 msgid "Initializing libx52" msgstr "Initializingay libx52" -#: daemon/x52d_device.c:76 +#: daemon/x52d_device.c:77 #, c-format msgid "Failure %d initializing libx52: %s" msgstr "Ailurefay %d initializeay libx52: %s" -#: daemon/x52d_device.c:87 +#: daemon/x52d_device.c:88 msgid "Shutting down X52 device manager thread" msgstr "Uttingshay ownday X52 eviceday anagermay eadthray" -#: daemon/x52d_device.c:100 +#: daemon/x52d_device.c:101 #, c-format msgid "Error %d when updating X52 parameter: %s" msgstr "Erroray %d enwhay updatingay X52 arameterpay: %s" -#: daemon/x52d_device.c:175 +#: daemon/x52d_device.c:176 #, c-format msgid "Error %d when updating X52 device: %s" msgstr "Erroray %d enwhay updatingay X52 eviceday: %s" -#: daemon/x52d_io.c:40 +#: daemon/x52d_io.c:42 msgid "Starting X52 I/O thread" msgstr "Artingstay X52 I/O eadthray" -#: daemon/x52d_io.c:62 +#: daemon/x52d_io.c:64 #, c-format msgid "Error %d opening X52 I/O device: %s" msgstr "Erroray %d openingay X52 I/O eviceday: %s" -#: daemon/x52d_io.c:73 +#: daemon/x52d_io.c:75 #, 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:100 +#: daemon/x52d_io.c:102 #, c-format msgid "Error %d initializing X52 I/O library: %s" msgstr "Erroray %d initializingay X52 ibrarylay: %s" -#: daemon/x52d_io.c:106 +#: daemon/x52d_io.c:108 #, c-format msgid "Error %d initializing I/O driver thread: %s" msgstr "Erroray %d initializingay I/O iverdray eadthray: %s" -#: daemon/x52d_io.c:113 +#: daemon/x52d_io.c:115 msgid "Shutting down X52 I/O driver thread" msgstr "Uttingshay ownday X52 I/O iverdray eadthray" -#: daemon/x52d_mouse.c:30 +#: daemon/x52d_mouse.c:31 #, c-format msgid "Setting mouse enable to %s" msgstr "Ettingsay ousemay enableay otay %s" -#: daemon/x52d_mouse.c:46 +#: daemon/x52d_mouse.c:47 #, c-format msgid "Ignoring mouse speed %d outside supported range (0-%d)" msgstr "Ignoringay ousemay eedspay %d outsideay upportedsay angeray (0-%d)" -#: daemon/x52d_mouse.c:58 +#: daemon/x52d_mouse.c:59 #, c-format msgid "Setting mouse speed to %d (delay %d ms, multiplier %f)" msgstr "Ettingsay ousemay eedspay otay %d (elayday %d ms, ultipliermay %f)"