界面字符串翻译需要提交1个Excel 表和1个图片文件夹。
将需要翻译的字符串,放到 excel 表中,格式要求如下。
字符串id | 英文字符串 | 中文字符串 | 字符串所在界面路径 | 占位符赋值 | 备注 |
|---|---|---|---|---|---|
IDS_device_huawei_gt2_H5_1001 | %d apple | %d苹果 | Enter Health -Device-add device-Blood glucose monitors-start measure -h5 page- start measure - result(hypoglycemia ) | %d = 1 | 常量 |
IDS_device_huawei_gt2_H5_1001 | Current blood sugar level is very low. It is important to eat %1$s.–%2$s. g of sugary snacks as soon as possible. Then wait %3$s. minutes and check your blood sugar again. If your blood sugar continues to stay below or at %4$s.mmol∕L , seek medical attention immediately. | 当前处于低血糖状态。需立即服用 %1$s.-%2$s.g 糖类食物 (如图示),%3$s. 分钟后再次检测血糖。若血糖仍≤%4$s.mmol∕L,则重复上述步骤。若血糖和症状依旧未缓解,应尽快就医。 | Enter Health -Device-add device-Blood glucose monitors-Device Pairing Wait. Select the device list > Device pairing success > Start measurement > Insert test bar > Measure blood sugar> Confirm blood sugar value > Select measure period >Measurement | %1$s.=15, %2$s.=20, %3$s.=15,%4$s.=3.9 | 常量 |
注意事项:
错误示例:

0 counts/min 整体算一个字符串,0是变量,需要使用占位符。
所有截图,均为英文界面截图,不能出现中文字符串。
H5 要具备随运动健康App 切换语言的能力。可以参考如下接口:public String getLocale(),用法:var locale = jsInjection.getLocale() // 语言标识。
