mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix translation bug in substituting message placeholders
This commit is contained in:
@@ -310,7 +310,7 @@ impl TryFrom<&MarkedYaml> for Message {
|
||||
if !subs.is_empty() {
|
||||
for mc in &mut content {
|
||||
for (index, sub) in subs.iter().enumerate() {
|
||||
let placeholder = format!("{}", index);
|
||||
let placeholder = format!("{{{}}}", index);
|
||||
if !mc.text.contains(&placeholder) {
|
||||
return Err(ParseMetadataError::new(
|
||||
value.span.start,
|
||||
|
||||
Reference in New Issue
Block a user