Skip to content

Commit f9cb224

Browse files
authored
Merge pull request #6027 from BOINC/vko_refactor_msi_strings
[installer][windows] refactor strings
2 parents 873223b + 1edba25 commit f9cb224

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)