poe

Уређивач .po фајлова
git clone https://git.sr.ht/~strahinja/poe
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

чување 5e0c86aee703a3c163044516a03a8be87e51d9ae
родитељ f6f9901bb8fca08022cf698e6fc267fc3c9d15dc
Аутор: Страхиња Радић <sr@strahinja.org>
Датум:   Fri, 20 Feb 2026 15:07:24 +0100

Remove unnecessary error codes/messages

Diffstat:
Mdraw.c | 5+----
Mutil.h | 3---
измењених датотека: 2, додавања: 1(+), брисања: 7(-)

diff --git a/draw.c b/draw.c @@ -51,10 +51,7 @@ const char* errors[] = { [ERR_DLG_OPEN] = "Press Esc to close dialog or q/C-Q to quit", [ERR_DLG_OPEN_QUIT] = "Press Esc to close dialog first", [ERR_DLG_FOCUS_EDIT] = "Switch to edit box with F6 or press Esc", - [ERR_EMPTY_FILE] = "No msgids to edit", [ERR_CANT_ALLOC] = "Memory allocation failed", - [ERR_CANT_SAVE] = "File is not writeable", - [ERR_CANT_MOVE] = "Cannot move temporary file", [ERR_ILLEGAL_ON_FIRST] = "Not allowed on first entry", [ERR_SYNTAX] = "%s:%ld:%ld: Syntax error", [ERR_NO_PLURAL_FORMS] = "No Plural-Forms (add manually)", @@ -70,7 +67,7 @@ const char* flag_strings[] = { [FL_FUZZY] = "fuzzy"}; const char* first_entry_msgid = "*** SPECIAL: file info ***"; const char* prompt_dirty = "File changed, save [y/n/ESC]?"; -const char* prompt_edit_dirty = "Entry changed, save [y/n/ESC]?"; +const char* prompt_edit_dirty = "Entry changed, save [y/n/ESC]?"; const char* prompt_overwrite = "Not empty, overwrite? [y/n/ESC]?"; /* clang-format on */ diff --git a/util.h b/util.h @@ -124,10 +124,7 @@ enum { ERR_DLG_OPEN, ERR_DLG_OPEN_QUIT, ERR_DLG_FOCUS_EDIT, - ERR_EMPTY_FILE, ERR_CANT_ALLOC, - ERR_CANT_SAVE, - ERR_CANT_MOVE, ERR_ILLEGAL_ON_FIRST, ERR_SYNTAX, ERR_NO_PLURAL_FORMS,