Update language PIP to use new structure
authorMatthias Schmidt <gravatronics@live.com>
Mon, 7 Jun 2021 11:35:05 +0000 (13:35 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 7 Jun 2021 11:35:05 +0000 (13:35 +0200)
docs/package/pip/language.md
snippets/package/pip/en.xml

index cf4fb5d170dfdff143784aea853c2a48e8578655..7ac5ac67baf0c195076866e8d71528f9177e53fe 100644 (file)
@@ -23,6 +23,8 @@ The text content of the `<item>` node is the value of the language item. Languag
 
 ## Example
 
+!!! info "Prior to version 5.5, there was no support for deleting language items and the `category` elements had to be placed directly as children of the `language` element, see [the migration guide to version 5.5](../../migration/wsc54/php.md#language-package-installation-plugin)."
+
 {jinja{ codebox(
   title="language/en.xml",
   language="xml",
index bb3c016db2b985b0fbad82a2310c962ec84874d7..e5cffb0a1f9516848087c06c83f65fae559df7c8 100644 (file)
@@ -1,6 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <language xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/2019/language.xsd" languagecode="en">
-       <category name="wcf.example">
-               <item name="wcf.example.foo"><![CDATA[<strong>Look!</strong>]]></item>
-       </category>
-</language>
\ No newline at end of file
+       <import>
+               <category name="wcf.example">
+                       <item name="wcf.example.foo"><![CDATA[<strong>Look!</strong>]]></item>
+               </category>
+       </import>
+       <delete>
+               <item name="wcf.example.obsolete"/>
+       </delete>
+</language>