Gmail iOS应用使用自定义HTML标记 - 任何信息?

时间:2013-03-18 00:58:25

标签: html ios gmail

所以我正在查看Gmail iOS应用程序(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编程风格。

2 个答案:

答案 0 :(得分:1)

<? … ?>是XML processing instruction。它们不是文档数据,而是用于底层XML引擎。

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

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

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

答案 1 :(得分:1)

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