1

所以我浏览了 Gmail iOS App (2.0.1) 并看到了一些包含的 html 文件,例如 calendar.html:

<h1>
<?cs #trans description Title for screen in welcome sequence describing the
ability to immediately act on calendar events. (Maximum characters: ~25) ?>
Instantly RSVP</h1>
<p>
<?cs #trans description
Reference to being able to receiving emails for calendar events and being able
to act on the events immediately.
(Maximum characters: ~100 depends on line breaks) ?>
Respond to Google Calendar invites right from the app.
</p>

我想知道是否有人知道 ?cs 标签的用途。我确实尝试过谷歌搜索,但我找不到任何东西。也许它是谷歌内部的东西?任何信息都会很好。我只是想了解 iOS/Google 编程风格。

4

2 回答 2

1

<? … ?>是一个 XML处理指令。它们不是文档数据,而是用于底层 XML 引擎。

通常,XML 引擎使用处理指令作为将控制流 ( <? if test="condition" ?>) 和命令 ( <? echo "string" ?>) 嵌入 XML 文档的一种方式。

这里看起来像是cs一种元命令。cs #trans description似乎是某种用户帮助的标签。

很抱歉,它没有直接回答您的问题,但更好地理解表单可能会帮助您了解有关该功能的更多信息。

于 2013-03-18T01:20:10.607 回答
1

我的猜测是,<?cs>在开发过程中,内部 Google 本地化工具会使用标签内的这些文本位向翻译人员解释以下文本的目的。它们可能不会在正在运行的应用程序的任何地方显示或使用。

于 2013-03-18T02:01:37.637 回答