commit 2ca1bfa

default  ·  2025-03-08 06:26:02 +0000 UTC
parent fd8bca9
Fixed some stray translatable strings.
1 files changed,  +9, -9
M html.c
M html.c
+9, -9
 1@@ -416,7 +416,7 @@ xs_html *html_note(snac *user, const char *summary,
 2             xs_html_sctag("input",
 3                 xs_html_attr("type",     "url"),
 4                 xs_html_attr("name",     "in_reply_to"),
 5-                xs_html_attr("placeholder", "Optional URL to reply to")));
 6+                xs_html_attr("placeholder", L("Optional URL to reply to"))));
 7 
 8     xs_html_add(form,
 9         xs_html_tag("p", NULL),
10@@ -523,7 +523,7 @@ xs_html *html_note(snac *user, const char *summary,
11                         xs_html_attr("name",     "poll_options"),
12                         xs_html_attr("rows",     "4"),
13                         xs_html_attr("wrap",     "virtual"),
14-                        xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n..."))),
15+                        xs_html_attr("placeholder", L("Option 1...\nOption 2...\nOption 3...\n...")))),
16                 xs_html_tag("select",
17                     xs_html_attr("name",    "poll_multiple"),
18                     xs_html_tag("option",
19@@ -1342,13 +1342,13 @@ xs_html *html_top_controls(snac *user)
20                         xs_html_attr("type", "text"),
21                         xs_html_attr("name", "telegram_bot"),
22                         xs_html_attr("value", telegram_bot),
23-                        xs_html_attr("placeholder", "Bot API key")),
24+                        xs_html_attr("placeholder", L("Bot API key"))),
25                     xs_html_text(" "),
26                     xs_html_sctag("input",
27                         xs_html_attr("type", "text"),
28                         xs_html_attr("name", "telegram_chat_id"),
29                         xs_html_attr("value", telegram_chat_id),
30-                        xs_html_attr("placeholder", "Chat id"))),
31+                        xs_html_attr("placeholder", L("Chat id")))),
32                 xs_html_tag("p",
33                     xs_html_text(L("ntfy notifications (ntfy server and token):")),
34                     xs_html_sctag("br", NULL),
35@@ -1356,13 +1356,13 @@ xs_html *html_top_controls(snac *user)
36                         xs_html_attr("type", "text"),
37                         xs_html_attr("name", "ntfy_server"),
38                         xs_html_attr("value", ntfy_server),
39-                        xs_html_attr("placeholder", "ntfy server - full URL (example: https://ntfy.sh/YourTopic)")),
40+                        xs_html_attr("placeholder", L("ntfy server - full URL (example: https://ntfy.sh/YourTopic)"))),
41                     xs_html_text(" "),
42                     xs_html_sctag("input",
43                         xs_html_attr("type", "text"),
44                         xs_html_attr("name", "ntfy_token"),
45                         xs_html_attr("value", ntfy_token),
46-                        xs_html_attr("placeholder", "ntfy token - if needed"))),
47+                        xs_html_attr("placeholder", L("ntfy token - if needed")))),
48                 xs_html_tag("p",
49                     xs_html_text(L("Maximum days to keep posts (0: server settings):")),
50                     xs_html_sctag("br", NULL),
51@@ -2762,7 +2762,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
52                         xs_html_attr("href", url),
53                         xs_html_attr("class", "snac-list-link"),
54                         xs_html_attr("title", L("Pinned posts")),
55-                        xs_html_text("pinned"))));
56+                        xs_html_text(L("pinned")))));
57         }
58 
59         {
60@@ -2774,7 +2774,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
61                         xs_html_attr("href", url),
62                         xs_html_attr("class", "snac-list-link"),
63                         xs_html_attr("title", L("Bookmarked posts")),
64-                        xs_html_text("bookmarks"))));
65+                        xs_html_text(L("bookmarks")))));
66         }
67 
68         {
69@@ -2786,7 +2786,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
70                         xs_html_attr("href", url),
71                         xs_html_attr("class", "snac-list-link"),
72                         xs_html_attr("title", L("Post drafts")),
73-                        xs_html_text("drafts"))));
74+                        xs_html_text(L("drafts")))));
75         }
76 
77         /* the list of followed hashtags */