Missing braces in BMessageFormat format string.

Fixes #11678.
This commit is contained in:
Adrien Destugues 2014-12-30 22:32:51 +01:00
parent 29608b033c
commit 23873c705c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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(