1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

BFU: Mark format strings in struct listbox_ops_messages.

With regular comments in the definition of the structure itself,
and with xgettext:c-format comments in constants of that type,
if xgettext would otherwise guess wrong; so that translators
will know they'll have to double any percent signs they add.
I didn't regenerate PO files, though.
This commit is contained in:
Kalle Olavi Niemitalo 2006-05-27 08:51:24 +03:00 committed by Miciah Dashiel Butler Masters
parent 966d965c11
commit d10a489a14
8 changed files with 19 additions and 19 deletions

View File

@ -45,18 +45,18 @@ struct listbox_context {
};
struct listbox_ops_messages {
unsigned char *cant_delete_item;
unsigned char *cant_delete_used_item;
unsigned char *cant_delete_folder;
unsigned char *cant_delete_used_folder;
unsigned char *delete_marked_items_title;
unsigned char *delete_marked_items;
unsigned char *delete_folder_title;
unsigned char *delete_folder;
unsigned char *delete_item_title;
unsigned char *delete_item;
unsigned char *clear_all_items_title;
unsigned char *clear_all_items;
unsigned char *cant_delete_item; /* %s = text of item */
unsigned char *cant_delete_used_item; /* %s = text of item */
unsigned char *cant_delete_folder; /* %s = text of item */
unsigned char *cant_delete_used_folder; /* %s = text of item */
unsigned char *delete_marked_items_title; /* not a format string */
unsigned char *delete_marked_items; /* not a format string */
unsigned char *delete_folder_title; /* not a format string */
unsigned char *delete_folder; /* %s = text of item */
unsigned char *delete_item_title; /* not a format string */
unsigned char *delete_item; /* %s = text of item */
unsigned char *clear_all_items_title; /* not a format string */
unsigned char *clear_all_items; /* not a format string */
};
/* TODO: We can maybe find a better way of figuring out whether a user of a

View File

@ -129,7 +129,7 @@ static struct listbox_ops_messages bookmarks_messages = {
N_("Delete the folder \"%s\" and all bookmarks in it?"),
/* delete_item_title */
N_("Delete bookmark"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Delete this bookmark?"),
/* clear_all_items_title */
N_("Clear all bookmarks"),

2
src/cache/dialogs.c vendored
View File

@ -201,7 +201,7 @@ static struct listbox_ops_messages cache_messages = {
NULL,
/* delete_item_title */
N_("Delete cache entry"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Delete this cache entry?"),
/* clear_all_items_title */
NULL,

View File

@ -215,7 +215,7 @@ static struct listbox_ops_messages cookies_messages = {
N_("Delete all cookies from domain \"%s\"?"),
/* delete_item_title */
N_("Delete cookie"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Delete this cookie?"),
/* clear_all_items_title */
N_("Clear all cookies"),

View File

@ -425,7 +425,7 @@ static struct listbox_ops_messages download_messages = {
NULL,
/* delete_item_title */
N_("Interrupt download"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Interrupt this download?"),
/* clear_all_items_title */
N_("Interrupt all downloads"),

View File

@ -134,7 +134,7 @@ static struct listbox_ops_messages formhist_messages = {
NULL,
/* delete_item_title */
N_("Delete form"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Delete this form?"),
/* clear_all_items_title */
N_("Clear all forms"),

View File

@ -119,7 +119,7 @@ static struct listbox_ops_messages globhist_messages = {
NULL,
/* delete_item_title */
N_("Delete history entry"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Delete this history entry?"),
/* clear_all_items_title */
N_("Clear all history entries"),

View File

@ -229,7 +229,7 @@ static struct listbox_ops_messages http_auth_messages = {
NULL,
/* delete_item_title */
N_("Delete auth entry"),
/* delete_item */
/* delete_item; xgettext:c-format */
N_("Delete this auth entry?"),
/* clear_all_items_title */
N_("Clear all auth entries"),