Skip to content

Commit fea324f

Browse files
committed
Do not translate extremely rare / technical errors
1 parent 810e228 commit fea324f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

doc/translation_strings_policy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ On a high level, these strings are to be translated:
2323

2424
### GUI strings
2525

26-
Anything that appears to the user in the GUI is to be translated. This includes labels, menu items, button texts, tooltips and window titles.
26+
Do not translate extremely rare or technical errors. These cases must be commented in the code explicitly.
27+
Anything else that appears to the user in the GUI is to be translated. This includes labels, menu items, button texts, tooltips and window titles.
2728
This includes messages passed to the GUI through the UI interface through `InitMessage`, `ThreadSafeMessageBox` or `ShowProgress`.
2829

2930
General recommendations

src/init.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,8 @@ static void ThreadImport(std::vector<fs::path> vImportFiles)
745745
*/
746746
static bool InitSanityCheck()
747747
{
748-
if(!ECC_InitSanityCheck()) {
748+
if (!ECC_InitSanityCheck()) {
749+
// This message is intentionally untranslated because the error is extremely rare.
749750
InitError("Elliptic curve cryptography sanity check failure. Aborting.");
750751
return false;
751752
}
@@ -754,6 +755,7 @@ static bool InitSanityCheck()
754755
return false;
755756

756757
if (!Random_SanityCheck()) {
758+
// This message is intentionally untranslated because the error is extremely rare.
757759
InitError("OS cryptographic RNG sanity check failure. Aborting.");
758760
return false;
759761
}
@@ -915,8 +917,10 @@ bool AppInitBasicSetup()
915917
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
916918
#endif
917919

918-
if (!SetupNetworking())
920+
if (!SetupNetworking()) {
921+
// This message is intentionally untranslated because the error is extremely rare.
919922
return InitError("Initializing networking failed");
923+
}
920924

921925
#ifndef WIN32
922926
if (!gArgs.GetBoolArg("-sysperms", false)) {

0 commit comments

Comments
 (0)