summaryrefslogtreecommitdiffstats
path: root/po/its
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:29:01 +0000
commit35a96bde514a8897f6f0fcc41c5833bf63df2e2a (patch)
tree657d15a03cc46bd099fc2c6546a7a4ad43815d9f /po/its
parentInitial commit. (diff)
downloadinkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.tar.xz
inkscape-35a96bde514a8897f6f0fcc41c5833bf63df2e2a.zip
Adding upstream version 1.0.2.upstream/1.0.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'po/its')
-rw-r--r--po/its/inx.its39
-rw-r--r--po/its/inx.loc6
-rw-r--r--po/its/menus.its5
-rw-r--r--po/its/menus.loc6
-rw-r--r--po/its/units.its8
-rw-r--r--po/its/units.loc9
6 files changed, 73 insertions, 0 deletions
diff --git a/po/its/inx.its b/po/its/inx.its
new file mode 100644
index 0000000..a619c0d
--- /dev/null
+++ b/po/its/inx.its
@@ -0,0 +1,39 @@
+<?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"/>
+
+</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..171d15d
--- /dev/null
+++ b/po/its/menus.loc
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<locatingRules>
+ <locatingRule name="inkscape" pattern="menus.xml">
+ <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>