Difference between revisions of "Zh/Documentation/DevGuide/Extensions/Example"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: {{Documentation/DevGuide/ExtensionsTOC/Zh |Extensions2b=block |ShowPrevNext=block |PrevPage=Zh/Documentation/DevGuide/Extensions/Localized XML Elements |NextPage=Zh/Documentation/DevGuide/...)
 
m
 
Line 77: Line 77:
 
* 支持 '''[[Zh/Documentation/DevGuide/Extensions/Online Update of Extensions|在线更新扩展(update)]]''' 功能和更新信息可由指定地址获得。[[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/update-information 元素|[查阅 XML 元素说明]]]
 
* 支持 '''[[Zh/Documentation/DevGuide/Extensions/Online Update of Extensions|在线更新扩展(update)]]''' 功能和更新信息可由指定地址获得。[[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/update-information 元素|[查阅 XML 元素说明]]]
 
* '''[[Zh/Documentation/DevGuide/Extensions/Simple License|授权许可(license)]]''' 文本在安装过程中显示。可以提供各种本地化的授权许可文本。 [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/registration 元素|[查阅 XML 元素说明]]]
 
* '''[[Zh/Documentation/DevGuide/Extensions/Simple License|授权许可(license)]]''' 文本在安装过程中显示。可以提供各种本地化的授权许可文本。 [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/registration 元素|[查阅 XML 元素说明]]]
* There are two localized versions of a '''[[Zh/Documentation/DevGuide/Extensions/Publisher Information|publisher name]]''' and URL. [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/publisher 元素|[查阅 XML 元素说明]]]
+
* 这里有两个版本的 '''[[Zh/Documentation/DevGuide/Extensions/Publisher Information|发行者名称(publisher name)]]''' URL. [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/publisher 元素|[查阅 XML 元素说明]]]
* There are two links to '''release notes''' in different languages. [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/release-notes 元素|[查阅 XML 元素说明]]]
+
* 这里有两处指向不同语言的 '''发行注释(release notes)''' 的链接。 [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/release-notes 元素|[查阅 XML 元素说明]]]
* There is a localized '''[[Zh/Documentation/DevGuide/Extensions/Display Name|display name]]'''. That is, in an english version of OOo the Extension Manager will show the string: ''My great extension''. [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/display-name 元素|[查阅 XML 元素说明]]]
+
* 本地化的 '''[[Zh/Documentation/DevGuide/Extensions/Display Name|显示名称(display name)]]'''。在英文版本的 OOo 扩展管理器将显示 ''My great extension'' 字符串。 [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/display-name 元素|[查阅 XML 元素说明]]]
* The extension contains '''icons''' which are used by the Extensions Manager when displaying the extension. [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/icon 元素|[查阅 XML 元素说明]]]
+
* 此扩展包含 '''图标(icons)''',用于在扩展管理器中表示此扩展。[[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/icon 元素|[查阅 XML 元素说明]]]
* A localized [[Zh/Documentation/DevGuide/Extensions/Extension Description|'''description''']] is displayed in the Extension Manager's dialog. [[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/extension-description 元素|[查阅 XML 元素说明]]]
+
* 扩展管理器对话框中显示本地化的 [[Zh/Documentation/DevGuide/Extensions/Extension Description|'''扩展说明(description)''']][[Zh/Documentation/DevGuide/Extensions/Description of XML Elements#/description/extension-description 元素|[查阅 XML 元素说明]]]
 +
 
 +
 
 +
请留意 ''description.xml'' 中的 <publisher> 和 <release-notes> 元素,它们现在还未被扩展管理器使用。无论如何,当上传扩展至扩展存储仓库(http://extensions.services.openoffice.org) 时仍需要这些元素以产生更新信息。当扩展管理器查询更新时将会显示这些信息(OOo 2.4)。
  
Please note that the <publisher> and <release-notes> elements in a ''description.xml'' are currently not used by the Extension Manager. However, when uploading the extension to the extensions repository (http://extensions.services.openoffice.org) then these elements are used for generating update information. When the Extension Manager looks for updates then it displays these information (OOo 2.4).
 
  
 
{{PDL1}}
 
{{PDL1}}
  
 
[[Category:文档/开发者指南/扩展]]
 
[[Category:文档/开发者指南/扩展]]

Latest revision as of 01:55, 11 September 2008


<?xml version="1.0" encoding="UTF-8"?>
<description xmlns="http://openoffice.org/extensions/description/2006" 
xmlns:d="http://openoffice.org/extensions/description/2006"
xmlns:xlink="http://www.w3.org/1999/xlink">
 
  <version value="1.0" />   
 
  <identifier value="com.mycompany.extensions.my_extension" />
 
  <platform value="windows_x86,solaris_sparc" />
 
  <dependencies>
    <OpenOffice.org-minimal-version value="2.2" d:name="OpenOffice.org 2.2"/>
  </dependencies>
 
  <update-information>
    <src xlink:href="http://extensions.openoffice.org/testarea/desktop/license/update/lic3.update.xml" />
  </update-information>
 
  <registration>
    <simple-license accept-by="admin" suppress-on-update="true" >
      <license-text xlink:href="registration/license_de-DE.txt" lang="de-DE" />
      <license-text xlink:href="registration/license_en-GB.txt" lang="en-GB" />
      <license-text xlink:href="registration/license_en-NZ.txt" lang="en-NZ" />
      <license-text xlink:href="registration/license_en-US.txt" lang="en-US" />
    </simple-license>
  </registration>
 
  <publisher>
    <name xlink:href="http://extensions.openoffice.org/testarea/desktop/publisher/publisher_de.html"
    lang="de">My OpenOffice de</name>
    <name xlink:href="http://extensions.openoffice.org/testarea/desktop/publisher/publisher_en.html" 
    lang="en">My OpenOffice en</name>
  </publisher>
 
  <release-notes>
    <src xlink:href="http://extensions.openoffice.org/testarea/desktop/publisher/release-notes_de.txt" lang="de" />
    <src xlink:href="http://extensions.openoffice.org/testarea/desktop/publisher/release-notes_en.txt" lang="en" />
  </release-notes>
 
  <display-name>
    <name lang="de">Meine tolle extensions</name>
    <name lang="en">My great extension</name>
  </display-name>
 
  <icon>
    <default xlink:href="images/icon.png" />
    <high-contrast xlink:href="images/icon_hc.png" />
  </icon>
 
  <extension-description>
    <src xlink:href="description/desc_de.txt" lang="de" />
    <src xlink:href="description/desc_en.txt" lang="en" />
  </extension-description>
 
</description>


这个 description.xml 包含以下信息:


请留意 description.xml 中的 <publisher> 和 <release-notes> 元素,它们现在还未被扩展管理器使用。无论如何,当上传扩展至扩展存储仓库(http://extensions.services.openoffice.org) 时仍需要这些元素以产生更新信息。当扩展管理器查询更新时将会显示这些信息(OOo 2.4)。


Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages