diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-01 14:06:59 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-08-01 14:06:59 +0300 |
commit | 395cb3a996482c9e9fc27e00b4259219f85ec663 (patch) | |
tree | 13a692988709a625f12f1ec2b588ca20a9bb6ac7 /src/ui/documentwidget.c | |
parent | 93c6969e922ee9d34a0c5b653b3940dbad94ed25 (diff) |
Translations for hardcoded English strings
IssueID #276
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 2d4b6b1c..9c8be416 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1174,10 +1174,6 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode | |||
1174 | 1); | 1174 | 1); |
1175 | break; | 1175 | break; |
1176 | } | 1176 | } |
1177 | case slowDown_GmStatusCode: | ||
1178 | appendFormat_String(src, "\n\nWait %s seconds before your next request.", | ||
1179 | cstr_String(meta)); | ||
1180 | break; | ||
1181 | default: | 1177 | default: |
1182 | if (!isEmpty_String(meta)) { | 1178 | if (!isEmpty_String(meta)) { |
1183 | appendFormat_String(src, "\n\n${error.server.msg}\n> %s", cstr_String(meta)); | 1179 | appendFormat_String(src, "\n\n${error.server.msg}\n> %s", cstr_String(meta)); |
@@ -1482,8 +1478,9 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, | |||
1482 | const iGmLinkId imgLinkId = 1; /* there's only the one link */ | 1478 | const iGmLinkId imgLinkId = 1; /* there's only the one link */ |
1483 | /* TODO: Do the image loading in `postProcessRequestContent_DocumentWidget_()` */ | 1479 | /* TODO: Do the image loading in `postProcessRequestContent_DocumentWidget_()` */ |
1484 | if ((isAudio && isInitialUpdate) || (!isAudio && isRequestFinished)) { | 1480 | if ((isAudio && isInitialUpdate) || (!isAudio && isRequestFinished)) { |
1485 | const char *linkTitle = | 1481 | const char *linkTitle = cstr_Lang( |
1486 | startsWith_String(mimeStr, "image/") ? "Image" : "Audio"; | 1482 | startsWith_String(mimeStr, "image/") ? "media.untitled.image" |
1483 | : "media.untitled.audio"); | ||
1487 | iUrl parts; | 1484 | iUrl parts; |
1488 | init_Url(&parts, d->mod.url); | 1485 | init_Url(&parts, d->mod.url); |
1489 | if (!isEmpty_Range(&parts.path)) { | 1486 | if (!isEmpty_Range(&parts.path)) { |