mirror of https://github.com/fairyglade/ly.git
Minor changes
This commit is contained in:
parent
80666da563
commit
5d5297c2f4
|
@ -4,6 +4,7 @@ const LocaleChars = Lang.LocaleChars;
|
||||||
const X = Lang.X;
|
const X = Lang.X;
|
||||||
const O = Lang.O;
|
const O = Lang.O;
|
||||||
|
|
||||||
|
// zig fmt: off
|
||||||
pub const locale_chars = LocaleChars{
|
pub const locale_chars = LocaleChars{
|
||||||
.ZERO = [_]u21{
|
.ZERO = [_]u21{
|
||||||
X,X,X,X,X,
|
X,X,X,X,X,
|
||||||
|
@ -90,3 +91,4 @@ pub const locale_chars = LocaleChars{
|
||||||
O,O,O,O,O,
|
O,O,O,O,O,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
// zig fmt: on
|
|
@ -4,6 +4,7 @@ const LocaleChars = Lang.LocaleChars;
|
||||||
const X = Lang.X;
|
const X = Lang.X;
|
||||||
const O = Lang.O;
|
const O = Lang.O;
|
||||||
|
|
||||||
|
// zig fmt: off
|
||||||
pub const locale_chars = LocaleChars{
|
pub const locale_chars = LocaleChars{
|
||||||
.ZERO = [_]u21{
|
.ZERO = [_]u21{
|
||||||
O,O,O,O,O,
|
O,O,O,O,O,
|
||||||
|
@ -90,3 +91,4 @@ pub const locale_chars = LocaleChars{
|
||||||
O,O,O,O,O,
|
O,O,O,O,O,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
// zig fmt: on
|
|
@ -85,6 +85,21 @@ pub fn configFieldHandler(_: std.mem.Allocator, field: ini.IniField) ?ini.IniFie
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (std.mem.eql(u8, field.key, "bigclock")) {
|
||||||
|
// The option now uses a string (which then gets converted into an enum) instead of an boolean
|
||||||
|
// It also includes the ability to change active bigclock's language
|
||||||
|
var mapped_field = field;
|
||||||
|
|
||||||
|
if (std.mem.eql(u8, field.value, "true"))
|
||||||
|
mapped_field.value = "en";
|
||||||
|
if (std.mem.eql(u8, field.value, "false"))
|
||||||
|
mapped_field.value = "none";
|
||||||
|
|
||||||
|
|
||||||
|
mapped_config_fields = true;
|
||||||
|
return mapped_field;
|
||||||
|
}
|
||||||
|
|
||||||
return field;
|
return field;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue