我已經在一個文件夾中以一種語言創建了我的應用程序的幫助,它工作。我試過並未能本地化這些內容並添加西班牙語翻譯。創建本地化的mac幫助手冊文件(.help)
我對Apples Guide to creating a help book的理解是,我需要創建一個.help包以使本地化工作。我已經這樣做了,但是我收到一條錯誤消息,提示「所選主題當前不可用」。曾經有過幾次我認爲它在工作,但它只是顯示了我以前的本地化內容。 Emptying the help viewer cache似乎停止了,但然後我回去獲取不可用的內容錯誤消息。
在我的應用程序的AppName的-Info.plist文件我有以下的幫助相關的條目:
<key>CFBundleHelpBookFolder</key>
<string>AppName.help</string>
<key>CFBundleHelpBookName</key>
<string>garsonix.appname.help</string>
我AppName.help文件具有以下結構:
AppName.help
Contents
Info.plist
Resources
English.lproj
index.html
search.helpindex
Spanish.lproj
index.html
search.helpindex
shrd
logo.png
的Info.plist文件在AppName.help中有以下鍵:
<key>CFBundleDevelopmentRegion</key>
<string>en_GB</string>
<key>CFBundleIdentifier</key>
<string>garsonix.appname.help</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>AppName</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.13</string>
<key>CFBundleSignature</key>
<string>hbwr</string>
<key>CFBundleVersion</key>
<string>1.13</string>
<key>HPDBookAccessPath</key>
<string>index.html</string>
<key>HPDBookIconPath</key>
<string>shrd/logo.png</string>
<key>HPDBookKBProduct</key>
<string>GAppName</string>
<key>HPDBookKBURL</key>
<string>http://www.garsonix.co.uk/</string>
<key>HPDBookRemoteURL</key>
<string>http://www.garsonix.co.uk/</string>
<key>HPDBookTitle</key>
<string>AppName Help</string>
<key>HPDBookType</key>
<string>3</string>
<key>HPDBookIndexPath</key>
<string>search.helpindex</string>
有沒有人知道我在做什麼w榮,還是知道一個好的教程製作.help文件?
嗯 - 本地化的結構對我來說工作得很好。我不知道我做了什麼不同,因爲它看起來像我的Ascii-Art文件夾結構。只有兩個地區,但工作正常。 – Jay
您最喜歡的網站不是英文。任何機會,你放在一起簡單的步驟如何創建一個簡單的幫助文件夾。蘋果在這方面的文件是可怕的。 – user523234
@ user523234可以通過單擊頁面頂部的標誌來翻譯頁面。我已經更新了鏈接,因此可以直接進入英文版。 –