mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Variant: Relocate strings
This commit is contained in:
parent
9ccb83be57
commit
b0c60f1c08
10 changed files with 51 additions and 477 deletions
|
@ -39,6 +39,57 @@
|
|||
#include <shared.h>
|
||||
#include <i18n.h>
|
||||
|
||||
// These are all error messages generated by the expression evaluator, and are
|
||||
// mostly concerned with how various operators interact with the different
|
||||
// data types.
|
||||
#define STRING_VARIANT_TIME_T "Cannot instantiate this type with a time_t value."
|
||||
#define STRING_VARIANT_EXP_BOOL "Cannot exponentiate Booleans"
|
||||
#define STRING_VARIANT_EXP_NON_INT "Cannot exponentiate to a non-integer power"
|
||||
#define STRING_VARIANT_EXP_STRING "Cannot exponentiate strings"
|
||||
#define STRING_VARIANT_EXP_DATE "Cannot exponentiate dates"
|
||||
#define STRING_VARIANT_EXP_DURATION "Cannot exponentiate durations"
|
||||
#define STRING_VARIANT_SUB_BOOL "Cannot subtract from a Boolean value"
|
||||
#define STRING_VARIANT_SUB_STRING "Cannot subtract strings"
|
||||
#define STRING_VARIANT_SUB_DATE "Cannot subtract a date"
|
||||
#define STRING_VARIANT_ADD_BOOL "Cannot add two Boolean values"
|
||||
#define STRING_VARIANT_ADD_DATE "Cannot add two date values"
|
||||
#define STRING_VARIANT_MUL_BOOL "Cannot multiply Boolean values"
|
||||
#define STRING_VARIANT_MUL_DATE "Cannot multiply date values"
|
||||
#define STRING_VARIANT_MUL_REAL_STR "Cannot multiply real numbers by strings"
|
||||
#define STRING_VARIANT_MUL_STR_REAL "Cannot multiply strings by real numbers"
|
||||
#define STRING_VARIANT_MUL_STR_STR "Cannot multiply strings by strings"
|
||||
#define STRING_VARIANT_MUL_STR_DATE "Cannot multiply strings by dates"
|
||||
#define STRING_VARIANT_MUL_STR_DUR "Cannot multiply strings by durations"
|
||||
#define STRING_VARIANT_MUL_DUR_STR "Cannot multiply durations by strings"
|
||||
#define STRING_VARIANT_MUL_DUR_DATE "Cannot multiply durations by dates"
|
||||
#define STRING_VARIANT_MUL_DUR_DUR "Cannot multiply durations by durations"
|
||||
#define STRING_VARIANT_DIV_BOOL "Cannot divide Boolean values"
|
||||
#define STRING_VARIANT_DIV_INT_BOOL "Cannot divide integers by Boolean values"
|
||||
#define STRING_VARIANT_DIV_ZERO "Cannot divide by zero"
|
||||
#define STRING_VARIANT_DIV_INT_STR "Cannot divide integer by string"
|
||||
#define STRING_VARIANT_DIV_INT_DATE "Cannot divide integer by date values"
|
||||
#define STRING_VARIANT_DIV_REAL_BOOL "Cannot divide real by Boolean"
|
||||
#define STRING_VARIANT_DIV_REAL_STR "Cannot divide real numbers by strings"
|
||||
#define STRING_VARIANT_DIV_REAL_DATE "Cannot divide real numbers by dates"
|
||||
#define STRING_VARIANT_DIV_DUR_BOOL "Cannot divide duration by Boolean"
|
||||
#define STRING_VARIANT_DIV_DUR_STR "Cannot divide durations by strings"
|
||||
#define STRING_VARIANT_DIV_DUR_DATE "Cannot divide durations by dates"
|
||||
#define STRING_VARIANT_DIV_DUR_DUR "Cannot divide durations by durations"
|
||||
#define STRING_VARIANT_MOD_BOOL "Cannot modulo Booleans"
|
||||
#define STRING_VARIANT_MOD_DATE "Cannot modulo date values"
|
||||
#define STRING_VARIANT_MOD_DUR "Cannot modulo duration values"
|
||||
#define STRING_VARIANT_MOD_INT_BOOL "Cannot modulo integer by Boolean"
|
||||
#define STRING_VARIANT_MOD_INT_DATE "Cannot modulo integer by date values"
|
||||
#define STRING_VARIANT_MOD_INT_DUR "Cannot modulo integer by duration values"
|
||||
#define STRING_VARIANT_MOD_INT_STR "Cannot modulo integer by string"
|
||||
#define STRING_VARIANT_MOD_REAL_BOOL "Cannot modulo real by Boolean"
|
||||
#define STRING_VARIANT_MOD_REAL_DUR "Cannot modulo real by duration values"
|
||||
#define STRING_VARIANT_MOD_REAL_DATE "Cannot modulo real numbers by dates"
|
||||
#define STRING_VARIANT_MOD_REAL_STR "Cannot modulo real numbers by strings"
|
||||
#define STRING_VARIANT_MOD_STR "Cannot modulo string values"
|
||||
#define STRING_VARIANT_MOD_ZERO "Cannot modulo zero"
|
||||
#define STRING_VARIANT_SQRT_NEG "Cannot take the square root of a negative number."
|
||||
|
||||
std::string Variant::dateFormat = "";
|
||||
bool Variant::searchCaseSensitive = true;
|
||||
bool Variant::searchUsingRegex = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue