Basic notes on OOo templates…

As described by sfx2/source/doc/doctempl.src, there are pre-canned localized UI names for certain directories under <openoffice.org>/share/template/<lang>/ …

officorr -> “Business Correspondence”
offimisc -> “Other Business Documents”
personal -> “Personal Correspondence and Documents”
forms -> “Forms and Contracts”
finance -> “Finances”
educate -> “Education”
layout -> “Presentation Backgrounds”
presnt -> “Presentations”
misc -> “Miscellaneous”

Templates placed into those directory names get placed into localized foldernames in the template UI. The “title” property (file->properties) of a template is what is displayed inside the folder in the UI. If there is no name then the filename is used. So a well behaved template should have its title property set to avoid ugly titles in the dialog.

2 Responses to “Basic notes on OOo templates…”

  1. thorsten says:

    Right – but now to the deficiencies. As the hierarchy ucp is not able to merge trees, it’s basically not possible to add templates to those predefined categories in share/template, unless one is able to write to share – which is rather uncommon for a network installation. See issue 61115 for working around that at least for Impress backgrounds.

  2. KAMI says:

    Hello!
    It is an useful thing, I will use it in my Premium edition. Sanly it is not working in samples :o (
    Another way te name the dirs if you use .nametranslation.table in the folder.
    It looks like:
    encoding=”UTF-8″

    [TRANSLATIONNAMES]
    Documentations=Dokumentáció
    Advertisement=Reklám

    I used it successfully in my last Premium release :o )

Leave a Reply