diff --git a/src/commands/CmdVersion.cpp b/src/commands/CmdVersion.cpp index fc1131fb6..77dbce983 100644 --- a/src/commands/CmdVersion.cpp +++ b/src/commands/CmdVersion.cpp @@ -97,6 +97,11 @@ int CmdVersion::execute (std::string& output) << "-lua" #endif +#if PACKAGE_LANGUAGE != LANGUAGE_EN_US + << " " + << STRING_LOCALIZATION_DESC +#endif + << "\n" << STRING_CMD_VERSION_COPY << "\n" @@ -110,6 +115,12 @@ int CmdVersion::execute (std::string& output) << link.render () << "\n"; +#if PACKAGE_LANGUAGE != LANGUAGE_EN_US + out << STRING_LOCALIZATION_AUTHOR + << "\n" + << "\n"; +#endif + output = out.str (); return 0; } diff --git a/src/en-US.h b/src/en-US.h index be747de66..b2dc340db 100644 --- a/src/en-US.h +++ b/src/en-US.h @@ -93,6 +93,15 @@ #define INCLUDED_STRINGS #define L10N // Localization complete. +// Note that for English, the following two lines are not displayed. For all +// other localizations, these lines will appear in the output of the 'version' +// and 'diagnostics' commands. +// +// DO NOT include a copyright in the translation. +// +#define STRING_LOCALIZATION_DESC "English localization" +#define STRING_LOCALIZATION_AUTHOR "Translated into English by A. Person." + // A3 #define STRING_A3_ALTERNATE_RC "Using alternate .taskrc file {1}" #define STRING_A3_ALTERNATE_DATA "Using alternate date.location {1}" diff --git a/src/i18n.h b/src/i18n.h index efda9ad3e..eb57c0a47 100644 --- a/src/i18n.h +++ b/src/i18n.h @@ -43,11 +43,14 @@ #include +// Translators: +// Duplicate these three lines, changing "EN_US" and "en-US" to the new +// localization. #if PACKAGE_LANGUAGE == LANGUAGE_EN_US #include #endif -// Other languages here. +// Add other languages here. #define CCOLOR_BOLD 500 #define CCOLOR_UNDERLINE 501