mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
main: minor rewording of non-UTF8 locale warnings and errors
This commit is contained in:
parent
15d45d5704
commit
7e8b5f9610
1 changed files with 6 additions and 6 deletions
12
main.c
12
main.c
|
|
@ -455,12 +455,12 @@ main(int argc, char *const *argv)
|
||||||
const char *const fallback_locale = fallback_locales[i];
|
const char *const fallback_locale = fallback_locales[i];
|
||||||
|
|
||||||
if (setlocale(LC_CTYPE, fallback_locale) != NULL) {
|
if (setlocale(LC_CTYPE, fallback_locale) != NULL) {
|
||||||
LOG_WARN("locale '%s' is not UTF-8, using '%s' instead",
|
LOG_WARN("'%s' is not a UTF-8 locale, using '%s' instead",
|
||||||
locale, fallback_locale);
|
locale, fallback_locale);
|
||||||
|
|
||||||
user_notification_add_fmt(
|
user_notification_add_fmt(
|
||||||
&user_notifications, USER_NOTIFICATION_WARNING,
|
&user_notifications, USER_NOTIFICATION_WARNING,
|
||||||
"locale '%s' is not UTF-8, using '%s' instead",
|
"'%s' is not a UTF-8 locale, using '%s' instead",
|
||||||
locale, fallback_locale);
|
locale, fallback_locale);
|
||||||
|
|
||||||
bad_locale = false;
|
bad_locale = false;
|
||||||
|
|
@ -469,13 +469,13 @@ main(int argc, char *const *argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bad_locale) {
|
if (bad_locale) {
|
||||||
LOG_ERR("locale '%s' is not UTF-8, "
|
LOG_ERR(
|
||||||
"and failed to enable a fallback locale", locale);
|
"'%s' is not a UTF-8 locale, and failed to find a fallback",
|
||||||
|
locale);
|
||||||
|
|
||||||
user_notification_add_fmt(
|
user_notification_add_fmt(
|
||||||
&user_notifications, USER_NOTIFICATION_ERROR,
|
&user_notifications, USER_NOTIFICATION_ERROR,
|
||||||
"locale '%s' is not UTF-8, "
|
"'%s' is not a UTF-8 locale, and failed to find a fallback",
|
||||||
"and failed to enable a fallback locale",
|
|
||||||
locale);
|
locale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue