mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge #8291: [util] CopyrightHolders: Check for untranslated substitution
33336e1
[util] CopyrightHolders: Check for untranslated substitution (MarcoFalke)
This commit is contained in:
parent
9d061a2730
commit
5ce7ba6115
@ -921,11 +921,10 @@ int GetNumCores()
|
||||
|
||||
std::string CopyrightHolders(const std::string& strPrefix, unsigned int nStartYear, unsigned int nEndYear)
|
||||
{
|
||||
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) {
|
||||
std::string strCopyrightHolders = strPrefix + strprintf(" %u-%u ", nStartYear, nEndYear) + strprintf(_(COPYRIGHT_HOLDERS), _(COPYRIGHT_HOLDERS_SUBSTITUTION));
|
||||
|
||||
// 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 + strprintf(" %u-%u ", 2009, nEndYear) + "The Bitcoin Core developers";
|
||||
}
|
||||
return strCopyrightHolders;
|
||||
|
Loading…
Reference in New Issue
Block a user