Add translatable string for config parse error

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2024-07-31 14:01:44 +02:00
parent a393525212
commit 46f9ddd5fc
No known key found for this signature in database
GPG Key ID: 3E85EB44F610AD7F
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ err_alloc: []const u8 = "failed memory allocation",
err_bounds: []const u8 = "out-of-bounds index",
err_brightness_change: []const u8 = "failed to change brightness",
err_chdir: []const u8 = "failed to open home folder",
err_config: []const u8 = "unable to parse config file",
err_console_dev: []const u8 = "failed to access console",
err_dgn_oob: []const u8 = "log message",
err_domain: []const u8 = "invalid domain",

View File

@ -221,7 +221,7 @@ pub fn main() !void {
defer info_line.deinit();
if (config_load_failed) {
try info_line.addMessage("unable to parse config file", config.error_bg, config.error_fg);
try info_line.addMessage(lang.err_config, config.error_bg, config.error_fg);
}
var session = try Session.init(allocator, &buffer, config.max_desktop_len, lang);