update: better unknown configuration error

This commit is contained in:
ngn 2024-08-04 15:39:07 +03:00
parent 773e3f9ac6
commit 2359148d41
2 changed files with 14 additions and 6 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-04 15:26+0300\n"
"POT-Creation-Date: 2024-08-04 15:38+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,22 +17,27 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/config.c:124
#: src/config.c:125
#, c-format
msgid "Unknown configuration option: %s"
msgstr ""
#: src/config.c:127
#, c-format
msgid "Unknown configuration option: %s/%s"
msgstr ""
#: src/config.c:132
#: src/config.c:135
#, fuzzy, c-format
msgid "Failed to access the configuration file: %s"
msgstr "Kayıt dosyasını açmak başarısız oldu: %s"
#: src/config.c:137
#: src/config.c:140
#, fuzzy
msgid "Failed to parse the configuration"
msgstr "Kayıt dosyasını açmak başarısız oldu: %s"
#: src/config.c:144
#: src/config.c:147
#, fuzzy, c-format
msgid "Hostname not specified for the pool: %s"
msgstr "Ana makine adı havuz konfigürasyonunda belirtilmedi, geçiliyor: %s"

View File

@ -121,6 +121,9 @@ int config_load_handler(void *data, const char *_section, const char *_key, cons
return 1;
unknown:
if (NULL == section || section[0] == '\0')
error(_("Unknown configuration option: %s"), key);
else
error(_("Unknown configuration option: %s/%s"), section, key);
return 0;
}