From 591073e00ab79fad579bb3fb5eedb9aebb53cfe9 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 19 Aug 2018 17:41:55 +0200 Subject: BMessageFormat -> BStringFormat Needed after Haiku API change in hrev52220 diff --git a/src/EditorWindow.cpp b/src/EditorWindow.cpp index 7e1d8bb..b30e824 100644 --- a/src/EditorWindow.cpp +++ b/src/EditorWindow.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include @@ -804,7 +804,7 @@ EditorWindow::_FindReplace(BMessage* message) int occurences = fEditor->ReplaceAll(findText, replaceText, matchCase, matchWord, inSelection, regex); BString alertMessage; - static BMessageFormat format(B_TRANSLATE("Replaced " + static BStringFormat format(B_TRANSLATE("Replaced " "{0, plural, one{# occurence} other{# occurences}}.")); format.Format(alertMessage, occurences); BAlert* alert = new BAlert(B_TRANSLATE("Replacement finished"), -- 2.16.4