commit a5a8487132e567844d960bf002a4878e8e0872a4
parent 8cf61af5511c3dc0b230079e230e01d325a870bd
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 15 Mar 2024 14:00:34 +0100
tweaks: improve three translator hints
The browser listing has a rigid format: longer translations
for "(dir)", "(parent dir)", and "(huge)" will be clipped.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/browser.c b/src/browser.c
@@ -182,11 +182,11 @@ void browser_refresh(void)
if (stat(filelist[index], &state) == -1 || !S_ISDIR(state.st_mode))
info = copy_of("--");
else
- /* TRANSLATORS: Try to keep this at most 7 characters. */
+ /* TRANSLATORS: Anything more than 7 cells gets clipped. */
info = copy_of(_("(dir)"));
} else if (S_ISDIR(state.st_mode)) {
if (strcmp(thename, "..") == 0) {
- /* TRANSLATORS: Try to keep this at most 12 characters. */
+ /* TRANSLATORS: Anything more than 12 cells gets clipped. */
info = copy_of(_("(parent dir)"));
infomaxlen = 12;
} else
@@ -215,7 +215,7 @@ void browser_refresh(void)
if (result < (1 << 10))
sprintf(info, "%4ju %cB", (intmax_t)result, modifier);
else
- /* TRANSLATORS: Try to keep this at most 7 characters.
+ /* TRANSLATORS: Anything more than 7 cells gets clipped.
* If necessary, you can leave out the parentheses. */
info = mallocstrcpy(info, _("(huge)"));
}