summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-05 06:54:35 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-05 06:54:35 +0300
commit37755274aa10ae2a2f8e701fe741b64ba28ba1c9 (patch)
tree5f55561690430d0a353bd69908df7507fabaf0d5 /src/ui
parentbb1b42eaf7ecb6cd9ea4c531c28513839f443a07 (diff)
Lang: New strings for directory/archive browsing
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);