1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-01 06:33:53 +01:00

Merge pull request #345 from tenacityteam/xo-ifdef-fix

Move `XO(...)` outside `#ifdef`

Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
This commit is contained in:
Emily Mabrey
2021-07-22 22:40:59 -04:00
committed by GitHub

View File

@@ -47,14 +47,20 @@ hold information about a credit item in the Credits list
// RevisionIdent contains the REV_TIME and REV_LONG defines from git commit information
#include "RevisionIdent.h"
//This needs to be outside the #ifdef or it won't end up in the POT file consistently
static wxString NoDateTimeText = XO("Unknown date and time").Translation();
#ifndef REV_TIME
#define REV_TIME "unknown date and time"
#define REV_TIME NoDateTimeText
#endif
//This needs to be outside the #ifdef or it won't end up in the POT file consistently
static wxString NoRevisionText = XO("No revision identifier was provided").Translation();
#ifdef REV_LONG
#define REV_IDENT wxString( "[[https://github.com/tenacityteam/tenacity/commit/" )+ REV_LONG + "|" + wxString( REV_LONG ).Left(6) + "]] of " + REV_TIME
#else
#define REV_IDENT (XO("No revision identifier was provided").Translation())
#define REV_IDENT (NoRevisionText)
#endif
// To substitute into many other translatable strings