gpt4 book ai didi

macos - 创建本地化的 Mac 帮助手册文件 (.help)

转载 作者:行者123 更新时间:2023-12-02 11:01:48 28 4
gpt4 key购买 nike

我在文件夹中仅使用一种语言为我的应用程序创建了帮助,并且它有效。我尝试过本地化此内容并添加西类牙语翻译,但失败了。

我对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

AppName.help 中的 Info.plist 文件具有以下键:

<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>

有人知道我做错了什么,或者知道制作 .help 文件的好教程吗?

最佳答案

我终于成功了,但我不得不放弃 .help 文件格式。

我保留了旧的简单帮助文件夹,为每种语言复制了该文件夹。然后,每个帮助文件夹与本地化 nib 文件一起放入主应用程序包的现有本地化文件夹中。

我发现本文中的说明非常有帮助: https://web.archive.org/web/20150421040211/https://www.icalamus.net/ioda/howto_applehelpbook.php?lan=en

我仍然想知道如何使 .help 格式正常工作,但这已经解决了我的问题并且看起来更简单。唯一的小缺点是无法共享资源,例如不需要本地化的图像。

关于macos - 创建本地化的 Mac 帮助手册文件 (.help),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11281722/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com