From 66c5cd44277863708fdc81a6418bc84215b0c269 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Feb 2009 19:52:31 -0400 Subject: Use a "format accumulator" for error strings This makes it possible to internationalize strings while still using I/O streams. For example: std::cout << ACCUM(_("Hello to %1 and %2!") << "me" << "you") << std::endl; --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index f40166bc..6d6e4532 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,7 @@ libledger_util_la_SOURCES = \ src/times.cc \ src/error.cc \ src/utils.cc \ + src/accum.cc \ lib/sha1.cpp libledger_util_la_CPPFLAGS = $(lib_cppflags) @@ -86,6 +87,7 @@ pkginclude_HEADERS = \ src/stream.h \ src/pstream.h \ src/unistring.h \ + src/accum.h \ \ src/amount.h \ src/commodity.h \ -- cgit v1.2.3