mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-11 00:53:46 +02:00
Move XO(...)
outside #ifdef
Placing `XO` usage inside pre-processor blocks is not consistenly translatable. Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user