File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -801,11 +801,10 @@ int GetNumCores()
801
801
802
802
std::string CopyrightHolders (const std::string& strPrefix)
803
803
{
804
- std::string strCopyrightHolders = strPrefix + _ (COPYRIGHT_HOLDERS);
805
- if (strCopyrightHolders.find (" %s" ) != strCopyrightHolders.npos ) {
806
- strCopyrightHolders = strprintf (strCopyrightHolders, _ (COPYRIGHT_HOLDERS_SUBSTITUTION));
807
- }
808
- if (strCopyrightHolders.find (" Bitcoin Core developers" ) == strCopyrightHolders.npos ) {
804
+ std::string strCopyrightHolders = strPrefix + strprintf (_ (COPYRIGHT_HOLDERS), _ (COPYRIGHT_HOLDERS_SUBSTITUTION));
805
+
806
+ // Check for untranslated substitution to make sure Bitcoin Core copyright is not removed by accident
807
+ if (strprintf (COPYRIGHT_HOLDERS, COPYRIGHT_HOLDERS_SUBSTITUTION).find (" Bitcoin Core" ) == std::string::npos) {
809
808
strCopyrightHolders += " \n " + strPrefix + " The Bitcoin Core developers" ;
810
809
}
811
810
return strCopyrightHolders;
You can’t perform that action at this time.
0 commit comments