2013-03-18 52 views
1

所以我一直在尋找通過Gmail iOS應用(2.0.1),並看到了一些包括HTML文件,如calendar.html:Gmail iOS應用程序使用自定義的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標籤是因爲我想知道。我嘗試了使用Google搜索,但我找不到任何東西。也許它是一個內部谷歌的東西?任何信息都會很好。我只是想了解iOS/Google編程風格。

回答

1

<? … ?>是一個XML processing instruction。它們不是文檔數據,而是用於底層XML引擎。

通常,處理指令被XML引擎用作將控制流(<? if test="condition" ?>)和命令(<? echo "string" ?>)嵌入到XML文檔中的一種方式。

這裏看起來像cs是一種元命令。 cs #trans description似乎是對一些類型的用戶的幫助標籤。

對不起,它不直接回答你的問題,但更好地理解表單可能會幫助你更多地瞭解這個功能。

+0

謝謝 - 我沒有太多的XML經驗,所以我不知道這一點。我認爲這是像PHP的標籤。閱讀關於XML的時間:) – 2013-03-18 05:08:02

1

我的猜測是<?cs>標記中的那些文本位在開發過程中被內部Google本地化工具用來向翻譯人員解釋以下文本的目的。它們可能不在正在運行的應用程序的任何地方顯示或使用。