diff options
| author | MarcoFalke <[email protected]> | 2019-06-26 10:28:13 -0400 |
|---|---|---|
| committer | fanquake <[email protected]> | 2019-09-24 07:53:28 +0800 |
| commit | 87908e9c98f2bc6975d70d8f427a9be965effc3b (patch) | |
| tree | 754a3d528171431446d26202252dc2387fccd934 /src/init.cpp | |
| parent | build: Stop translating PACKAGE_NAME (diff) | |
| download | discoin-87908e9c98f2bc6975d70d8f427a9be965effc3b.tar.xz discoin-87908e9c98f2bc6975d70d8f427a9be965effc3b.zip | |
scripted-diff: Avoid passing PACKAGE_NAME for translation
-BEGIN VERIFY SCRIPT-
sed -i --regexp-extended -e 's/\<\w+(::\w+)?\(PACKAGE_NAME\)/PACKAGE_NAME/g' $(git grep -l --extended-regexp '\<\w+(::\w+)?\(PACKAGE_NAME\)' src)
-END VERIFY SCRIPT-
Github-Pull: #16291
Rebased-From: fabe87d2c923ab3a70b8cde2666a4d1cda8b22fb
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 557102efc..ce9ff25c4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1181,7 +1181,7 @@ static bool LockDataDirectory(bool probeOnly) return InitError(strprintf(_("Cannot write to data directory '%s'; check permissions."), datadir.string())); } if (!LockDirectory(datadir, ".lock", probeOnly)) { - return InitError(strprintf(_("Cannot obtain a lock on data directory %s. %s is probably already running."), datadir.string(), _(PACKAGE_NAME))); + return InitError(strprintf(_("Cannot obtain a lock on data directory %s. %s is probably already running."), datadir.string(), PACKAGE_NAME)); } return true; } @@ -1199,7 +1199,7 @@ bool AppInitSanityChecks() // Sanity check if (!InitSanityCheck()) - return InitError(strprintf(_("Initialization sanity check failed. %s is shutting down."), _(PACKAGE_NAME))); + return InitError(strprintf(_("Initialization sanity check failed. %s is shutting down."), PACKAGE_NAME)); // Probe the data directory lock to give an early error message, if possible // We cannot hold the data directory lock here, as the forking for daemon() hasn't yet happened, |