Skip to content

Commit cbe7710

Browse files
author
Fastace
committed
fix(benchmark): 修正 benchmark_footnote 触发 lint StringFormatInvalid
该文案含裸 `%`(±15%),未声明 formatted="false",lint 会把它当成格式化串并报 "missing conversion character in '%,a'";中英文各报一条,导致 :feature:benchmark:lintDebug 失败。 两个语言同步补 formatted="false",其余带参数的字符串保持原样。
1 parent 826f058 commit cbe7710

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎source/feature/benchmark/src/main/res/values-zh-rCN/strings.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<string name="benchmark_table_ratio">压缩比</string>
2121
<string name="benchmark_table_time">耗时比</string>
2222
<string name="benchmark_table_size">体积比</string>
23-
<string name="benchmark_footnote">吞吐含固定开销,真实备份中低档位更快;远端备份还受网络带宽限制。耗时比与体积比以 OFF 为 1.000;本机实测含 ±15% 波动,耗时差在此范围内的档位按体积择优。</string>
23+
<string name="benchmark_footnote" formatted="false">吞吐含固定开销,真实备份中低档位更快;远端备份还受网络带宽限制。耗时比与体积比以 OFF 为 1.000;本机实测含 ±15% 波动,耗时差在此范围内的档位按体积择优。</string>
2424
<string name="benchmark_recommend_basis">相对 OFF:体积 %1$s,耗时 %2$s×</string>
2525
<string name="benchmark_recommend_equivalent">实测等价:%1$s(体积差 ≤1%%,耗时差 ≤5%%)</string>
2626
<string name="benchmark_level_off">OFF</string>

‎source/feature/benchmark/src/main/res/values/strings.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<string name="benchmark_table_ratio">Ratio</string>
2121
<string name="benchmark_table_time">Time×</string>
2222
<string name="benchmark_table_size">Size×</string>
23-
<string name="benchmark_footnote">Speed includes fixed overhead, so low levels are faster in a real backup; remote backups are also limited by network bandwidth. Time× and Size× are relative to OFF (1.000); single-run results vary by about ±15%, and levels whose time falls within that noise are picked by the smallest volume.</string>
23+
<string name="benchmark_footnote" formatted="false">Speed includes fixed overhead, so low levels are faster in a real backup; remote backups are also limited by network bandwidth. Time× and Size× are relative to OFF (1.000); single-run results vary by about ±15%, and levels whose time falls within that noise are picked by the smallest volume.</string>
2424
<string name="benchmark_recommend_basis">vs OFF: %1$s in volume, %2$s× in time</string>
2525
<string name="benchmark_recommend_equivalent">Equivalent in this test: %1$s (volume within 1%%, time within 5%%)</string>
2626
<string name="benchmark_level_off">OFF</string>

0 commit comments

Comments
 (0)