[英]Multiple substitions specified in non-position format error
I having the error "Multiple substitions specified in non-position format error" for the following string resource: 对于以下字符串资源,我出现错误“非位置格式错误中指定了多个替换”:
<string name="stCrewmanBlockedEnemy">The %1$s has blocked the enemy attack! (dice: %2$d + skill: %3d$d) vs (dice: %4$d + skill: %5$d)</string>
However the substitutions are in positional format... 但是替换是位置格式...
I know there are other questions in stackoverflow with the same topic but I don't think they answer my question. 我知道在stackoverflow中还有其他与同一主题有关的问题,但我认为它们不能回答我的问题。 Any ideas?
有任何想法吗?
Edit: I've narrowed down the problem to the presence of the exclamation point and the two points(:). 编辑:我已将问题缩小到感叹号和两个point(:)的存在。 However souldn't this work?
但是这不是工作吗?
I just found out I had a typo with the extra d in the third parameter. 我刚刚发现我在第三个参数中有一个多余的d错字。
Problem solved. 问题解决了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.