- Localized more files.
This commit is contained in:
Paul Beckingham
2011-06-21 18:05:17 -04:00
parent 393ebae8aa
commit b63835757f
12 changed files with 81 additions and 37 deletions

View File

@@ -25,8 +25,11 @@
//
////////////////////////////////////////////////////////////////////////////////
#define L10N // Localization complete.
#include <sstream>
#include <iostream>
#include <i18n.h>
#include <assert.h>
#include <Taskmod.h>
@@ -130,9 +133,7 @@ bool Taskmod::isValid ()
std::string Taskmod::getUuid ()
{
if (!bAfterSet)
{
throw std::string ("Taskmod::getUuid(): Task object not initialized.");
}
throw std::string (STRING_TASKMOD_BAD_INIT);
return after.get ("uuid");
}
@@ -143,14 +144,14 @@ std::string Taskmod::toString ()
assert (bAfterSet);
std::stringstream stream;
stream << "time " << timestamp << "\n";
stream << STRING_TASKMOD_TIME << timestamp << "\n";
if (bBeforeSet)
{
stream << "old " << before.composeF4();
stream << STRING_TASKMOD_OLD << before.composeF4();
}
stream << "new " << after.composeF4();
stream << STRING_TASKMOD_NEW << after.composeF4();
stream << "---\n";
return stream.str ();
@@ -202,3 +203,5 @@ std::string Taskmod::getTimeStr () const
return sstream.str ();
}
////////////////////////////////////////////////////////////////////////////////