Skip to content

Commit 1edba25

Browse files
committed
[installer][windows] refactor strings
Signed-off-by: Vitalii Koshura <[email protected]>
1 parent 873223b commit 1edba25

File tree

3 files changed

+145
-502
lines changed

3 files changed

+145
-502
lines changed

installer/InstallerStrings.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is part of BOINC.
22
// https://boinc.berkeley.edu
3-
// Copyright (C) 2024 University of California
3+
// Copyright (C) 2025 University of California
44
//
55
// BOINC is free software; you can redistribute it and/or modify it
66
// under the terms of the GNU Lesser General Public License
@@ -31,6 +31,9 @@ InstallerStrings::~InstallerStrings() {
3131
}
3232

3333
const std::string& InstallerStrings::get(const std::string& key) {
34+
if (!key._Starts_with("IDS_")) {
35+
return key;
36+
}
3437
if (strings.find(key) == strings.end()) {
3538
std::cerr << "WARNING: Key " << key << " not found." << std::endl;
3639
return key;

0 commit comments

Comments
 (0)