summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 8d519865..ed38ad0b 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1182,10 +1182,11 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, const iGmResponse
1182 setRange_String(&d->sourceMime, param); 1182 setRange_String(&d->sourceMime, param);
1183 iString *key = collectNew_String(); 1183 iString *key = collectNew_String();
1184 toString_Sym(SDLK_s, KMOD_PRIMARY, key); 1184 toString_Sym(SDLK_s, KMOD_PRIMARY, key);
1185 format_String(&str, "# %s\n" 1185 format_String(&str, "# %s\n", zipPageHeading_(param));
1186 "%s is a compressed archive.\n\n", 1186 appendFormat_String(&str,
1187 zipPageHeading_(param), 1187 cstr_Lang("doc.archive"),
1188 cstr_Rangecc(baseName_Path(d->mod.url))); 1188 cstr_Rangecc(baseName_Path(d->mod.url)));
1189 appendCStr_String(&str, "\n\n");
1189 iString *localPath = localFilePathFromUrl_String(d->mod.url); 1190 iString *localPath = localFilePathFromUrl_String(d->mod.url);
1190 if (!localPath) { 1191 if (!localPath) {
1191 appendFormat_String(&str, "%s\n\n", 1192 appendFormat_String(&str, "%s\n\n",
@@ -1195,7 +1196,7 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, const iGmResponse
1195 } 1196 }
1196 delete_String(localPath); 1197 delete_String(localPath);
1197 if (equalCase_Rangecc(urlScheme_String(d->mod.url), "file")) { 1198 if (equalCase_Rangecc(urlScheme_String(d->mod.url), "file")) {
1198 appendFormat_String(&str, "=> %s/ View archive contents\n", 1199 appendFormat_String(&str, "=> %s/ ${doc.archive.view}\n",
1199 cstr_String(withSpacesEncoded_String(d->mod.url))); 1200 cstr_String(withSpacesEncoded_String(d->mod.url)));
1200 } 1201 }
1201 translate_Lang(&str); 1202 translate_Lang(&str);