mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
make CopyrightHolders more generic
This commit is contained in:
parent
4e0bb527d0
commit
af5aece96b
@ -643,7 +643,7 @@ std::string HelpMessage(HelpMessageMode mode)
|
||||
std::string LicenseInfo()
|
||||
{
|
||||
// todo: remove urls from translations on next change
|
||||
return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + " ") + "\n" +
|
||||
return CopyrightHolders(_("Copyright (C)"), 2014, COPYRIGHT_YEAR) + "\n" +
|
||||
"\n" +
|
||||
_("This is experimental software.") + "\n" +
|
||||
"\n" +
|
||||
|
@ -48,7 +48,7 @@ SplashScreen::SplashScreen(Qt::WindowFlags f, const NetworkStyle *networkStyle)
|
||||
// define text to place
|
||||
QString titleText = tr(PACKAGE_NAME);
|
||||
QString versionText = QString(tr("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("\xc2\xA9", 2014, COPYRIGHT_YEAR).c_str());
|
||||
QString titleAddText = networkStyle->getTitleAddText();
|
||||
// networkstyle.cpp can't (yet) read themes, so we do it here to get the correct Splash-screen
|
||||
QString splashScreenPath = ":/images/" + GUIUtil::getThemeName() + "/splash";
|
||||
|
@ -954,14 +954,14 @@ int GetNumCores()
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string CopyrightHolders(const std::string& strPrefix)
|
||||
std::string CopyrightHolders(const std::string& strPrefix, unsigned int nStartYear, unsigned int nEndYear)
|
||||
{
|
||||
std::string strCopyrightHolders = strPrefix + _(COPYRIGHT_HOLDERS);
|
||||
std::string strCopyrightHolders = strPrefix + strprintf(" %u-%u ", nStartYear, nEndYear) + _(COPYRIGHT_HOLDERS);
|
||||
if (strCopyrightHolders.find("%s") != strCopyrightHolders.npos) {
|
||||
strCopyrightHolders = strprintf(strCopyrightHolders, _(COPYRIGHT_HOLDERS_SUBSTITUTION));
|
||||
}
|
||||
if (strCopyrightHolders.find("Bitcoin Core developers") == strCopyrightHolders.npos) {
|
||||
strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
|
||||
strCopyrightHolders += "\n" + strPrefix + strprintf(" %u-%u ", 2009, nEndYear) + "The Bitcoin Core developers";
|
||||
}
|
||||
return strCopyrightHolders;
|
||||
}
|
||||
|
@ -271,7 +271,7 @@ template <typename Callable> void TraceThread(const char* name, Callable func)
|
||||
}
|
||||
}
|
||||
|
||||
std::string CopyrightHolders(const std::string& strPrefix);
|
||||
std::string CopyrightHolders(const std::string& strPrefix, unsigned int nStartYear, unsigned int nEndYear);
|
||||
|
||||
/**
|
||||
* @brief Converts version strings to 4-byte unsigned integer
|
||||
|
Loading…
Reference in New Issue
Block a user