mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 06:20:26 +02:00
Add function ApplySafeSubstitution for translation strings with parameters
This commit is contained in:
1 parent
755269c90d
commit
8a59ed0062
10 files changed
+64
-23
No files matched your search
+1
-1
@@ -338,7 +338,7 @@ void ReportScreen::UpdateCRCInfo() {
|
||||
|
||||
if (Reporting::HasCRC(gamePath_)) {
|
||||
std::string crc = StringFromFormat("%08X", Reporting::RetrieveCRC(gamePath_));
|
||||
updated = ReplaceAll(rp->T("FeedbackCRCValue", "Disc CRC: %1"), "%1", crc);
|
||||
updated = ApplySafeSubstitutions(rp->T("FeedbackCRCValue", "Disc CRC: %1"), crc);
|
||||
} else if (showCRC_) {
|
||||
updated = rp->T("FeedbackCRCCalculating", "Disc CRC: Calculating...");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user