mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Legacy
- Created legacy checking function to determine whether deprecated or obsolete attributes are being used.
This commit is contained in:
parent
fa22b98dc4
commit
02047a6e99
3 changed files with 62 additions and 42 deletions
|
@ -25,11 +25,21 @@
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define L10N // Localization complete.
|
||||
|
||||
#include <Context.h>
|
||||
#include <text.h>
|
||||
#include <i18n.h>
|
||||
|
||||
extern Context context;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void legacyAttributeCheck (const std::string& name)
|
||||
{
|
||||
// Legacy checks.
|
||||
if (name == "fg" || name == "bg")
|
||||
context.footnote (format (STRING_LEGACY_FEATURE, name));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue