android - xliff :g stand for中的字母g是什么意思

标签 android xml

我很想知道以下标记中的字母 g 代表什么:

<string name="countdown">
    <xliff:g id="time" example="5 days>%1$s</xliff:g>until holiday
</string>

我从 https://developer.android.com/distribute/tools/localization-checklist.html#manage-strings 复制了这个标签

我尝试用谷歌搜索,但找不到任何答案。 谢谢。

最佳答案

g 代表通用组占位符。 必需的 id 属性用于引用文件中的替换代码。 您可以在提供的规范中阅读更多相关信息 here

关于android - xliff :g stand for中的字母g是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42017083/

相关文章:

android - 无法在 android 中加载 map

android - Unity UI 按钮,触发 OnClick() 的奇怪行为

c++ - Boost property tree xml解析No such node()

javascript - 正则表达式:Javascript、XML、字符串

c# - 为什么 XSD 序列显示不明确

java - 读取标签之间的 XML 数据

c# - 如何在 android xamarin 中动态地将按钮添加到 View ?

android - 如何在 activatedBackgroundIndicator 中的选定/突出显示的列表项上设置自定义颜色

android - 如何从 android 中的数据库 SQlite 中删除前 10 行?

c# - 查找数组或 XML 中值的频率 (C#)