diff options
Diffstat (limited to 'Swift/Controllers/Translator.h')
-rw-r--r-- | Swift/Controllers/Translator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/Controllers/Translator.h b/Swift/Controllers/Translator.h index 5c52e9f..f37e059 100644 --- a/Swift/Controllers/Translator.h +++ b/Swift/Controllers/Translator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -8,6 +8,8 @@ #include <string> +#include <boost/date_time/posix_time/posix_time_types.hpp> + namespace Swift { class Translator { public: @@ -15,6 +17,8 @@ namespace Swift { virtual std::string translate(const std::string& text, const std::string& context) = 0; + virtual std::string ptimeToHumanReadableString(const boost::posix_time::ptime& time) = 0; + static void setInstance(Translator* translator); static Translator* getInstance() { |