l10n: Eliminated some column labels

This commit is contained in:
Paul Beckingham 2018-01-21 22:32:17 -05:00
parent 2872b44b45
commit 41f2133693
16 changed files with 22 additions and 207 deletions

View file

@ -35,7 +35,6 @@
#include <format.h>
#include <utf8.h>
#include <util.h>
#include <i18n.h>
extern Context context;
extern Task& contextTask;
@ -45,7 +44,7 @@ ColumnProject::ColumnProject ()
{
_name = "project";
_style = "full";
_label = STRING_COLUMN_LABEL_PROJECT;
_label = "Project";
_styles = {"full", "parent", "indented"};
_examples = {"home.garden",
"home",

View file

@ -35,7 +35,7 @@ ColumnStatus::ColumnStatus ()
{
_name = "status";
_style = "long";
_label = STRING_COLUMN_LABEL_STATUS;
_label = "Status";
_styles = {"long", "short"};
_examples = {STRING_COLUMN_LABEL_STAT_PE,
STRING_COLUMN_LABEL_STAT_P};
@ -48,7 +48,7 @@ void ColumnStatus::setStyle (const std::string& value)
{
Column::setStyle (value);
if (_style == "short" && _label == STRING_COLUMN_LABEL_STATUS)
if (_style == "short" && _label == "Status")
_label = STRING_COLUMN_LABEL_STAT;
}

View file

@ -45,7 +45,7 @@ ColumnTags::ColumnTags ()
{
_name = "tags";
_style = "list";
_label = STRING_COLUMN_LABEL_TAGS;
_label = "Tags";
_styles = {"list", "indicator", "count"};
_examples = {"home @chore next",
context.config.get ("tag.indicator"),
@ -61,12 +61,12 @@ void ColumnTags::setStyle (const std::string& value)
Column::setStyle (value);
if (_style == "indicator" &&
_label == STRING_COLUMN_LABEL_TAGS)
_label == "Tags")
_label = _label.substr (0, context.config.get ("tag.indicator").length ());
else if (_style == "count" &&
_label == STRING_COLUMN_LABEL_TAGS)
_label = STRING_COLUMN_LABEL_TAG;
_label == "Tags")
_label = "Tag";
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -27,14 +27,13 @@
#include <cmake.h>
#include <ColUUID.h>
#include <format.h>
#include <i18n.h>
////////////////////////////////////////////////////////////////////////////////
ColumnUUID::ColumnUUID ()
{
_name = "uuid";
_style = "long";
_label = STRING_COLUMN_LABEL_UUID;
_label = "UUID";
_modifiable = false;
_styles = {"long", "short"};
_examples = {"f30cb9c3-3fc0-483f-bfb2-3bf134f00694", "f30cb9c3"};

View file

@ -27,14 +27,13 @@
#include <cmake.h>
#include <ColUrgency.h>
#include <format.h>
#include <i18n.h>
////////////////////////////////////////////////////////////////////////////////
ColumnUrgency::ColumnUrgency ()
{
_name = "urgency";
_style = "real";
_label = STRING_COLUMN_LABEL_URGENCY;
_label = "Urgency";
_modifiable = false;
_styles = {"real", "integer"};
_examples = {"4.6", "4"};