diff options
Diffstat (limited to '')
-rw-r--r-- | po/its/inx.its | 43 | ||||
-rw-r--r-- | po/its/inx.loc | 6 | ||||
-rw-r--r-- | po/its/menus.its | 5 | ||||
-rw-r--r-- | po/its/menus.loc | 6 | ||||
-rw-r--r-- | po/its/units.its | 8 | ||||
-rw-r--r-- | po/its/units.loc | 9 |
6 files changed, 77 insertions, 0 deletions
diff --git a/po/its/inx.its b/po/its/inx.its new file mode 100644 index 0000000..f3852b7 --- /dev/null +++ b/po/its/inx.its @@ -0,0 +1,43 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" + xmlns:inx="http://www.inkscape.org/namespace/inkscape/extension" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + version="1.0"> + + <!-- common extraction preferences --> + <its:preserveSpaceRule selector="//*[contains(@xml:space, 'preserve')]" space="preserve"/> + + <its:escapeRule selector="//*" escape="no"/> + <its:escapeRule selector="//*/@*" escape="no"/> + + <its:contextRule selector="//*" contextPointer="@context"/> + <its:contextRule selector="//*/@*" contextPointer="../@context"/> + + + <!-- element-specific extraction rules --> + <its:translateRule selector="/inx:inkscape-extension" translate="no"/> + + <its:translateRule selector="//inx:name" translate="yes"/> + + <its:translateRule selector="//*[not(@translatable='no')]/@gui-text" translate="yes"/> + <its:translateRule selector="//*[not(@translatable='no')]/@gui-description" translate="yes"/> + + <its:translateRule selector="//inx:label[not(@translatable='no')]" translate="yes"/> + <its:translateRule selector="//inx:option[not(@translatable='no')]" translate="yes"/> + + <its:translateRule selector="//inx:param[@type='string'][@translatable='yes']" translate="yes"/> + + <its:translateRule selector="//inx:submenu/@name" translate="yes"/> + + <its:translateRule selector="//inx:filetypename" translate="yes"/> + <its:translateRule selector="//inx:filetypetooltip" translate="yes"/> + + <its:translateRule selector="//inkscape:templateinfo/inkscape:name" translate="yes"/> + <its:translateRule selector="//inkscape:templateinfo/inkscape:shortdesc" translate="yes"/> + <its:translateRule selector="//inkscape:templateinfo/inkscape:keywords" translate="yes"/> + + <!-- currently templates use those elements --> + <its:translateRule selector="//inx:preset/@name" translate="yes"/> + <its:translateRule selector="//inx:preset/@label" translate="yes"/> + <its:translateRule selector="//inx:category" translate="yes"/> +</its:rules> diff --git a/po/its/inx.loc b/po/its/inx.loc new file mode 100644 index 0000000..8a7c628 --- /dev/null +++ b/po/its/inx.loc @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<locatingRules> + <locatingRule name="inkscape-extension" pattern="*.inx"> + <documentRule localName="inkscape-extension" target="inx.its"/> + </locatingRule> +</locatingRules> diff --git a/po/its/menus.its b/po/its/menus.its new file mode 100644 index 0000000..ede03c3 --- /dev/null +++ b/po/its/menus.its @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="/inkscape" translate="no"/> + <its:translateRule selector="/inkscape//submenu/@name" translate="yes"/> +</its:rules> diff --git a/po/its/menus.loc b/po/its/menus.loc new file mode 100644 index 0000000..602b63b --- /dev/null +++ b/po/its/menus.loc @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<locatingRules> + <locatingRule name="inkscape" pattern="menus.ui"> + <documentRule localName="inkscape" target="menus.its"/> + </locatingRule> +</locatingRules> diff --git a/po/its/units.its b/po/its/units.its new file mode 100644 index 0000000..e3bd12a --- /dev/null +++ b/po/its/units.its @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" + version="2.0"> + <its:translateRule selector="/unitdefs" translate="no"/> + <its:translateRule selector="/unitdefs/unit/name" translate="yes"/> + <its:translateRule selector="/unitdefs/unit/plural" translate="yes"/> + <its:translateRule selector="/unitdefs/unit/description" translate="yes"/> +</its:rules> diff --git a/po/its/units.loc b/po/its/units.loc new file mode 100644 index 0000000..26ea5e2 --- /dev/null +++ b/po/its/units.loc @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<!-- This file links the .xml file to a corresponding .its file, which decides which parts of the XML will be translated --> +<locatingRules> + <!-- the name of the locatingRule does not matter. The pattern specifies the filename, without directory name. (Wildcards are possible) --> + <locatingRule name="foobar" pattern="units.xml"> + <!-- set 'localName' to the name of the main element in the XML file, and 'target' to the name of the .its file. --> + <documentRule localName="unitdefs" target="units.its"/> + </locatingRule> +</locatingRules> |