Browse Source

Litecoin: Fix copyright year value

0.16
Adrian Gallagher 8 years ago
parent
commit
ecf6fd0aab
No known key found for this signature in database
GPG Key ID: FE3348877809386C
  1. 6
      src/init.cpp
  2. 2
      src/qt/splashscreen.cpp
  3. 4
      src/util.cpp

6
src/init.cpp

@ -517,10 +517,10 @@ std::string HelpMessage(HelpMessageMode mode) @@ -517,10 +517,10 @@ std::string HelpMessage(HelpMessageMode mode)
std::string LicenseInfo()
{
const std::string URL_SOURCE_CODE = "<https://github.com/bitcoin/bitcoin>";
const std::string URL_WEBSITE = "<https://bitcoincore.org>";
const std::string URL_SOURCE_CODE = "<https://github.com/litecoin-project/litecoin>";
const std::string URL_WEBSITE = "<https://litecoin.org>";
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + " ") + "\n" +
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2011, COPYRIGHT_YEAR) + " ") + "\n" +
"\n" +
strprintf(_("Please contribute if you find %s useful. "
"Visit %s for further information about the software."),

2
src/qt/splashscreen.cpp

@ -44,7 +44,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle) @@ -44,7 +44,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
// define text to place
QString titleText = tr(PACKAGE_NAME);
QString versionText = QString("Version %1").arg(QString::fromStdString(FormatFullVersion()));
QString copyrightText = QString::fromUtf8(CopyrightHolders(strprintf("\xc2\xA9 %u-%u ", 2009, COPYRIGHT_YEAR)).c_str());
QString copyrightText = QString::fromUtf8(CopyrightHolders(strprintf("\xc2\xA9 %u-%u ", 2011, COPYRIGHT_YEAR)).c_str());
QString titleAddText = networkStyle->getTitleAddText();
QString font = QApplication::font().toString();

4
src/util.cpp

@ -949,7 +949,9 @@ std::string CopyrightHolders(const std::string& strPrefix) @@ -949,7 +949,9 @@ std::string CopyrightHolders(const std::string& strPrefix)
// Check for untranslated substitution to make sure Bitcoin Core copyright is not removed by accident
if (strprintf(COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION).find("Bitcoin Core") == std::string::npos) {
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
std::string strYear = strPrefix;
strYear.replace(strYear.find("2011"), sizeof("2011")-1, "2009");
strCopyrightHolders += "\n" + strYear + "The Bitcoin Core developers";
}
return strCopyrightHolders;
}

Loading…
Cancel
Save