l10n: Eliminated some column labels

This commit is contained in:
Paul Beckingham 2018-01-21 22:18:18 -05:00
parent 5c9d96d5a8
commit 2872b44b45
10 changed files with 70 additions and 17 deletions

62
src/columns/ColLast.cpp Normal file
View file

@ -0,0 +1,62 @@
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2016, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// http://www.opensource.org/licenses/mit-license.php
//
////////////////////////////////////////////////////////////////////////////////
#include <cmake.h>
#include <ColLast.h>
#include <format.h>
////////////////////////////////////////////////////////////////////////////////
ColumnLast::ColumnLast ()
{
_name = "last";
_style = "number";
_label = "Last instance";
_modifiable = false;
_styles = {"number"};
_examples = {"12"};
}
////////////////////////////////////////////////////////////////////////////////
// Set the minimum and maximum widths for the value.
void ColumnLast::measure (Task& task, unsigned int& minimum, unsigned int& maximum)
{
minimum = maximum = 0;
if (task.has (_name))
minimum = maximum = task.get (_name).length ();
}
////////////////////////////////////////////////////////////////////////////////
void ColumnLast::render (
std::vector <std::string>& lines,
Task& task,
int width,
Color& color)
{
if (task.has (_name))
renderStringRight (lines, width, color, task.get (_name));
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Erfasst"
#define STRING_COLUMN_LABEL_LABEL "Beschreibung"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Geändert"
#define STRING_COLUMN_LABEL_NAME "Name"
#define STRING_COLUMN_LABEL_ORPHAN "Verwaiste UDA"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Entered"
#define STRING_COLUMN_LABEL_LABEL "Label"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modified"
#define STRING_COLUMN_LABEL_NAME "Name"
#define STRING_COLUMN_LABEL_ORPHAN "Orphan UDA"

View file

@ -27,15 +27,14 @@
#ifndef INCLUDED_STRINGS
#define INCLUDED_STRINGS
#define STRING_COLUMN_LABEL_ENTERED "Kreita"
#define STRING_COLUMN_LABEL_LABEL "Rubriko"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modifo"
#define STRING_COLUMN_LABEL_NAME "Nomo"
#define STRING_COLUMN_LABEL_ORPHAN "Orfa UDA"
#define STRING_COLUMN_LABEL_PROJECT "Projekto"
#define STRING_COLUMN_LABEL_RECUR "Reokazas"
#define STRING_COLUMN_LABEL_RECUR_L "Reokazas ĉiu"
#define STRING_COLUMN_LABEL_ENTERED "Entered"
#define STRING_COLUMN_LABEL_LABEL "Label"
#define STRING_COLUMN_LABEL_MOD "Modified"
#define STRING_COLUMN_LABEL_NAME "Name"
#define STRING_COLUMN_LABEL_ORPHAN "Orphan UDA"
#define STRING_COLUMN_LABEL_PROJECT "Project"
#define STRING_COLUMN_LABEL_RECUR "Recur"
#define STRING_COLUMN_LABEL_RECUR_L "Recurrence"
#define STRING_COLUMN_LABEL_RTYPE "Recurrence type"
#define STRING_COLUMN_LABEL_START "Eko"
#define STRING_COLUMN_LABEL_STAT "St"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Entrada"
#define STRING_COLUMN_LABEL_LABEL "Etiqueta"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modificada"
#define STRING_COLUMN_LABEL_NAME "Nombre"
#define STRING_COLUMN_LABEL_ORPHAN "UDA huérfano"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Entrée"
#define STRING_COLUMN_LABEL_LABEL "Étiq"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modifiée"
#define STRING_COLUMN_LABEL_NAME "Nom"
#define STRING_COLUMN_LABEL_ORPHAN "ADU orphelins"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Inserito"
#define STRING_COLUMN_LABEL_LABEL "Etichetta"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modificato"
#define STRING_COLUMN_LABEL_NAME "Nome"
#define STRING_COLUMN_LABEL_ORPHAN "UDA Orfano"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Entered"
#define STRING_COLUMN_LABEL_LABEL "Label"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modified"
#define STRING_COLUMN_LABEL_NAME "Name"
#define STRING_COLUMN_LABEL_ORPHAN "Orphan UDA"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Dodane"
#define STRING_COLUMN_LABEL_LABEL "Etykieta"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Zmienione"
#define STRING_COLUMN_LABEL_NAME "Nazwa"
#define STRING_COLUMN_LABEL_ORPHAN "Osierocone UDA"

View file

@ -29,7 +29,6 @@
#define STRING_COLUMN_LABEL_ENTERED "Criada"
#define STRING_COLUMN_LABEL_LABEL "Rótulo"
#define STRING_COLUMN_LABEL_LAST "Last instance"
#define STRING_COLUMN_LABEL_MOD "Modificada"
#define STRING_COLUMN_LABEL_NAME "Nome"
#define STRING_COLUMN_LABEL_ORPHAN "UDA Orfão"