- Localized all column objects, some commands.
This commit is contained in:
Paul Beckingham
2011-06-16 20:28:46 -04:00
parent c7bfba103e
commit 6a48d86f2c
22 changed files with 245 additions and 113 deletions

View File

@@ -25,10 +25,13 @@
//
////////////////////////////////////////////////////////////////////////////////
#define L10N // Localization complete.
#include <math.h>
#include <Context.h>
#include <ColUUID.h>
#include <text.h>
#include <i18n.h>
extern Context context;
@@ -37,7 +40,7 @@ ColumnUUID::ColumnUUID ()
{
_type = "string";
_style = "default";
_label = "UUID";
_label = STRING_COLUMN_LABEL_UUID;
}
////////////////////////////////////////////////////////////////////////////////
@@ -52,7 +55,7 @@ void ColumnUUID::measure (Task&, int& minimum, int& maximum)
if (_style == "default") minimum = maximum = 36;
else if (_style == "short") minimum = maximum = 8;
else
throw std::string ("Unrecognized column format 'uuid.") + _style + "'";
throw format (STRING_COLUMN_BAD_FORMAT, "uuid.", _style);
}
////////////////////////////////////////////////////////////////////////////////