| Summary: | [Help Handbooks] Create new help handbook page for non-existent handbooks | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Darrell <darrella> |
| Component: | tdelibs | Assignee: | Michele Calgaro <michele.calgaro> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugwatch, darrella, michele.calgaro |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2014 | ||
| Attachments: |
Screen grab of new replacement page
tdelibs: Patch to use new replacement page tdebase: Patch to add new replacement page |
||
|
Description
Darrell
2014-01-20 20:00:21 CST
Created attachment 1876 [details]
Screen grab of new replacement page
This new replacement page looks great. We now need translations or those users will still see the unprofessional blank page and error message.
Created attachment 1887 [details]
tdelibs: Patch to use new replacement page
This patch is functional. I'd like to add a snippet to force the use of the English page when i18n versions are not found. Basically that means copying the code from a few lines previous in the code, but I don't know how to force that to the 'en' path.
Created attachment 1888 [details]
tdebase: Patch to add new replacement page
I pushed both patches to git. tdelibs: commit 123c26a0 tdebase: commit 358b9d8a We still need to add a snippet in tdelibsthat forces i18n users to view the English page when an equivalent i18n page does not exist. I am in the process of updating all incomplete (that is, nothing but a template) and non-existent help handbooks to a new default template that should limit when the new 'Not found" page is seen, but we still need that page for future changes to Trinity. Fixed in commit 37906b5. The problem was not in the 'lookupFile' function, which already looks in the default English location if documentation is not found in any localized language, but in an incorrect previous patch. Now the code works as follow: 1) look for documentation in localized language. If available display it. 2) if not available, look for documentation in English. If available display it. 3) if no documentation is available in any language, but the "help not found" page in localized language is available, display it. 4) if the localized "help not found" page is not available, but the English version is available, display the English "help not found" page 5) if nothing is available, display an empty page with the message "Sorry, there is no documentation available at all for <searched string>". Basically unless the user tampers with installed files, one of the first 4 options is *always* selected. If the user deletes some of the documentation files, option 5 may get chosen as a "last resource" message, but it would clearly be a consequence of a user mistake. |