From 23873c705c69dd11202f643901585a2b64c364d9 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 30 Dec 2014 22:32:51 +0100 Subject: [PATCH] Missing braces in BMessageFormat format string. Fixes #11678. --- src/apps/diskusage/InfoWindow.cpp | 2 +- src/kits/shared/StringForSize.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/diskusage/InfoWindow.cpp b/src/apps/diskusage/InfoWindow.cpp index 5508dab2f7..ae43a4c972 100644 --- a/src/apps/diskusage/InfoWindow.cpp +++ b/src/apps/diskusage/InfoWindow.cpp @@ -82,7 +82,7 @@ InfoWin::InfoWin(BPoint p, FileInfo *f, BWindow* parent) if (f->count > 0) { // This is a directory, include file count information static BMessageFormat format(B_TRANSLATE( - "%size% in {0, plural, one{# file} other{# files}")); + "%size% in {0, plural, one{# file} other{# files}}")); format.Format(name, f->count); } else diff --git a/src/kits/shared/StringForSize.cpp b/src/kits/shared/StringForSize.cpp index 2672a8e450..3a308ef239 100644 --- a/src/kits/shared/StringForSize.cpp +++ b/src/kits/shared/StringForSize.cpp @@ -26,7 +26,7 @@ string_for_size(double size, char* string, size_t stringSize) double kib = size / 1024.0; if (kib < 1.0) { const char* trKey = B_TRANSLATE_MARK( - "{0, plural, one{# byte} other{# bytes}"); + "{0, plural, one{# byte} other{# bytes}}"); BString tmp; BMessageFormat format(