diff --git a/src/AboutDialog.cpp b/src/AboutDialog.cpp index 15e94cde1..dbe9baadd 100644 --- a/src/AboutDialog.cpp +++ b/src/AboutDialog.cpp @@ -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