mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
Add translatable string for config parse error
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -6,6 +6,7 @@ err_alloc: []const u8 = "failed memory allocation",
|
|||||||
err_bounds: []const u8 = "out-of-bounds index",
|
err_bounds: []const u8 = "out-of-bounds index",
|
||||||
err_brightness_change: []const u8 = "failed to change brightness",
|
err_brightness_change: []const u8 = "failed to change brightness",
|
||||||
err_chdir: []const u8 = "failed to open home folder",
|
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_console_dev: []const u8 = "failed to access console",
|
||||||
err_dgn_oob: []const u8 = "log message",
|
err_dgn_oob: []const u8 = "log message",
|
||||||
err_domain: []const u8 = "invalid domain",
|
err_domain: []const u8 = "invalid domain",
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ pub fn main() !void {
|
|||||||
defer info_line.deinit();
|
defer info_line.deinit();
|
||||||
|
|
||||||
if (config_load_failed) {
|
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);
|
var session = try Session.init(allocator, &buffer, config.max_desktop_len, lang);
|
||||||
|
|||||||
Reference in New Issue
Block a user